:root {
  --night: #0d221c;
  --night-2: #16382e;
  --night-3: #204d3f;
  --bg: #faf3e6;
  --surface: #fffcf4;
  --surface-warm: #f5ead6;
  --line: #e4d4b7;
  --text: #231d19;
  --muted: #625447;
  --red: #b21f32;
  --red-hi: #c4273b;
  --red-deep: #7a1220;
  --gold: #f0be4f;
  --pine: #1e6b47;
  --radius: 16px;
}

[hidden] {
  display: none !important;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-top: 0;
}

h1 { font-size: 36px; margin-bottom: 12px; }
h2 { font-size: 28px; margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 8px; }

a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.fao-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.fao-header {
  background: var(--night);
  border-bottom: 1px solid rgba(240, 190, 79, 0.14);
}

.fao-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fao-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--surface);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}

.fao-brand:hover {
  color: var(--gold);
}

.fao-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fao-nav a {
  text-decoration: none;
  color: rgba(255, 252, 244, 0.86);
  font-size: 16px;
  font-weight: 600;
}

.fao-nav a:hover {
  color: var(--gold);
}

.fao-main {
  padding: 0;
}


.fao-night-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1px 1px at 14% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 38% 12%, rgba(240, 190, 79, 0.75), transparent),
    radial-gradient(1px 1px at 66% 24%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 84% 14%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(ellipse at 50% 95%, rgba(240, 190, 79, 0.14), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 64%, var(--night-3) 100%);
  color: var(--surface);
  padding-top: 28px;
}

.fao-snow-a,
.fao-snow-b {
  position: absolute;
  inset: -240px 0 0 0;
  pointer-events: none;
  z-index: 1;
}

.fao-snow-a {
  background-image:
    radial-gradient(2px 2px at 40px 60px, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 140px 190px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(2px 2px at 260px 110px, rgba(255, 255, 255, 0.4), transparent);
  background-size: 320px 240px;
  animation: fao-snow-1 26s linear infinite;
}

.fao-snow-b {
  background-image:
    radial-gradient(1.5px 1.5px at 70px 80px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(2px 2px at 170px 30px, rgba(255, 255, 255, 0.3), transparent);
  background-size: 200px 200px;
  animation: fao-snow-2 17s linear infinite;
}

@keyframes fao-snow-1 {
  from { transform: translateY(0); }
  to { transform: translateY(240px); }
}

@keyframes fao-snow-2 {
  from { transform: translateY(0); }
  to { transform: translateY(200px); }
}

.fao-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  pointer-events: none;
  z-index: 2;
}

.fao-bulb {
  filter: drop-shadow(0 0 4px currentColor);
  animation: fao-twinkle 2.4s ease-in-out infinite;
}

.fao-b2 { animation-delay: 0.8s; }
.fao-b3 { animation-delay: 1.6s; }

@keyframes fao-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.48; }
}

.fao-hero-inner {
  position: relative;
  z-index: 3;
}

.fao-hero-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 24px auto;
}

.fao-kicker {
  display: inline-block;
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.fao-hero-head h1 {
  color: var(--surface);
  margin-bottom: 8px;
}

.fao-hero-lead {
  margin: 0 auto;
  max-width: 65ch;
  font-size: 16px;
  color: rgba(255, 252, 244, 0.88);
}

.fao-tool-stage {
  margin-bottom: 16px;
}

.fao-hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.fao-engage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.fao-frosted-btn {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 252, 244, 0.25);
  background: rgba(13, 34, 28, 0.45);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fao-frosted-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.fao-frosted-btn[aria-pressed="true"],
.fao-frosted-btn[data-gf-liked] {
  background: var(--red);
  border-color: var(--red-hi);
  color: #ffffff;
}

.fao-share-feedback {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

.fao-hills {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin-top: 8px;
}


.fao-story-body {
  padding-top: 24px;
  padding-bottom: 64px;
}

.fao-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.fao-section:first-child {
  margin-top: 0;
  padding-top: 16px;
  border-top: 0;
}

.fao-section-intro {
  max-width: 70ch;
  color: var(--muted);
  margin: 0 0 24px 0;
}

.fao-steps-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.fao-step-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 0 var(--line),
    0 10px 24px rgba(80, 50, 20, 0.08);
}

.fao-tag-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-warm) 100%);
  border: 1px solid var(--line);
  color: var(--red);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  transform: rotate(-6deg);
  box-shadow: 0 2px 0 var(--line);
  margin-bottom: 14px;
}

