:root {
  color-scheme: light;
  --green: #10281c;
  --green-deep: #0a1d14;
  --green-mid: #204630;
  --gold: #d4b263;
  --cream: #f8f6f0;
  --ink: #1d2920;
  --muted: #657066;
  --line: #dce1d9;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { flex: 1; }
a { color: inherit; }
button, input { font: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header { background: var(--green-deep); color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold); color: var(--gold); font: 700 17px Georgia, serif; letter-spacing: -.08em; }
.brand-wordmark { display: flex; flex-direction: column; font-size: 20px; font-weight: 800; line-height: 1.05; letter-spacing: .04em; }
.brand-caption { margin-top: 5px; font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #c7d3c9; }
.site-nav { display: flex; align-items: center; gap: 25px; font-size: 14px; font-weight: 650; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.nav-user { color: #c8d3c9; }
.nav-form { margin: 0; }
.nav-button { padding: 9px 15px; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; background: transparent; color: #fff; cursor: pointer; }
.nav-button:hover { border-color: var(--gold); color: var(--gold); }
.nav-login { padding: 9px 15px; border: 1px solid var(--gold); border-radius: 4px; }

.hero { overflow: hidden; background: radial-gradient(circle at 80% 25%, #244a32, transparent 38%), linear-gradient(130deg, var(--green) 30%, #173d27); color: #fff; }
.hero-inner { min-height: 500px; padding-block: 74px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); align-items: center; gap: 65px; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow-dark { color: #7f651f; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -.035em; }
.hero h1 { margin-bottom: 21px; font-size: clamp(44px, 6vw, 78px); font-weight: 500; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-description { max-width: 580px; margin-bottom: 29px; color: #d6e1d7; font-size: 17px; }
.hero-welcome { display: inline-block; margin: 0; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.08); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 20px; border: 0; border-radius: 4px; text-decoration: none; font-weight: 750; cursor: pointer; }
.button-primary { background: var(--gold); color: var(--green-deep); }
.button-primary:hover { background: #e7c97d; }
.hero-card { position: relative; width: min(100%, 320px); aspect-ratio: 3 / 4; justify-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(212,178,99,.65); outline: 8px solid rgba(255,255,255,.035); background: linear-gradient(150deg, #1a3b2a, #0b2015); box-shadow: 22px 28px 55px rgba(0,0,0,.2); transform: rotate(4deg); }
.card-symbol { color: var(--gold); font: 700 90px Georgia, serif; letter-spacing: -.12em; transform: translateX(-5px); }
.card-rule { width: 76px; height: 1px; margin: 18px 0; background: var(--gold); }
.card-label { color: #d9cfb0; font-size: 10px; font-weight: 700; letter-spacing: .27em; }
.card-corner { position: absolute; width: 23px; height: 23px; border-color: var(--gold); border-style: solid; }
.card-corner-top { top: 18px; left: 18px; border-width: 1px 0 0 1px; }
.card-corner-bottom { right: 18px; bottom: 18px; border-width: 0 1px 1px 0; }
.coming-soon { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 50px; padding-block: 82px; }
.coming-soon h2 { max-width: 470px; margin-bottom: 0; font-size: clamp(30px, 3vw, 42px); font-weight: 500; }
.coming-soon > p { max-width: 455px; margin-bottom: 4px; color: var(--muted); }

.login-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; padding-block: 94px 120px; }
.login-intro h1, .error-section h1 { font-size: clamp(42px, 5vw, 62px); font-weight: 500; }
.login-intro > p:last-child, .error-section > p:not(.eyebrow) { color: var(--muted); }
.login-panel { padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 14px 36px rgba(15,39,25,.05); }
.login-panel h2 { margin-bottom: 26px; font-size: 30px; font-weight: 500; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.form-field input { display: block; width: 100%; padding: 11px 13px; border: 1px solid #bbc7bc; border-radius: 4px; background: #fff; color: var(--ink); }
.form-field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--green-mid); }
.field-error { margin: 5px 0 0; color: #a22929; font-size: 13px; }
.button-full { width: 100%; }
.login-help { margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.flash-list:empty { display: none; }
.flash-list { padding-top: 14px; }
.flash { margin: 0 0 8px; padding: 10px 14px; border-left: 3px solid var(--gold); background: #fff; }
.flash-error, .flash-danger { border-color: #b94747; }
.flash-success { border-color: #3a8b58; }
.error-section { padding-block: 90px 120px; }
.error-section .button { margin-top: 12px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; }

@media (max-width: 700px) {
  .header-inner { min-height: 74px; }
  .brand-caption { display: none; }
  .site-nav { gap: 13px; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 45px; padding-block: 65px; }
  .hero-card { width: 230px; }
  .card-symbol { font-size: 68px; }
  .coming-soon, .login-section { grid-template-columns: 1fr; gap: 25px; padding-block: 62px; }
  .footer-inner { flex-direction: column; gap: 3px; }
}

@media (max-width: 420px) {
  .container { width: min(1120px, calc(100% - 28px)); }
  .brand-mark { width: 36px; height: 36px; font-size: 14px; }
  .brand-wordmark { font-size: 18px; }
  .nav-user { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-button, .nav-login { padding: 7px 10px; }
  .login-panel { padding: 23px; }
}
