:root {
  --bg:       #faf9f7;
  --text:     #1a1a1a;
  --muted:    #555;
  --accent:   #2a6e6e;
  --border:   #ddd;
  --max-w:    720px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ── Layout ── */

header, main, footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { padding-top: 2rem; padding-bottom: 3rem; }

footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── Nav ── */

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

nav .site-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  margin-right: auto;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover { color: var(--accent); }

/* ── Home ── */

.home h1 {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
}

.home .tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.home-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.95rem;
}

.cta:hover { background: var(--accent); color: #fff; }

/* ── Stories index ── */

.story-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.story-card {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.story-card:first-child { border-top: 1px solid var(--border); }

.story-card a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
}

.story-card a:hover { text-decoration: underline; }

.story-card .plot {
  color: var(--muted);
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
}

/* ── Story detail ── */

.story-header {
  margin-bottom: 1.75rem;
}

.story-header h1 { margin-bottom: 0.4rem; }

.story-header .plot {
  color: var(--muted);
  font-style: italic;
  margin: 0;
  font-size: 0.95rem;
}

.story-text {
  line-height: 1.85;
  font-size: 1.05rem;
}

.story-text p { margin: 0 0 1em; }

.story-nav {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.story-nav a { color: var(--accent); text-decoration: none; }
.story-nav a:hover { text-decoration: underline; }

/* ── Vocab ── */

.vocab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

.vocab-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
}

.vocab-table td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.vocab-table tbody tr:nth-child(even) td { background: #f3f2f0; }

.vocab-table .word { font-weight: 500; white-space: nowrap; }

.sense { display: block; }
.sense + .sense { margin-top: 0.15rem; }

.pos {
  font-size: 0.8rem;
  color: var(--accent);
  font-variant: small-caps;
  margin-right: 0.3rem;
}
