/*
 * Fauna — the public site.
 *
 * Palette and type come from the app's own tokens (src/ui/tokens), so the site
 * and the product read as one thing. Colours are literal here on purpose: this
 * folder is plain static HTML for S3 and shares no build step with the app.
 */

:root {
  /* surface */
  --abyss: #071009;
  --base: #0c1e1c;
  --canvas: #0d2427;
  --card: #17291c;
  --lifted: #1b3327;

  /* content ramp */
  --primary: #f1f3ec;
  --secondary: #dfe9e1;
  --tertiary: #adc2b4;
  --muted: #98b0a2;
  --dim: #86a292;

  /* semantics */
  --actionable: #ffce86;
  --on-actionable: #2c1b04;
  --solved: #6fe0a0;
  --revisit: #f0895d;

  --hairline: rgba(160, 215, 185, 0.16);
  --wash: rgba(255, 255, 255, 0.04);

  --measure: 68ch;
  --radius: 18px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: linear-gradient(180deg, #17291c 0%, #112420 55%, #0d2427 100%) no-repeat;
  background-attachment: fixed;
  color: var(--secondary);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- skip link */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--actionable);
  color: var(--on-actionable);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
  z-index: 10;
}
.skip:focus {
  left: 0;
}

/* -------------------------------------------------------------------- shell */

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

header.site {
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
}

.bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}

.brand {
  align-items: center;
  color: var(--actionable);
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: -0.4px;
  text-decoration: none;
}
.brand svg {
  height: 26px;
  width: 26px;
}

nav.site ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.site a {
  border-radius: 999px;
  color: var(--tertiary);
  display: inline-block;
  padding: 10px 14px;
  text-decoration: none;
}
nav.site a:hover,
nav.site a:focus-visible {
  background: var(--wash);
  color: var(--primary);
}
nav.site a[aria-current='page'] {
  background: rgba(255, 206, 134, 0.12);
  color: var(--actionable);
}

main {
  padding: 44px 0 72px;
}

/* --------------------------------------------------------------- typography */

h1 {
  color: var(--primary);
  font-size: clamp(32px, 6vw, 46px);
  letter-spacing: -1px;
  line-height: 1.12;
  margin: 0 0 10px;
}

h2 {
  color: var(--primary);
  font-size: clamp(22px, 3.4vw, 27px);
  letter-spacing: -0.4px;
  line-height: 1.25;
  margin: 44px 0 12px;
}

h3 {
  color: var(--primary);
  font-size: 19px;
  margin: 28px 0 8px;
}

p,
li {
  max-width: var(--measure);
}

a {
  color: var(--actionable);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover,
a:focus-visible {
  color: #ffe0ae;
}

strong {
  color: var(--primary);
}

.lede {
  color: var(--tertiary);
  font-size: clamp(18px, 2.4vw, 21px);
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--solved);
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 2.5px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.updated {
  color: var(--dim);
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  margin: 0 0 34px;
}

/* -------------------------------------------------------------------- parts */

.card {
  background: var(--wash);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin: 22px 0;
  padding: 22px 24px;
}
.card > :first-child {
  margin-top: 0;
}
.card > :last-child {
  margin-bottom: 0;
}

.card.promise {
  background: rgba(111, 224, 160, 0.07);
  border-color: rgba(111, 224, 160, 0.28);
}
.card.note {
  background: rgba(240, 137, 93, 0.07);
  border-color: rgba(240, 137, 93, 0.3);
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 26px 0;
}
.grid .card {
  margin: 0;
}
.grid h3 {
  margin-top: 0;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 26px 0;
  padding: 0;
}
.facts li {
  background: var(--wash);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--tertiary);
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 13px;
  padding: 8px 16px;
}
.facts b {
  color: var(--actionable);
}

.btn {
  background: var(--actionable);
  border-radius: 999px;
  color: var(--on-actionable);
  display: inline-block;
  font-weight: 800;
  margin: 6px 10px 6px 0;
  min-height: 52px;
  padding: 14px 26px;
  text-decoration: none;
}
.btn:hover,
.btn:focus-visible {
  background: #ffe0ae;
  color: var(--on-actionable);
}
.btn.quiet {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--secondary);
}
.btn.quiet:hover,
.btn.quiet:focus-visible {
  background: var(--wash);
  color: var(--primary);
}

dl.faq {
  margin: 26px 0;
}
dl.faq dt {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  margin-top: 26px;
}
dl.faq dd {
  margin: 6px 0 0;
  max-width: var(--measure);
}

table {
  border-collapse: collapse;
  margin: 22px 0;
  width: 100%;
}
th,
td {
  border-bottom: 1px solid var(--hairline);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--primary);
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
td {
  color: var(--tertiary);
}

.wrap-table {
  overflow-x: auto;
}

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

/* ------------------------------------------------------------------- footer */

footer.site {
  border-top: 1px solid var(--hairline);
  color: var(--dim);
  font-size: 15px;
  padding: 30px 0 54px;
}
footer.site ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
footer.site a {
  color: var(--muted);
}
footer.site a:hover,
footer.site a:focus-visible {
  color: var(--primary);
}
