:root {
  --gold: #D98716;
  --gold-dark: #B06A0C;
  --cream: #FFE8BA;
  --cream-soft: #FFF6E3;
  --ink: #111111;
  --muted: #555555;
  --line: #E6DCC8;
  --white: #FFFFFF;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Draft notice: remove before launch */
.draft-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: .02em;
}
.tbd { background: #FFF3C4; outline: 1px dashed var(--gold); padding: 0 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.brand img { height: 60px; width: auto; }
.footer-logo { height: 52px; width: auto; flex-basis: 100%; max-width: 200px; margin-bottom: 8px; }
.site-footer .wrap { align-items: center; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--gold-dark); }
.nav .btn { color: var(--white); }
.nav-toggle { display: none; }

.btn {
  display: inline-block;
  background: var(--gold); color: var(--white);
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--gold);
  cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }

/* Type */
h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 20px; }
.eyebrow {
  display: block;
  font-weight: 400; text-transform: uppercase;
  letter-spacing: .28em; font-size: 13px; color: var(--gold-dark);
  margin-bottom: 12px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Sections */
section { padding: 76px 0; }
.cream { background: var(--cream); }
.soft { background: var(--cream-soft); }
.section-head { max-width: 680px; margin-bottom: 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card p { color: var(--muted); margin: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream); color: var(--gold-dark);
  display: grid; place-items: center; margin-bottom: 16px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { border-top: 3px solid var(--gold); padding-top: 12px; }
.stat b { display: block; font-size: 32px; font-weight: 800; }
.stat span { color: var(--muted); font-size: 14px; }

/* Portals */
.portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portal {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); border-top: 5px solid var(--gold);
  padding: 28px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.portal:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.portal p { color: var(--muted); margin: 0; flex: 1; }
.portal .go { font-weight: 700; color: var(--gold-dark); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: inline-block; min-width: 90px; }
form.contact { display: grid; gap: 14px; }
label { font-weight: 600; font-size: 14px; display: grid; gap: 6px; }
input, textarea, select {
  font: inherit; font-weight: 400; font-size: 16px;
  padding: 12px 14px; border: 1px solid #CFC4AE; border-radius: 8px;
  background: var(--white); color: var(--ink); width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #DDD; padding: 40px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--cream); text-decoration: none; margin-right: 16px; }

/* Login pages */
.login-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--cream-soft); }
.login-main { flex: 1; display: grid; place-items: center; padding: 48px 20px; }
.login-card {
  width: 100%; max-width: 420px; background: var(--white);
  border: 1px solid var(--line); border-top: 5px solid var(--gold);
  border-radius: var(--radius); padding: 34px 30px;
}
.login-card h1 { font-size: 28px; }
.login-card form { display: grid; gap: 16px; margin-top: 22px; }
.login-card .btn { width: 100%; }
.login-card .row { display: flex; justify-content: space-between; font-size: 14px; }
.notice {
  display: none; margin-top: 16px; padding: 12px 14px; border-radius: 8px;
  background: var(--cream); font-size: 14px;
}
.notice.show { display: block; }
.back { display: inline-block; margin-top: 22px; font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; width: 100%; max-width: 460px; margin: 0 auto; }
  .grid-3, .portals { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         flex-direction: column; align-items: flex-start; gap: 0;
         background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav .btn { width: auto; padding: 10px 20px; margin-top: 6px; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line); border-radius: 8px;
    padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer;
  }
  .brand img { height: 50px; }
  section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 420px) {
  .brand img { height: 44px; }
  .stats { grid-template-columns: 1fr; }
}

/* Signed-in pages */
.auth-pending main { visibility: hidden; }
.userbar { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.userbar .who { color: var(--muted); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.portal-main { padding: 48px 0 72px; background: var(--cream-soft); flex: 1; }
.portal-main h1 { font-size: clamp(28px, 4vw, 40px); }
.coming { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
          color: var(--gold-dark); background: var(--cream); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.notice.error { background: #FDE2DD; }

/* Admin */
.admin-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel form { display: grid; gap: 14px; }
.pw-row { display: flex; gap: 8px; }
.pw-row input { flex: 1; min-width: 0; }
.link-btn { background: none; border: none; padding: 0; font: inherit; font-size: 14px; color: var(--gold-dark);
            font-weight: 600; cursor: pointer; text-decoration: underline; }
.link-btn.danger { color: #B3261E; }
.table-wrap { overflow-x: auto; }
table.users { width: 100%; border-collapse: collapse; font-size: 14px; }
table.users th, table.users td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.users th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
table.users select, table.users input { padding: 6px 8px; font-size: 14px; }
table.users tr.off td { color: #999; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.reset-box { display: flex; gap: 6px; margin-top: 8px; }
.reset-box input { width: 150px; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #E8F3E8; color: #1E6B2E; }
.badge.off { background: #EEE; color: #777; }
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .userbar .who { display: none; }
}

[hidden] { display: none !important; }
