/* Seaport Navigator — hub surface tokens (web/README.md: Instrument Serif,
   Public Sans, IBM Plex Mono; navy / brass / paper). Every text pairing below
   was checked numerically against WCAG AA's 4.5:1 floor:
   navy/paper 14.1 · brass/paper 5.61 · muted/paper 6.8 · brass-light/navy 8.07
   · mist/brand-navy 9.9 (2026-10-31, the gate's hero copy).
   --brand-navy is the printed navy from the brand file (#10213F). */
:root {
  --navy: #14243B;
  --brand-navy: #10213F;
  --deep: #0A1730;
  --brass: #7A5C22;
  --brass-light: #D9B66B;
  --paper: #F7F3EA;
  --card: #FFFFFF;
  --muted: #4A5568;
  --mist: #C9D3E3;
  --rule: #DDD5C4;
  /* The four compass points of the Seaport mark. North is drawn in white on
     the navy field, where the mark's own navy point would disappear. */
  --pt-teal: #4FB3AC;
  --pt-red: #E0404A;
  --pt-gold: #D49A3A;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--navy);
  font: 16px/1.55 "Public Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.masthead { background: var(--navy); color: var(--paper); padding: 14px 16px; }
.masthead .mark { font-family: "Instrument Serif", Georgia, serif; font-size: 22px; }
.masthead .mark b { color: var(--brass-light); font-weight: 400; }
.masthead .env { float: right; font: 12px "IBM Plex Mono", monospace;
  color: var(--brass-light); text-transform: uppercase; letter-spacing: .08em; }
main { max-width: 560px; margin: 48px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 6px;
  padding: 28px 24px; }
h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: 34px; line-height: 1.15; margin: 0 0 12px; }
h1 em { font-style: italic; color: var(--brass); }
p { margin: 0 0 14px; }
.muted { color: var(--muted); font-size: 14px; }
.button { display: inline-flex; align-items: center; gap: 10px; background: var(--navy);
  color: var(--paper); border: 0; border-radius: 4px; padding: 12px 20px;
  font: 600 15px "Public Sans", sans-serif; text-decoration: none; cursor: pointer; }
.button:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.button.quiet { background: transparent; color: var(--navy);
  border: 1px solid var(--navy); }
code.id { display: block; font: 15px "IBM Plex Mono", monospace; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px;
  word-break: break-all; margin: 6px 0 16px; }
.eyebrow { font: 12px "IBM Plex Mono", monospace; color: var(--brass);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 10px; }

/* ── The gate: sign-in and the two pages a refused sign-in lands on ───────── */
body.gate { background: var(--paper); }
.gate-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .gate-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

