/* askcarnivores.com — v1 portal landing
   Zero dependencies. Mobile-first. Light + dark via prefers-color-scheme.
   To rebrand: change the tokens in :root and the dark block. Nothing else. */

:root {
  --bg:        #faf7f2;   /* bone */
  --bg-raised: #ffffff;
  --ink:       #1c1a17;   /* deep charcoal */
  --ink-soft:  #55504a;
  --ink-faint: #736d65;   /* 4.79:1 on --bg — keep it at least this dark, it is used at 12px */
  --rule:      #e3ddd3;
  --accent:    #9a3b23;   /* muted rust */
  --accent-ink:#ffffff;
  --wash:      #f4e9e4;   /* faint accent tint, for the notice strip */
  --focus:     #1c5f8f;

  --measure: 66ch;
  --wrap: 68rem;
  --space: clamp(1rem, 4vw, 2rem);
  --radius: 4px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #161513;
    --bg-raised: #1f1e1b;
    --ink:       #f2eee7;
    --ink-soft:  #c3bcb1;
    --ink-faint: #9a938a;
    --rule:      #33302b;
    --accent:    #e0805f;
    --accent-ink:#1a1512;
    --wash:      #251c18;
    --focus:     #7ab8e8;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- shared bits ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space);
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: var(--measure); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  font-size: 1rem;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: var(--accent-ink); }

.section { padding-block: clamp(2.75rem, 8vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--rule); }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding-block: 0.9rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--accent); }

.lang {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.lang a { color: var(--ink-soft); }
.lang [aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- under-construction strip ---------- */

.construction {
  background: var(--wash);
  border-bottom: 1px solid var(--rule);
  padding-block: 0.7rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.construction p { margin: 0; max-width: none; }
.construction strong { color: var(--ink); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3rem, 11vw, 6rem); }

.hero h1 {
  font-size: clamp(2.1rem, 7.5vw, 3.6rem);
  max-width: 18ch;
}

.hero .lede {
  font-size: clamp(1.0625rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- directory ---------- */

.cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.card h3 { font-size: 1.125rem; margin-bottom: 0.35rem; }

.card .role {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.card-links a::after {
  content: " ↗";
  font-weight: 400;
  color: var(--ink-faint);
}

/* ---------- notice / disclaimer ---------- */

.notice {
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 2rem;
}
.notice p { margin: 0; }
.notice strong { color: var(--ink); }

/* ---------- ask-the-bot banner ---------- */

.banner {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.25rem);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.banner h2 { margin-bottom: 0.35rem; font-size: 1.5rem; }
.banner p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.banner .banner-text { min-width: 15rem; flex: 1 1 22rem; }

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 7vw, 3.5rem);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.site-footer h2 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-disclaimer { max-width: var(--measure); }

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 1rem 1.75rem;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 0.875rem;
  color: var(--ink-faint);
}
.footer-meta a { color: var(--ink-soft); }

/* ---------- studio credit ----------
   Copied from the askcarnivore.com placeholder, not imported — the two projects
   share no code (see README siloing rule). Re-tokenised for this palette.
   The original leans on opacity .68 for its resting state; that would drop this
   below AA on a light background, so the quiet-then-brighten behaviour is done
   with colour instead. The studio's mark keeps its own proportions. */

.by {
  display: inline-block;
  margin-inline-start: auto;
  padding: 0.4rem 0.3rem;
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.footer-meta .by:hover,
.footer-meta .by:focus-visible { color: var(--ink); }

.by__name { font-weight: 700; color: var(--ink); }

.by__mark {
  display: inline-block;
  margin-left: 0.18em;
  font-size: 0.74em;
  font-weight: 600;
  letter-spacing: 0.03em;
  transform: translateY(-0.32em);
}

@media (prefers-reduced-motion: reduce) {
  .by { transition: none; }
}
