/* Taarif — taarif.app
 *
 * Palette and type are lifted verbatim from packages/brand-presets/src/taarif.ts
 * so the site and the app cannot drift. Design System Core Kit section 04 is
 * binding here too: PAPER ON CREAM · HAIRLINE BORDERS · NO SHADOWS AT REST.
 * There is not one box-shadow in this file, and that is the design, not an
 * omission. */

:root {
  --cream: #f6f5ef;
  --paper: #fcfbf7;
  --ink: #24382a;
  --ink-soft: #4a5f52;
  --ink-muted: #6f8377;
  --leaf: #3e7c4f;
  --leaf-lift: #55a06b;
  --sprout: #8fbf6b;
  --citrus: #e9a13b;
  --tomato: #c0492f;
  --hairline: #dcdcd2;

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 22px; /* the design's screen gutter */
  --r-card: 18px;
  --r-chip: 10px;
}

/* "Basil at night v2" — the app ships a full dark theme, so the site follows the
 * reader's system rather than forcing cream at 1am. */
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #111a13;
    --paper: #1c2921;
    --ink: #f2f3eb;
    --ink-soft: #c3cdc4;
    --ink-muted: #9aa89d;
    --leaf: #85cd97;
    --leaf-lift: #9dd8ab;
    --hairline: #2c3b32;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: 960px; }

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

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

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

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
/* The dot of the i is a seed, tilted 24° — the wordmark's only ornament. */
.seed {
  width: 7px; height: 9px;
  background: var(--leaf);
  border-radius: 60% 60% 55% 55% / 70% 70% 40% 40%;
  transform: rotate(24deg) translateY(-11px);
  display: inline-block;
  margin: 0 1px 0 -6px;
}

nav.site a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  margin-left: 18px;
}
nav.site a:hover { color: var(--leaf); }
nav.site a[aria-current='page'] { color: var(--ink); font-weight: 600; }

footer.site {
  border-top: 1px solid var(--hairline);
  margin-top: 72px;
  padding: 28px 0 44px;
  color: var(--ink-muted);
  font-size: 14px;
}
footer.site a { color: var(--ink-soft); }
.foot-rows { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---- type --------------------------------------------------------------- */

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(31px, 5.2vw, 46px); font-weight: 800; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 40px 0 10px; }
h3 { font-size: 17px; margin: 26px 0 6px; }
p  { margin: 0 0 14px; }
ul { margin: 0 0 16px; padding-left: 20px; }
li { margin: 0 0 8px; }
a  { color: var(--leaf); }
strong { font-weight: 600; color: var(--ink); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1px 5px;
}
hr { border: 0; border-top: 1px solid var(--hairline); margin: 56px 0; }

.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}

.lede { font-size: 18.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---- landing ------------------------------------------------------------ */

.hero { padding: 76px 0 8px; }
.hero .lede { max-width: 34em; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; }
.btn {
  display: inline-block;
  background: var(--leaf);
  color: #fcfbf7;                 /* text.onAccent — cream on leaf, never ink */
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 999px;           /* the pill */
}
.btn:hover { background: var(--leaf-lift); }
.btn--quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn--quiet:hover { background: var(--paper); color: var(--ink); }

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

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 14px; margin: 20px 0 0; }
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 18px;
}
.card h3 { margin: 0 0 6px; font-size: 16.5px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.chip {
  display: inline-block;
  border: 1px solid var(--hairline);
  background: var(--paper);
  border-radius: var(--r-chip);
  padding: 5px 11px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 6px 6px 0;
}

.section { margin-top: 56px; }

/* ---- legal pages -------------------------------------------------------- */

.doc { padding: 44px 0 0; }
.doc h2:first-of-type { margin-top: 28px; }
.toc {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 16px 18px;
  margin: 22px 0 8px;
}
.toc p { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); font-family: ui-monospace, Menlo, monospace; }
.toc ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 24px; }
.toc li { margin: 0 0 5px; font-size: 14.5px; }

.callout {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--citrus);
  background: var(--paper);
  border-radius: var(--r-chip);
  padding: 14px 16px;
  margin: 22px 0;
  font-size: 15px;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .toc ul { columns: 1; }
  .hero { padding: 52px 0 4px; }
}