.gate-hero {
  position: relative; overflow: hidden; color: var(--mist);
  background:
    radial-gradient(70% 55% at 50% 38%, #1F3F6E 0%, rgba(31,63,110,0) 70%),
    linear-gradient(170deg, var(--brand-navy) 0%, var(--deep) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 36px 20px 34px; text-align: center;
}
.gate-hero::after {            /* a fine horizon rule along the foot */
  content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(217,182,107,0), rgba(217,182,107,.7), rgba(217,182,107,0));
}

/* The porthole: the Mystic aerial from the brand banner, inside a compass ring
   drawn to match the mark. The ring turns slowly; the four points hold still,
   so north stays north. */
.porthole { position: relative; width: 190px; aspect-ratio: 1; flex: none;
  animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.porthole .aerial { position: absolute; inset: 5.5%; width: 89%; height: 89%;
  border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 30px 60px -20px rgba(0,0,0,.6); }
.porthole .ring { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(201,211,227,.55); }
.ring-ticks { transform-origin: 200px 200px; animation: drift 180s linear infinite; }
.ring .pt-n { fill: #FFFFFF; }
.ring .pt-e { fill: var(--pt-red); }
.ring .pt-s { fill: var(--pt-gold); }
.ring .pt-w { fill: var(--pt-teal); }

.hero-copy { position: relative; }
.hero-line { margin: 0; font-family: "Jost", "Futura", "Century Gothic", sans-serif;
  font-weight: 400; color: #FFFFFF; text-transform: uppercase;
  font-size: 13px; letter-spacing: .3em; line-height: 1.9; }
.hero-line span { display: block; }
.hero-line span + span { font-size: 1.32em; font-weight: 500; letter-spacing: .32em; }
.hero-line em { font-style: normal; color: var(--brass-light); }

.divisions { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 8px 20px; }
.divisions li { font-family: "Instrument Serif", Georgia, serif; text-transform: uppercase;
  letter-spacing: .16em; font-size: 13px; color: var(--mist);
  display: inline-flex; align-items: center; gap: 8px; }
.divisions li::before { content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: currentColor; box-shadow: inset 0 -3px 0 rgba(255,255,255,.35); }
.divisions .d-res::before { color: #5B9BE0; }
.divisions .d-com::before { color: var(--pt-teal); }
.divisions .d-auc::before { color: var(--pt-red); }
.divisions .d-adv::before { color: var(--pt-gold); }

@media (min-width: 900px) {
  /* Scales with the window rather than stopping at a fixed width, so a wide
     monitor gets a big porthole. Capped at the aerial's own 720px source. */
  .gate-hero { min-height: 100vh; gap: clamp(36px, 5vh, 64px); padding: 56px 48px; }
  .gate-hero::after { bottom: 40px; }
  .porthole { width: min(64vh, 40vw, 720px); }
  .hero-line { font-size: clamp(15px, 1.15vw, 22px); }
  .divisions { margin-top: clamp(24px, 3vh, 40px); gap: 12px clamp(22px, 2vw, 40px); }
  .divisions li { font-size: clamp(14px, 1vw, 19px); gap: 10px; }
  .divisions li::before { width: 12px; height: 12px; }
}

.gate-main {
  display: flex; flex-direction: column; justify-content: center;
  margin: 0; max-width: none; padding: 32px 16px 28px;
}
@media (min-width: 900px) { .gate-main { padding: 56px 64px; } }
.gate-top { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; max-width: 460px; width: 100%; margin: 0 auto 28px; }
.gate-logo { width: min(300px, 70vw); height: auto; display: block; }
@media (min-width: 900px) { .gate-logo { width: clamp(300px, 22vw, 440px); } }
.env-pill { font: 11px "IBM Plex Mono", monospace; text-transform: uppercase;
  letter-spacing: .14em; color: var(--brass); border: 1px solid var(--brass);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

.gate-card {
  max-width: 460px; width: 100%; margin: 0 auto; background: var(--card);
  border: 1px solid var(--rule); border-radius: 14px; padding: 36px 32px 30px;
  box-shadow: 0 1px 0 rgba(20,36,59,.04), 0 24px 48px -24px rgba(16,33,63,.28);
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
}
@media (max-width: 480px) { .gate-card { padding: 28px 22px 24px; } }
.gate-card h1 { font-size: 40px; margin-bottom: 10px; }
.gate-card .lede { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.gate-card .note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }

.gbutton { width: 100%; justify-content: space-between; padding: 16px 20px;
  font-size: 16px; border-radius: 8px; background: var(--brand-navy);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 22px -12px rgba(16,33,63,.7); }
.gbutton .arrow { width: 20px; height: 20px; color: var(--brass-light);
  transition: transform .2s ease; }
.gbutton:hover { background: #1A3360; transform: translateY(-1px); }
.gbutton:hover .arrow { transform: translateX(4px); }
.gbutton:active { transform: translateY(0); }

.gate-foot { max-width: 460px; width: 100%; margin: 22px auto 0; text-align: center;
  font: 11px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); }

/* Wide screens: the right-hand column grows with the window too. */
@media (min-width: 1500px) {
  .gate-top, .gate-card, .gate-foot { max-width: clamp(460px, 30vw, 600px); }
  .gate-card { padding: 48px 44px 40px; }
  .gate-card h1 { font-size: clamp(40px, 2.8vw, 56px); }
  .gate-card .lede { font-size: 18px; }
  .gbutton { font-size: 18px; padding: 20px 24px; }
  .gate-card .note, .gate-card .muted, .gate-card p { font-size: 15px; }
  .gate-card .lede { font-size: 18px; }
  .gate-foot { font-size: 12px; }
}

@keyframes drift { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ring-ticks, .gate-card, .porthole { animation: none; }
  .gbutton, .gbutton .arrow { transition: none; }
}
