/* GutenTalk website. Colors follow the app's theme (ui/designsystem/Theme.kt). */
:root {
  color-scheme: light dark;
  --bg: #fafdfc;
  --surface: #ffffff;
  --surface-2: #eef4f3;
  --text: #161d1d;
  --muted: #3f4949;
  --border: #c4cfce;
  --primary: #00696e;
  --on-primary: #ffffff;
  --primary-soft: #cce8e9;
  --on-primary-soft: #002022;
  --accent: #8b5000;
  --danger: #ba1a1a;
  --on-danger: #ffffff;
  --danger-soft: #ffdad6;
  --ok-soft: #cce8e9;
  --focus: #8b5000;
  --radius: 14px;
  --max: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1415;
    --surface: #161d1e;
    --surface-2: #1d2526;
    --text: #dde4e3;
    --muted: #bfc8c8;
    --border: #3f4949;
    --primary: #4fd8df;
    --on-primary: #003739;
    --primary-soft: #004f53;
    --on-primary-soft: #cce8e9;
    --accent: #ffb86e;
    --danger: #ffb4ab;
    --on-danger: #690005;
    --danger-soft: #3b1512;
    --ok-soft: #12393b;
    --focus: #ffb86e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--surface); color: var(--text);
  padding: 0.5rem 0.75rem; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 0.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem;
}
.brand img { width: 2rem; height: 2rem; border-radius: 8px; }
.site-nav ul { list-style: none; display: flex; gap: 0.25rem 1rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 0.25rem 0; }
.site-nav a:hover { color: var(--text); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }

/* Content */
h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 6vw, 2.4rem); margin: 2rem 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
.lede { font-size: 1.15rem; color: var(--muted); }
.updated { color: var(--muted); font-size: 0.95rem; }
.prose { padding-bottom: 3rem; }
.prose ul { padding-left: 1.25rem; }

.toc {
  background: var(--surface-2); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.toc h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }

.callout {
  background: var(--primary-soft); color: var(--on-primary-soft);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout a { color: inherit; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0 0 1rem; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; }
@media (max-width: 30rem) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 0.5rem; } }

details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin: 0 0 0.75rem; padding: 0 1rem;
}
summary { cursor: pointer; font-weight: 600; padding: 0.85rem 0; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; }

/* Home */
.hero { padding: 2.5rem 0 1rem; }
.hero .icon { width: 4.5rem; height: 4.5rem; border-radius: 18px; }
.hero h1 { margin-top: 1rem; }
.features { list-style: none; padding: 0; display: grid; gap: 0.75rem; margin: 1.5rem 0 2rem; }
@media (min-width: 40rem) { .features { grid-template-columns: 1fr 1fr; } }
.features li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0;
}
.features strong { display: block; margin-bottom: 0.25rem; }
.store-note { color: var(--muted); }
.shots { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 2rem; }
.shots .placeholder {
  flex: 0 0 9.5rem; aspect-ratio: 9 / 19.5; border-radius: 18px;
  background: var(--surface-2); border: 1px dashed var(--border);
  display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; text-align: center; padding: 0.5rem;
}

/* Forms */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0;
}
.card h2 { margin-top: 0; }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
input[type="email"], input[type="text"] {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--muted); border-radius: 10px; padding: 0.7rem 0.8rem;
}
input:focus-visible { outline-offset: 0; }
.hint { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; }
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
button {
  font: inherit; font-weight: 600; border: 0; border-radius: 999px;
  padding: 0.7rem 1.3rem; min-height: 2.75rem; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
}
button.secondary { background: transparent; color: var(--primary); border: 1px solid var(--border); }
button.danger { background: var(--danger); color: var(--on-danger); }
button[disabled] { opacity: 0.6; cursor: progress; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; margin-top: 1rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex: none; accent-color: var(--danger); }
.status { margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: 10px; }
.status:empty { display: none; }
.status.error { background: var(--danger-soft); }
.status.info { background: var(--ok-soft); }
[hidden] { display: none !important; }
.cols { display: grid; gap: 0 1.5rem; }
@media (min-width: 40rem) { .cols { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { padding-top: 1.25rem; padding-bottom: 1.5rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0 0 0.75rem; padding: 0; }
.site-footer p { margin: 0; }
