@font-face {
  font-family: "Amatic SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/amatic-sc-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/caveat-400-latin.woff2") format("woff2");
}

:root {
  --ink: #f7f3ec;
  --muted: rgb(247 243 236 / 64%);
  --quiet: rgb(247 243 236 / 42%);
  --line: rgb(247 243 236 / 22%);
  --accent: #ff4d00;
  --accent-soft: #ff9a70;
  color: var(--ink);
  background: #030806;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #030806;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #030806;
  font-size: 1rem;
  line-height: 1.72;
}

a {
  color: var(--accent-soft);
  text-underline-offset: 0.2em;
}

a:hover { color: #fff; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.global-header {
  position: relative;
  z-index: 10;
  min-height: 5.4rem;
  background: #030806;
}

.header-inner {
  display: flex;
  width: 100%;
  min-height: 5.4rem;
  align-items: center;
  padding: 1.15rem 1.7rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-family: "Caveat", cursive;
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand:hover { color: #fff; }

.site-brand img {
  width: 3.7rem;
  height: auto;
}

.content,
.directory-inner {
  width: 100%;
  margin: 0;
  padding: clamp(2rem, 5vw, 4.5rem) 1.7rem clamp(4.5rem, 9vw, 8rem);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 clamp(2rem, 5vw, 4.5rem);
  padding: 0;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  list-style: none;
  text-transform: uppercase;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 0.4rem;
  color: var(--quiet);
  content: "/";
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.route-nav {
  display: flex;
  width: 100%;
  gap: 0;
  align-items: center;
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  overflow-x: auto;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  scrollbar-width: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.route-nav::-webkit-scrollbar { display: none; }

.route-nav a,
.route-nav span {
  flex: 0 0 auto;
  color: var(--muted);
  text-decoration: none;
}

.route-nav > :not(:first-child)::before {
  margin-inline: 0.8rem;
  color: var(--quiet);
  content: "/";
}

.route-nav a:hover,
.route-nav [aria-current="page"] { color: var(--accent); }

.directory-card,
.hero,
.policy-header {
  max-width: none;
  margin: 0;
  padding: 0 0 clamp(2rem, 4vw, 3.5rem);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.directory-card h1,
.hero h1,
.policy-header h1 {
  margin: 0.35rem 0 clamp(1.2rem, 3vw, 2rem);
  color: var(--ink);
  font-family: "Amatic SC", sans-serif;
  font-size: clamp(4.4rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0.01em;
}

.directory-card > p:not(.eyebrow),
.lead {
  max-width: 54rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.service-detail .breadcrumbs {
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.service-detail .directory-card > p:not(.eyebrow),
.service-detail .service-entry small {
  max-width: none;
}

.service-detail .service-entry {
  grid-template-columns: minmax(0, 1fr);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.service-list {
  display: grid;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 3rem;
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3.3rem) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: padding 180ms ease, border-color 180ms ease;
}

.service-entry:hover,
.service-entry:focus-visible {
  padding-inline: clamp(0.25rem, 1vw, 0.9rem);
  border-color: var(--accent);
  color: #fff;
  outline: 0;
}

.service-entry strong,
.service-entry small { display: block; }

.service-entry strong {
  color: var(--accent);
  font: 700 clamp(1.8rem, 4vw, 3.2rem) / 1 "Amatic SC", sans-serif;
}

.service-entry small {
  max-width: 42rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
}

.service-entry code {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.72rem, 1vw, 0.84rem);
}

.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
  border-block: 1px solid var(--line);
}

.policy-nav a {
  padding: 0.8rem 1.4rem 0.8rem 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.policy-nav a:not(:last-child)::after {
  margin-left: 1.4rem;
  color: var(--quiet);
  content: "/";
}

.policy-nav a:hover,
.policy-nav a[aria-current="page"] { color: var(--accent); }

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2rem;
}

.status-pill {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-pill:not(:last-child)::after {
  margin-inline: 0.75rem;
  color: var(--accent);
  content: "—";
}

.section {
  max-width: 64rem;
  margin-top: 0;
  padding: clamp(2.2rem, 5vw, 4.25rem) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.section h2 {
  max-width: 55rem;
  margin: 0 0 1.2rem;
  color: var(--ink);
  font: 700 clamp(2rem, 4vw, 3.25rem) / 1 "Amatic SC", sans-serif;
  letter-spacing: 0.01em;
}

.section h3 {
  margin: 2rem 0 0.55rem;
  color: var(--ink);
  font-size: 1rem;
}

.section p,
.section li,
.section dd {
  max-width: 54rem;
  color: var(--muted);
}

.section p { margin-block: 0.8rem; }

.section ul {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.25rem;
}

.section strong,
.section dt { color: var(--ink); }

.auth-home .hero,
.auth-home .section {
  max-width: none;
  border-bottom: 0;
}

.auth-home .hero {
  padding-bottom: clamp(1.4rem, 2.5vw, 2.2rem);
}

.auth-home .section {
  padding-block: clamp(1.1rem, 2.5vw, 2.1rem);
}

.auth-home .lead,
.auth-home .section p,
.auth-home .notice {
  max-width: none;
}

.policy-page .policy-header,
.policy-page .section {
  max-width: none;
  border-bottom: 0;
}

.policy-page .policy-header {
  padding-bottom: clamp(1.4rem, 2.5vw, 2.2rem);
}

.policy-page .section {
  padding-block: clamp(1.1rem, 2.5vw, 2.1rem);
}

.policy-page .lead,
.policy-page .section p,
.policy-page .section li,
.policy-page .section dd,
.policy-page .notice {
  max-width: none;
}

.policy-page .updated {
  margin-top: 1rem;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.services li {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.services li:not(:last-child)::after {
  margin-inline: 0.65rem;
  color: var(--accent);
  content: "/";
}

.notice {
  max-width: 54rem;
  margin-top: 1.6rem;
  padding: 0.3rem 0 0.3rem 1.2rem;
  border-left: 2px solid var(--accent);
}

.notice p {
  margin: 0;
  color: var(--ink);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.fact {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.fact h3,
.fact p { margin-top: 0; }

.steps {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: auth-step;
}

.steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: auth-step;
}

.steps li::before {
  grid-row: 1 / span 2;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  content: "0" counter(auth-step);
}

.steps strong,
.steps span { display: block; }

.control-list {
  display: grid;
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.control-list div {
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.control-list dd { margin: 0; }

.page-aside {
  position: sticky;
  top: 2rem;
  align-self: start;
  padding: 0 0 0 1.2rem;
  border-left: 1px solid var(--line);
}

.page-aside p {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-aside a {
  display: block;
  padding-block: 0.3rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.page-aside a:hover { color: #fff; }

.updated {
  margin-top: 1.5rem;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #030806;
}

.footer-inner {
  display: flex;
  width: 100%;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 1.7rem;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 760px) {
  .global-header,
  .header-inner { min-height: 6.8rem; }

  .header-inner {
    align-items: flex-start;
    padding: 1.25rem 1.4rem;
  }

  .site-brand img { width: 4.5rem; }

  .site-brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .content,
  .directory-inner { padding: 1.5rem 1.4rem 4.5rem; }

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

  .page-aside {
    position: static;
    order: -1;
    padding: 1rem 0;
    border-block: 1px solid var(--line);
    border-left: 0;
  }

  .page-aside a {
    display: inline-block;
    margin-right: 1rem;
  }

  .directory-card h1,
  .hero h1,
  .policy-header h1 { font-size: clamp(4rem, 21vw, 6rem); }

  .service-entry {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-entry code { overflow-wrap: anywhere; }

  .fact-grid,
  .control-list div { grid-template-columns: 1fr; }

  .policy-nav a { padding-block: 0.7rem; }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.5rem 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-entry { transition: none; }
}