.fao-step-item p {
  margin: 0;
  color: var(--muted);
}

.fao-asym-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.fao-asym-copy p {
  max-width: 70ch;
  margin: 0 0 16px 0;
}

.fao-inline-link {
  font-weight: 700;
}

.fao-asym-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fao-mode-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 0 var(--line),
    0 10px 24px rgba(80, 50, 20, 0.08);
}

.fao-medallion {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, var(--surface), var(--surface-warm));
  border: 1px solid var(--line);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 #ffffff, 0 4px 10px rgba(80, 50, 20, 0.12);
}

.fao-mode-box p {
  margin: 0 0 8px 0;
}

.fao-mode-meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.fao-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 0 var(--line),
    0 10px 24px rgba(80, 50, 20, 0.08);
}

.fao-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.fao-table th,
.fao-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.fao-table th {
  font-size: 14px;
  font-weight: 700;
  background: var(--surface-warm);
  color: var(--text);
}

.fao-table tr:last-child td {
  border-bottom: none;
}

.fao-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fao-faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 24px;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 0 var(--line);
}

.fao-faq-item summary {
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fao-faq-item summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--red);
  transition: transform 0.2s ease;
}

.fao-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.fao-faq-item p {
  margin: 12px 0 0 0;
  max-width: 70ch;
  color: var(--muted);
}


.fao-night-cta {
  background:
    radial-gradient(1px 1px at 18% 28%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 78% 24%, rgba(240, 190, 79, 0.7), transparent),
    linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
  color: var(--surface);
  padding: 40px 0;
}

.fao-night-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.fao-cta-heading {
  margin: 0 0 6px 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--surface);
}

.fao-cta-sub {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 252, 244, 0.82);
}

.fao-pill-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red-hi) 0%, var(--red) 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 0 var(--red-deep),
    0 8px 18px rgba(0, 0, 0, 0.35);
}

.fao-pill-cta:hover {
  color: #ffffff;
  filter: brightness(1.06);
}

.fao-article-wrap {
  max-width: 820px;
  padding-top: 32px;
  padding-bottom: 64px;
}

.fao-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.fao-article-head {
  margin-bottom: 24px;
}

.fao-lead {
  margin: 0;
  max-width: 70ch;
  font-size: 18px;
  color: var(--muted);
}

.fao-muted-note {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.fao-prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 0 var(--line), 0 10px 24px rgba(80, 50, 20, 0.08);
}

.fao-prose p,
.fao-prose li {
  max-width: 70ch;
}

.fao-prose h2 { margin-top: 32px; }
.fao-prose h3 { margin-top: 24px; }

.fao-prose table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 20px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.fao-prose th,
.fao-prose td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.fao-prose th {
  font-size: 14px;
  font-weight: 700;
  background: var(--surface-warm);
  color: var(--text);
}

.fao-prose tr:last-child td {
  border-bottom: none;
}

.fao-cta-box {
  margin-top: 32px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 0 var(--line);
}

.fao-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--red-hi) 0%, var(--red) 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--red-deep);
}

.fao-cta-link:hover {
  color: #ffffff;
  filter: brightness(1.06);
}

.fao-404-wrap {
  max-width: 640px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.fao-404-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 0 var(--line), 0 10px 24px rgba(80, 50, 20, 0.08);
}

.fao-footer {
  background: var(--night);
  border-top: 1px solid rgba(240, 190, 79, 0.22);
  color: rgba(255, 252, 244, 0.8);
  padding: 36px 0;
}

.fao-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fao-footer-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--surface);
  display: block;
  margin-bottom: 4px;
}

.fao-footer-note,
.fao-footer-copy {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 252, 244, 0.74);
}

.fao-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
}

.fao-footer-links a {
  color: var(--gold);
}

.fao-footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .fao-wrap { padding: 0 16px; }
  .fao-header-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .fao-nav { gap: 16px; flex-wrap: wrap; }
  .fao-steps-flow { grid-template-columns: 1fr; }
  .fao-asym-section { grid-template-columns: 1fr; }
  .fao-prose { padding: 24px 16px; }
  .fao-cta-link,
  .fao-pill-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fao-snow-a,
  .fao-snow-b,
  .fao-bulb {
    animation: none;
  }
}
