/* athiv.app: the app's colours and font (CLAUDE.md "Design"). Light only, like the app. */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --panel: #F4F3F1;
  --line: #E6E4E1;
  --text: #1A1A1A;
  --muted: #6B6B6B;
  --accent: #7A1426;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Zen Kaku Gothic New', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 600px) {
  .wrap { padding: 0 24px; }
}

/* Header: wordmark on the left, page links on the right, a thin line below. */
header {
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  color: var(--accent);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
nav {
  display: flex;
  gap: 4px;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 10px 8px;      /* 44 px touch target */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

main {
  padding: 32px 0 48px;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 6px;
}
.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 32px 0 8px;
}
h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 2px;
}
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--accent); }
.muted { color: var(--muted); }
.answer { color: var(--muted); margin: 0; }

.panel {
  background: var(--panel);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}
.panel p:last-child { margin-bottom: 0; }

/* Home: the name large, one line under it. */
.hero {
  padding: 24px 0 8px;
}
.hero h1 {
  color: var(--accent);
  font-size: 44px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.hero .lead {
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
}

.links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
}
.links li { margin: 0; border-bottom: 1px solid var(--line); }
.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  color: var(--text);
  text-decoration: none;
}
.links a::after { content: "›"; color: var(--muted); font-size: 22px; }
.links a:hover { color: var(--accent); }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 32px;
}
footer a { color: var(--muted); }
