:root {
  color-scheme: light dark;
  --bg: #fbf7f0;
  --surface: #fffdf8;
  --text: #2b2420;
  --muted: #6e625a;
  --line: #e8dfd2;
  --accent: #c8541c;
  --accent-soft: #fbe6d8;
  --code: #f3ece1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1714;
    --surface: #261f1b;
    --text: #efe7de;
    --muted: #b3a597;
    --line: #3a302a;
    --accent: #f08a4b;
    --accent-soft: #3a261b;
    --code: #2f2621;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.05rem;
}

header.site .brand img { width: 32px; height: 32px; }

nav.site { display: flex; gap: 1.1rem; font-size: 0.95rem; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

h1, h2, h3 {
  font-family: ui-serif, "New York", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; margin: 2.5rem 0 0.75rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.9rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.25rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

.lede { font-size: 1.2rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.95rem; }

code {
  font: 0.88em ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--code);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

.hero { text-align: center; padding: 2.5rem 0 1rem; }
.hero img { width: 128px; height: 128px; }
.hero h1 { font-size: 2.9rem; margin: 1rem 0 0.5rem; }
.hero .lede { max-width: 32rem; margin: 0 auto 1.5rem; }

.badge {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 0.75rem;
}

.features li {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.features strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.callout {
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 1rem 1.35rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+";
  display: inline-block;
  width: 1.25rem;
  color: var(--accent);
}
details[open] summary::before { content: "–"; }
details > div { padding: 0.5rem 0 0 1.25rem; }
details > div p:last-child { margin-bottom: 0; }

footer.site {
  margin-top: 4rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}
footer.site a { color: var(--muted); }
footer.site nav { display: flex; gap: 1rem; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.3rem; }
  .hero img { width: 104px; height: 104px; }
}

main.narrow { max-width: 42rem; }
mark { background: var(--accent-soft); color: inherit; padding: 0 0.15em; border-radius: 3px; }

/* Show / Dim / Hide picker: radio inputs and labels, no script. */
.modes { margin: 1.5rem 0 1rem; }
.modes > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
}
.picker span { color: var(--muted); margin-right: 0.5rem; }
.picker label {
  cursor: pointer;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.picker label:hover { color: var(--text); }
#mode-show:checked ~ .picker label[for="mode-show"],
#mode-dim:checked ~ .picker label[for="mode-dim"],
#mode-hide:checked ~ .picker label[for="mode-hide"] {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}
#mode-show:focus-visible ~ .picker label[for="mode-show"],
#mode-dim:focus-visible ~ .picker label[for="mode-dim"],
#mode-hide:focus-visible ~ .picker label[for="mode-hide"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shots { display: none; margin: 0; }
#mode-show:checked ~ .shots-show,
#mode-dim:checked ~ .shots-dim,
#mode-hide:checked ~ .shots-hide {
  display: grid;
  grid-template-columns: 1.63fr 1fr;
  gap: var(--shots-gap, 1.25rem);
  align-items: end;
}
.shots figcaption {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.shots figcaption strong { color: var(--text); }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(60, 35, 20, 0.12);
}
@media (prefers-color-scheme: dark) {
  .shots img { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
}
@media (max-width: 600px) {
  .modes { --shots-gap: 0.6rem; }
  .shots img { border-radius: 10px; }
}
