@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-tight.woff2") format("woff2");
}

:root {
  --paper: #132e44;
  --card: #1e3b51;
  --ink: #f6f3ec;
  --muted: #d7d1c6;
  --line: rgba(246, 243, 236, 0.16);
  --navy: #0f283d;
  --navy-2: #1e3b51;
  --gold: #e4c48a;
  --link: #f3e6c4;
  --link-hover: #fff;
  --focus: #f3e6c4;
  --todo-bg: #fff6e4;
  --todo-line: #8a6420;
  --footer-text: #f6f3ec;
  --footer-muted: #d7d1c6;
  --header-h: 4.4rem;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html.motion .will-rise { opacity: 0; }

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

body.home { padding-top: 0; }

img { max-width: 100%; }

h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.45rem; margin: 0; }

p { margin: 0 0 1rem; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 80;
  padding: 0.6rem 0.85rem;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: rgba(23, 40, 56, 0.62);
  border-bottom: 1px solid rgba(246, 243, 236, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 0.35rem 1rem;
}

.logo-link {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  flex: 0 0 auto;
}

.logo-link img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: block;
}

.brand-name,
.brand-sub { display: block; line-height: 1.1; white-space: nowrap; }

.brand-name {
  font-family: "Inter Tight", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 560;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand-sub {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
}

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  border-radius: 8px;
}

.primary-nav a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0.75rem 100%;
  background-size: 0 1px;
  transition: background-size 0.45s cubic-bezier(.16, 1, .3, 1), color 0.45s cubic-bezier(.16, 1, .3, 1);
}

.primary-nav a:hover { color: var(--link); background-size: calc(100% - 1.5rem) 1px; }

.primary-nav a.nav-book {
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  margin-left: 0.35rem;
}

.primary-nav a.nav-book:hover { background-color: var(--gold); color: #10243c; }

.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background-size: calc(100% - 1.5rem) 1px;
}

.hero { padding: 3.5rem 0 2.5rem; }

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  max-width: 38rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: #10243c;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: #ffe7b0; color: #10243c; border-color: #ffe7b0; }

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover { background: var(--gold); color: #10243c; border-color: var(--gold); }

.button-light {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--paper);
}

.button-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.section { padding: 2.75rem 0 3.25rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.section-head p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}

.brand {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: visible;
  scroll-margin-top: 7.5rem;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover,
.brand:focus-within {
  border-color: rgba(228, 196, 138, 0.85);
  box-shadow: 0 10px 24px rgba(15, 40, 61, 0.28), 0 0 0 1px rgba(240, 215, 164, 0.35);
  transform: translateY(-3px);
}

.brand:focus-within {
  outline: 2px solid #e4c48a;
  outline-offset: 2px;
}

.brand:focus-within .brand-link a:focus-visible { outline: none; }

.brand-link a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.brand-media {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 1.1rem;
  background: rgba(26, 48, 69, 0.35);
  border-bottom: 1px solid rgba(228, 196, 138, 0.28);
}

.logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 176px;
  max-width: 100%;
  padding: 12px;
  background: #ffffff;
  border-radius: 14px;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(228, 196, 138, 0.55), 0 8px 22px rgba(6, 16, 28, 0.35);
}

.logo-plate img {
  display: block;
  width: auto;
  height: 152px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.brand-media .logo-plate { justify-self: center; }

.logo-pending {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  background: repeating-linear-gradient(-45deg, #f7f4ee, #f7f4ee 10px, #efe8db 10px, #efe8db 20px);
}

.logo-pending p { margin: 0; font-weight: 700; }

.brand-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem 1.2rem;
  flex: 1;
}

.brand-body p { margin: 0; color: var(--muted); }

.brand-link { margin-top: auto; font-weight: 700; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.prose { max-width: 42rem; }

.todo {
  background: var(--todo-bg);
  border: 1px solid #e4c98a;
  border-left: 4px solid var(--todo-line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.todo p { margin: 0; color: #1a1408; }

.todo + .todo { margin-top: 0.75rem; }

.lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 0;
  max-width: 28rem;
  padding: 0.85rem 1.1rem;
  background: #012848;
  border: 1px solid rgba(243, 212, 138, 0.45);
  border-radius: 16px;
}

.lockup img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: block;
  flex: none;
}

.lockup-name,
.lockup-sub { display: block; line-height: 1; }

.lockup-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  color: #f3d48a;
}

.lockup-sub {
  margin-top: 0.4rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f7fbff;
}

.panorama {
  margin: 0;
  background: var(--navy);
}

.panorama img {
  display: block;
  width: min(1400px, 100%);
  height: auto;
  margin-inline: auto;
}

.show-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.05rem 1.1rem 1.15rem;
}

.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); }

.cta-band {
  background: var(--navy);
  color: var(--footer-text);
  padding: 3rem 0;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: var(--footer-text); max-width: 38rem; }
.cta-band a:not(.button) { color: #f3ead2; }

.form {
  display: grid;
  gap: 0.95rem;
  max-width: 38rem;
}

.field { display: grid; gap: 0.35rem; font-weight: 700; }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-weight: 400;
  color: #0b2344;
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  width: 100%;
}

.form-note { color: var(--muted); max-width: 38rem; }

.site-footer {
  background: var(--navy);
  color: var(--footer-text);
  padding: 2.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

.footer-mark {
  display: inline-block;
  margin-bottom: 0.55rem;
}
.footer-mark img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}
.footer-name {
  margin: 0 0 0.35rem;
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
}

.site-footer p { color: var(--footer-muted); }
.site-footer a { color: #f3ead2; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-content: start;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover { text-decoration: underline; }

.footer-base {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.footer-base p { margin: 0; font-size: 0.95rem; }

section[id], .hero { scroll-margin-top: 7.5rem; }

@media (max-width: 720px) {
  :root { --header-h: 6.6rem; }
  .section-head,
  .split,
  .footer-grid { grid-template-columns: 1fr; display: grid; }
  .section-head { align-items: start; }
  .hero { padding-top: 2.4rem; }
  .bar { align-items: flex-start; }
  .logo-link,
  .primary-nav { flex: 1 0 100%; }
  .primary-nav { justify-content: flex-start; padding-bottom: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-nav a { transition: none; }
  .brand { transition: none; }
  .brand:hover,
  .brand:focus-within { transform: none; }
  html.motion .will-rise { opacity: 1; }
}
