/* FinnBook — one stylesheet, three pages. Colours are the icon's: enamel ink
   and chrome yellow. */

:root {
  --ink: #101014;
  --ink-soft: #17171d;
  --line: #26262f;
  --yellow: #f5c518;
  --text: #ececf1;
  --text-dim: #a0a0ad;
  --measure: 40rem;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--measure); }

a { color: var(--yellow); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* ---- header ---- */

header.site {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
header.site .wrap { display: flex; align-items: center; gap: 1rem; }
header.site img { width: 34px; height: 34px; border-radius: 8px; display: block; }
header.site .name {
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none; margin-right: auto;
}
header.site nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
header.site nav a { color: var(--text-dim); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--text); }

/* ---- hero ---- */

.hero { padding: 5rem 0 3rem; text-align: center; }
.hero img.mark {
  width: 96px; height: 96px; border-radius: 22px; margin-bottom: 1.75rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.1; margin: 0 0 1rem;
  letter-spacing: -0.03em; font-weight: 700;
}
.hero p.lede {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--text-dim);
  margin: 0 auto; max-width: 34rem; line-height: 1.5;
}
.badge {
  display: inline-block; margin-top: 2.25rem; padding: 0.7rem 1.4rem;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-dim); font-size: 0.92rem; background: var(--ink-soft);
}

.cta {
  display: inline-block; margin-top: 2.25rem; padding: 0.85rem 1.75rem;
  background: var(--yellow); color: var(--ink);
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  border-radius: 999px; text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.cta:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.cta-note {
  margin: 0.9rem 0 0; font-size: 0.88rem; color: var(--text-dim);
}

/* ---- shots ---- */

.shots {
  display: grid; gap: 1.25rem; padding: 3rem 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.shots img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--line);
}

.shots .shot {
  display: block; border-radius: 12px; cursor: zoom-in;
  transition: transform 0.15s ease;
}
.shots .shot:hover { transform: translateY(-2px); }
.shots .shot:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }

/* ---- lightbox ---- */

#lightbox {
  border: none; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh;
  overflow: visible; color: var(--text);
}
#lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
#lightbox img {
  display: block; margin: 0 auto;
  max-width: min(1200px, 92vw); max-height: 82vh;
  width: auto; height: auto;
  border-radius: 10px; border: 1px solid var(--line);
}
.lightbox-caption {
  margin: 0.9rem auto 0; text-align: center;
  font-size: 0.9rem; color: var(--text-dim); max-width: 92vw;
}
.lightbox-close {
  position: fixed; top: 1rem; right: 1rem;
  width: 44px; height: 44px; /* a real hit target, not a 16px glyph */
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1;
  color: var(--text); background: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--line); }
.lightbox-close:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .shots .shot { transition: none; }
  .shots .shot:hover { transform: none; }
}

/* ---- features ---- */

.features { padding: 2rem 0 4rem; display: grid; gap: 2.75rem; }
@media (min-width: 46rem) { .features { grid-template-columns: 1fr 1fr; gap: 3rem 3.5rem; } }
.features h2 {
  font-size: 1.15rem; margin: 0 0 0.5rem; letter-spacing: -0.01em;
  color: var(--yellow); font-weight: 600;
}
.features p { margin: 0; color: var(--text-dim); }

/* ---- long-form pages ---- */

main.doc { padding: 3.5rem 0 5rem; }
main.doc h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); letter-spacing: -0.02em; margin: 0 0 0.5rem; }
main.doc .updated { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 2.75rem; }
main.doc h2 {
  font-size: 1.2rem; margin: 2.75rem 0 0.75rem; letter-spacing: -0.01em;
  padding-top: 1.75rem; border-top: 1px solid var(--line);
}
main.doc h3 { font-size: 1rem; margin: 1.75rem 0 0.4rem; color: var(--yellow); }
main.doc p, main.doc li { color: var(--text-dim); }
main.doc strong { color: var(--text); font-weight: 600; }
main.doc ul { padding-left: 1.2rem; }
main.doc li { margin-bottom: 0.45rem; }

table.data {
  width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem;
}
table.data th, table.data td {
  text-align: left; padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
table.data th { color: var(--text); font-weight: 600; }
table.data td { color: var(--text-dim); }

.callout {
  background: var(--ink-soft); border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: 0 8px 8px 0; padding: 1.1rem 1.25rem; margin: 1.5rem 0;
}
.callout p { margin: 0; }

/* ---- footer ---- */

footer.site {
  border-top: 1px solid var(--line); padding: 2.5rem 0 3.5rem;
  color: var(--text-dim); font-size: 0.92rem;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
footer.site nav { display: flex; gap: 1.5rem; margin-left: auto; }
footer.site a { color: var(--text-dim); text-decoration: none; }
footer.site a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
