/* Kinfidential site. Palette from the brand handoff (launch mark):
   Cream #F6E7D0, Night #1E1D1A, Olive #6B6A40, Terracotta #B9592D,
   Tan #CFAB82, Ink #262521. Contrast (WCAG 2.1) is noted per text token. */

@font-face {
  font-family: "Caprasimo";
  src: url("/fonts/Caprasimo-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f6e7d0;          /* Cream */
  --surface: #fbf3e6;
  --text: #262521;        /* Ink: 12.6:1 on bg */
  --muted: #645c50;       /* 5.4:1 on bg */
  --heading: #6b6a40;     /* Olive: 4.6:1 on bg */
  --link: #9a4521;        /* Deepened terracotta: 5.3:1 on bg (#B9592D is 3.8:1) */
  --accent: #b9592d;      /* Terracotta, decorative only */
  --rule: rgba(38, 37, 33, 0.16);
  --todo-bg: #f2c79d;
  --todo-text: #262521;
  --font-heading: "Caprasimo", Georgia, serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1d1a;        /* Night */
    --surface: #2a2823;
    --text: #f6e7d0;      /* 13.9:1 on bg */
    --muted: #c8bfb1;     /* 9.3:1 on bg */
    --heading: #cfab82;   /* Tan: 7.9:1 on bg */
    --link: #e8956a;      /* 7.2:1 on bg, 6.3:1 on surface */
    --accent: #d06a3a;
    --rule: rgba(246, 231, 208, 0.16);
    --todo-bg: #6b3a1c;
    --todo-text: #f6e7d0;
  }
}

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

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

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

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.75rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
}
.brand img { width: 28px; height: auto; display: block; }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading);
}
h1 { font-size: 2.125rem; margin: 2rem 0 1rem; color: var(--text); }
h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.1875rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.375rem; }
strong { font-weight: 700; }

main { padding-bottom: 3rem; }

/* Home */
.hero {
  text-align: center;
  padding: 2.5rem 0 1rem;
}
.hero picture img { width: 132px; height: auto; display: block; margin: 0 auto 1.25rem; }
.hero h1 { font-size: 2.75rem; margin: 0 0 0.5rem; }
.tagline {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}
.positioning {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1.5rem;
}
.soon {
  display: inline-block;
  font-weight: 600;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  margin: 0;
  background: var(--surface);
}

.points {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 0.875rem;
}
.points li {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1rem 1.125rem;
  margin: 0;
}
.points h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1875rem;
}
.points p { margin: 0; }

@media (min-width: 40rem) {
  .points { grid-template-columns: 1fr 1fr; }
}

/* Long-form pages */
.meta { color: var(--muted); }
.lede { font-size: 1.125rem; }

.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
  line-height: 1.45;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.625rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
th { font-weight: 700; }

/* Phone width: each row becomes a card, each cell labelled by its column
   (data-label is written by scripts/build.py). */
@media (max-width: 40rem) {
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-scroll tr {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 0.5rem 0.875rem;
    margin-bottom: 0.75rem;
  }
  .table-scroll td { padding: 0.375rem 0; border: 0; }
  .table-scroll td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--muted);
  }
}

/* Unresolved placeholders in drafts: visible on purpose until the owner fills them. */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 0.25rem;
  padding: 0 0.2em;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.draft-note {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

/* FAQ */
.faq h2 { margin-top: 2rem; }

/* Invite landing and 404 */
.center {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
.center img { width: 96px; height: auto; }
.center h1 { margin: 0; font-size: 1.75rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}
.site-footer ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer p { margin: 0; }
