:root {
  --bg: #f8f6f1;
  --bg-strong: #fffdf9;
  --panel: rgba(255, 252, 246, 0.92);
  --panel-strong: #fffaf0;
  --line: rgba(71, 85, 105, 0.16);
  --line-strong: rgba(71, 85, 105, 0.34);
  --text: #18212b;
  --muted: #52606f;
  --slate: #334155;
  --slate-deep: #0f172a;
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.12);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --radius-sm: 14px;
  --max: min(1120px, calc(100vw - 2rem));
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-accent: "Instrument Serif", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(217, 119, 6, 0.05) 0, rgba(217, 119, 6, 0.05) 1px, transparent 1px, transparent 120px),
    linear-gradient(rgba(51, 65, 85, 0.05) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(255, 245, 214, 0.85), transparent 28%),
    linear-gradient(180deg, #fcfbf7 0%, #f7f3ec 48%, #f4f0e6 100%);
  background-size: 120px 120px, 100% 32px, 100% 100%, 100% 100%;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--slate-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--slate-deep);
  color: #fff;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: var(--max);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(248, 246, 241, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.1rem;
  flex-wrap: wrap;
}

.eyebrow,
.section-label,
.kicker,
.footer-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--slate-deep);
  text-decoration: none;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand span {
  font-family: var(--font-mono);
  font-size: 0.36em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-footer {
  font-size: 1.35rem;
}

.site-nav ul,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--slate-deep);
  border-bottom-color: var(--amber);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  font: inherit;
  font-weight: 700;
  color: var(--slate-deep);
}

.hero,
.page-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.hero-grid,
.narrow-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
}

.narrow-grid,
.split-grid,
.two-up,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  gap: 1.5rem;
}

h1,
h2,
h3 {
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 0 0 0.9rem;
  color: var(--slate-deep);
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.1rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

.lead,
.section-heading p,
.prose-panel p,
.info-panel p,
.legal-prose p,
.contact-list p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--slate-deep);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.button-secondary {
  background: var(--amber-soft);
  color: var(--slate-deep);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.hero-media,
.inline-media,
.card,
.prose-panel,
.info-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img,
.inline-media img,
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 0.9rem 1.15rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.step-strip div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.step-strip span,
.inline-code {
  font-family: var(--font-mono);
}

.step-strip span {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--amber);
  font-size: 0.82rem;
}

.step-strip p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.section {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.2rem, 5vw, 4rem);
}

.section-tint {
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.9), rgba(255, 250, 240, 0.78));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.card-body,
.prose-panel,
.info-panel,
.legal-prose,
.form-panel {
  padding: 1.35rem;
}

.prose-panel,
.info-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 248, 238, 0.88));
}

.info-panel h2 {
  font-size: 1.9rem;
}

.info-panel img {
  width: calc(100% + 2.7rem);
  margin: -1.35rem -1.35rem 1rem;
  aspect-ratio: 4 / 2.4;
  object-fit: cover;
}

.inline-code {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 0.4rem;
  background: var(--amber-soft);
  color: var(--slate-deep);
  font-size: 0.92em;
}

.contact-list {
  margin-top: 1.5rem;
}

form {
  display: grid;
  gap: 0.7rem;
}

label {
  font-weight: 700;
  color: var(--slate-deep);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--slate-deep);
  background: rgba(255, 255, 255, 0.82);
}

textarea {
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: rgba(255, 252, 246, 0.78);
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--amber);
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.footer-simple {
  display: block;
}

.legal-section {
  min-height: 60vh;
}

.legal-prose {
  max-width: 760px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: min(420px, calc(100vw - 2rem));
  z-index: 200;
}

.cookie-inner {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  padding: 1rem;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.25);
}

.cookie-inner p {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.cookie-actions a {
  color: #fdba74;
}

.cookie-actions button {
  border: 0;
  border-radius: 999px;
  background: #fdba74;
  color: var(--slate-deep);
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.success-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 2rem));
  z-index: 220;
}

.success-toast__inner {
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 249, 235, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
}

.success-toast__eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}

.success-toast h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.success-toast p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .narrow-grid,
  .split-grid,
  .two-up,
  .footer-grid,
  .card-grid,
  .step-strip {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    padding-top: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: 100%;
  }

  .success-toast {
    bottom: 1rem;
  }
}
