/* Kithly house style: "Quiet Paper" (see kithly-planner DESIGN.md).
   Flat warm paper, brown-black ink, serif headings, Geist text, hairline rules.
   No cards, shadows or gradients. */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --paper: #FBF8F1;
  --text: #332E24;
  --text-muted: #6B6357;
  --rule: #B8B3A8;
  --rule-soft: rgba(184, 179, 168, 0.45);
  --margin: rgba(219, 107, 107, 0.55);
  --accent: #6B4F36;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --row: 48px;
  --measure: 34rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1A17;
    --text: #DED9C9;
    --text-muted: #A8A191;
    --rule: #666157;
    --rule-soft: rgba(102, 97, 87, 0.6);
    --margin: rgba(204, 102, 97, 0.65);
    --accent: #DBB88C;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.75rem 0; }
.wordmark { font: 400 1.9rem/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; }
.site-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--text); font-size: 0.98rem; padding: 0.5rem 0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rule); }
.site-footer { border-top: 1px solid var(--rule); margin-top: 5rem; padding: 1.75rem 0 3rem; color: var(--text-muted); font-size: 0.9rem; }
.site-footer a { color: var(--text-muted); }
.site-footer .sep { margin: 0 0.5rem; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); line-height: 1.05; margin: 0 0 1rem; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; margin: 0 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.35rem; }
.kicker { font: 500 0.8rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 1rem; }
.lede { font-size: 1.2rem; max-width: var(--measure); }
.muted { color: var(--text-muted); }
.soon { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.75rem; }

/* Home: dictionary-entry hero */
.entry { padding: 3.5rem 0 3rem; max-width: 46rem; }
.entry .word { font: 400 clamp(5rem, 14vw, 9rem)/0.9 var(--serif); letter-spacing: -0.03em; margin: 0; }
.entry .pron { color: var(--text-muted); margin: 0.6rem 0 1.25rem; font-size: 1.05rem; }
.entry .pron em { font-family: var(--serif); margin-left: 1.25rem; }
.entry .definition { font: 400 clamp(1.6rem, 3vw, 2.15rem)/1.3 var(--serif); margin: 0 0 1.5rem; }
.entry .mission { font-size: 1.15rem; max-width: var(--measure); margin: 0; }

/* App rows */
.apps { border-top: 1px solid var(--rule); }
.app-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; align-items: center; padding: 3.5rem 0; border-bottom: 1px solid var(--rule); }
.app-row .app-name { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.app-row .app-name img { width: 64px; height: 64px; border-radius: 14px; }
.app-row h2 { margin: 0; }
.app-row p { max-width: var(--measure); margin: 0 0 0.5rem; }
.app-row .more { display: inline-block; margin-top: 1rem; font-weight: 500; }
.device { justify-self: center; }
.device img { border-radius: 18px; border: 1px solid var(--rule); max-height: 30rem; width: auto; }
.device.phone img { border-radius: 28px; max-height: 32rem; }
.icon-large { justify-self: center; width: 180px; height: 180px; border-radius: 40px; }

/* Beliefs */
.beliefs { padding: 3.5rem 0 0; max-width: 46rem; }
.beliefs ul { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.beliefs li { padding: 1rem 0; border-bottom: 1px solid var(--rule-soft); }
.beliefs li strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-right: 0.4rem; }

/* Product page */
.notebook { }
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; padding: 3rem 0 2rem; }
.product-hero.stacked { grid-template-columns: 1fr; gap: 2.5rem; }
.screenshot { width: 100%; border: 1px solid var(--rule); border-radius: 16px; }
.screenshot.tablet { width: auto; max-width: 100%; max-height: 46rem; border-radius: 24px; justify-self: center; }
.app-row .screenshot.tablet { max-height: 34rem; }
.tour { justify-self: center; width: 100%; max-width: 40rem; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.tour video, .tour img { width: 100%; height: auto; display: block; }
.tour .tour-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .tour .tour-video { display: none; }
  .tour .tour-still { display: block; }
}
.lines {
  list-style: none; padding: 0; margin: 2.5rem 0 0; max-width: 46rem; font-size: 1.1rem;
  border-top: 1px solid var(--rule);
  background: linear-gradient(to right, transparent 0.25rem, var(--margin) 0.25rem, var(--margin) calc(0.25rem + 1px), transparent calc(0.25rem + 1px));
}
.lines li { height: 3.25rem; display: flex; align-items: flex-end; padding: 0 0 0.6rem 1.25rem; border-bottom: 1px solid var(--rule); }
.badge-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.badge { display: inline-flex; align-items: center; gap: 0.55rem; background: #000; color: #fff; border-radius: 10px; padding: 0.55rem 1rem; text-decoration: none; font: 500 0.95rem/1.15 var(--sans); }
.badge[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.badge svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.badge small { display: block; font-size: 0.68rem; font-weight: 400; }
.facts { margin-top: 2.5rem; color: var(--text-muted); font-size: 0.95rem; max-width: 44rem; }

/* Long-form pages (privacy, support) */
.prose { max-width: 42rem; padding: 2.5rem 0 1rem; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.prose h2 { font-size: 1.7rem; margin-top: 2.75rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { max-width: var(--measure); }
.prose dt { font-weight: 500; margin-top: 1.25rem; }
.prose dd { margin: 0.25rem 0 0; }

@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .app-row, .product-hero { grid-template-columns: 1fr; gap: 2rem; }
  .device img { max-height: 24rem; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
