/* The Gnome Diary. Parchment by day, lamplit soil by night. */
:root {
  --bg: #f5eedf;
  --surface: #fffaf0;
  --ink: #2a2017;
  --muted: #6e5c48;
  --rule: #e0d2b8;
  --accent: #b4502a;
  --accent-ink: #fffaf0;
  --glow: #e9c547;
  --note: #f1e4c4;
  --shadow: 0 1px 2px rgb(60 40 20 / 0.08), 0 8px 24px rgb(60 40 20 / 0.08);
  --display: "Fraunces", Georgia, serif;
  --body: "Literata", Georgia, serif;
  --measure: 40rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1611;
    --surface: #251e17;
    --ink: #eee4d3;
    --muted: #b3a38c;
    --rule: #3a3026;
    --accent: #e27b4c;
    --accent-ink: #1b1611;
    --glow: #e9c547;
    --note: #2f2619;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--body);
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; font-weight: 800; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; font-weight: 600; }
img { max-width: 100%; display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header, main, .site-footer { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.wordmark {
  font: 800 1.6rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark::before {
  content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.35em;
  background: var(--glow); transform: rotate(45deg) translateY(-0.12em); border-radius: 2px;
}
.site-header nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

section { margin: 3rem 0; }
.hero { margin-top: 2.5rem; max-width: 46rem; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem;
}
.eyebrow a { color: inherit; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button {
  display: inline-block; padding: 0.7rem 1.2rem; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: 600 0.95rem/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.button.quiet { background: transparent; color: var(--accent); }
.button:hover { filter: brightness(1.08); }

/* Screenshots carry the status bar (top 55px of 900) and the help overlay (below 600) on screen.
   Zoom 900/540 about the point that keeps rows 55 to 595 in view. */
.shot { aspect-ratio: 16 / 9; overflow: hidden; background: var(--rule); border-radius: 10px; margin: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.667); transform-origin: 50% 15.3%; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
  color: inherit; text-decoration: none; overflow: hidden; transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-3px); }
.card .shot { border-radius: 0; }
.card-body { padding: 1rem 1.2rem 1.3rem; }
.card-body p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card.feature { display: grid; grid-template-columns: 1fr; }
@media (min-width: 52rem) {
  .card.feature { grid-template-columns: 3fr 2fr; align-items: center; }
  .card.feature .shot { height: 100%; aspect-ratio: auto; min-height: 20rem; }
  .card.feature .card-body { padding: 2rem; }
  .card.feature h3 { font-size: 1.8rem; font-weight: 800; }
}
.more { margin-top: 1.5rem; }

.entry { max-width: var(--measure); margin: 2.5rem auto 0; }
.byline { font-style: italic; color: var(--muted); margin-top: -0.25rem; }
.banner { margin: 2rem 0; box-shadow: var(--shadow); }
@media (min-width: 52rem) {
  .banner { margin-left: -6rem; margin-right: -6rem; }
}
.prose p { margin: 0 0 1.1em; }
.prose strong { font-family: var(--display); font-weight: 600; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1rem; border-left: 3px solid var(--glow); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.note {
  margin: 2.5rem 0; padding: 1.25rem 1.5rem; background: var(--note); border-radius: 12px;
  border-left: 5px solid var(--glow); font-size: 0.97rem;
}
.note h2 { font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.4rem; }
.note p { margin: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; }
.pager a {
  display: block; padding: 1rem 1.2rem; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600;
}
.pager a small { display: block; font: 0.8rem var(--body); color: var(--muted); margin-bottom: 0.2rem; }
.pager .next { text-align: right; }

.cast .gnome { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 1.25rem 1.4rem; }
.gnome .word {
  display: inline-block; margin: 0 0 0.75rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  background: var(--glow); color: #2a2017; font-size: 0.8rem; font-weight: 600;
}
.gnome h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.1rem; }
.gnome .job { margin: 0 0 0.75rem; color: var(--muted); }
.gnome .wrote { margin: 0; font-size: 0.95rem; }

.follow {
  max-width: var(--measure); margin: 4rem auto; padding: 2rem; text-align: center;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow);
}
.follow p { color: var(--muted); }
.signup { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 1rem 0; }
.signup input {
  flex: 1 1 14rem; max-width: 20rem; padding: 0.7rem 1rem; border-radius: 999px; border: 2px solid var(--rule);
  background: var(--bg); color: var(--ink); font: inherit;
}
.follow .links { margin-bottom: 0; }

.site-footer { padding-top: 1rem; padding-bottom: 3rem; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--rule); }
