/* =========================================================
   Steam: Gone But Not Forgotten
   Shared stylesheet
   ========================================================= */

:root {
  --paper:        #ffffff;
  --paper-warm:   #f6f4ef;
  --ink:          #232019;   /* body text — warm charcoal */
  --ink-strong:   #14110c;   /* headings */
  --muted:        #6b655b;   /* captions, meta */
  --rule:         #ddd7cc;   /* hairlines */
  --brass:        #6f5326;   /* accent */
  --brass-soft:   #8a6a34;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1160px;
  --readw: 78ch;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-strong); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color .15s ease; }
a:hover { color: var(--brass); }

h1, h2, h3 { font-family: var(--serif); color: var(--ink-strong); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
p  { margin: 0 0 1.1em; }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink-strong); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--warm { background: var(--paper-warm); }
.prose { max-width: var(--readw); }
.prose p, .prose li { font-size: 1.075rem; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: var(--ink); }
.center { text-align: center; }
.divider { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px;
}
.brand {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600;
  color: var(--ink-strong); text-decoration: none; letter-spacing: -0.01em;
  line-height: 1.1; padding: .4rem 0;
}
.brand span { display: block; font-size: .7rem; font-weight: 400; font-family: var(--sans); color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans); font-size: .95rem; text-decoration: none; color: var(--ink);
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--brass); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--ink-strong); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: 3px;
  padding: .45rem .6rem; cursor: pointer; color: var(--ink-strong); font-size: .95rem;
  align-items: center; gap: .45rem;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 1rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: 2px; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink-strong); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--solid { background: var(--ink-strong); color: #fff; }
.btn--solid:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink-strong); }
.btn--ghost:hover { background: var(--ink-strong); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: flex-start;
  background: #111 center/cover no-repeat;
  color: #fff;
}
.hero .wrap { width: 100%; }          /* stop the wrap shrinking + auto-centring */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,9,7,.68) 0%, rgba(10,9,7,.40) 36%, rgba(10,9,7,.14) 60%, rgba(10,9,7,.50) 100%);
}
.hero-inner {
  position: relative; z-index: 2; max-width: 620px;
  padding-top: clamp(3rem, 22vh, 13rem);
  padding-bottom: clamp(2.2rem, 6vw, 4.5rem);
}
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 1px 24px rgba(0,0,0,.35); }
.hero p { color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 1.6vw, 1.28rem); margin: 0; max-width: 46ch; }

/* ---------- memorial / intro band ---------- */
.memorial h2 { font-style: normal; }
.memorial .dates { color: var(--muted); font-family: var(--sans); font-size: .95rem; margin-top: -.2em; }

/* ---------- feature blocks (alternating image/text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(2.6rem, 6vw, 4.5rem); }
.feature__media img { width: 100%; }
.feature--rev .feature__media { order: 2; }
.feature__body { max-width: 52ch; }
.feature--top { align-items: start; }
.feature__media figcaption { margin-top: .55rem; }
.caption-body { font-family: var(--sans); font-size: .95rem; color: var(--muted); line-height: 1.6; }
.feature__body .specs { max-width: none; }

/* ---------- image + caption ---------- */
figure { margin: 0; }
.figure { margin: clamp(1.6rem,4vw,2.6rem) 0; max-width: 840px; }
.figure img { width: 100%; }
figcaption { font-family: var(--sans); font-size: .88rem; color: var(--muted); line-height: 1.5; margin-top: .55rem; max-width: 62ch; }
figcaption .pg { color: var(--brass); font-weight: 600; }

/* excerpts stack */
.plate { margin: 0 0 clamp(2.4rem, 6vw, 3.6rem); max-width: 840px; }
.plate:last-child { margin-bottom: 0; }
.plate img { width: 100%; }
.plate figcaption { margin-top: .7rem; font-size: .92rem; }

/* ---------- reviews ---------- */
.review { max-width: 92ch; margin: 0 0 clamp(2.4rem,6vw,3.4rem); }
.review:last-child { margin-bottom: 0; }
.review__src { font-family: var(--sans); font-size: .92rem; color: var(--brass); margin: 0 0 .8em; }
.review p { font-size: 1.08rem; }
.pullquote { border-left: 3px solid var(--rule); padding-left: 1.2rem; margin: 0 0 1.2rem; }
.pullquote p { font-family: var(--serif); font-size: 1.18rem; font-style: italic; color: var(--ink-strong); margin-bottom: .5em; }
.pullquote cite { font-style: normal; font-family: var(--sans); font-size: .9rem; color: var(--muted); }

/* ---------- gallery (horizontal scroll-snap) ---------- */
.gallery {
  display: flex; gap: 1.1rem; overflow-x: auto; padding: .5rem 0 1.4rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 8px; }
.gallery__item { flex: 0 0 auto; scroll-snap-align: start; }
.gallery__item button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.gallery__item img { height: clamp(280px, 46vh, 460px); width: auto; }
.gallery-hint { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin: 0; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(8,7,5,.92); align-items: center; justify-content: center; padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer; padding: .3rem .6rem;
}

/* ---------- shop items ---------- */
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; margin: 2rem 0 0; }
.shop-item img { width: 100%; }
.shop-item h3 { margin: 1.1rem 0 .35rem; font-size: 1.28rem; }
.shop-item p { font-size: 1rem; margin-bottom: 1rem; }

/* ---------- notice / callout ---------- */
.notice { border: 1px solid var(--rule); border-left: 3px solid var(--brass); background: var(--paper-warm); padding: 1.1rem 1.3rem; border-radius: 2px; margin: 1.6rem 0; }
.notice p { margin: 0; }

/* ---------- specs list ---------- */
.specs { list-style: none; margin: 1.2rem 0; padding: 0; max-width: 92ch; }
.specs li { padding: .55rem 0; border-top: 1px solid var(--rule); font-size: 1.0rem; }
.specs li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- page intro ---------- */
.page-head { padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(1.4rem,3vw,2rem); }
.page-head h1 { max-width: none; }
.page-head h1.title-wide { font-size: clamp(1.95rem, 4.4vw, 3.15rem); }
.measure-wide { max-width: 92ch; }
.page-head p.lead { max-width: 92ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-strong); color: rgba(255,255,255,.82); padding: clamp(2.6rem,6vw,3.6rem) 0; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brass-soft); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; align-items: flex-start; }
.footer-memorial { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin: 0 0 .25em; }
.footer-memorial + p { font-size: .9rem; color: rgba(255,255,255,.7); margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.footer-links a { font-size: .92rem; text-decoration: none; }
.social { display: flex; gap: .9rem; margin-top: 1.6rem; }
.social a { display: inline-flex; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease; }
.social a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.social svg { width: 19px; height: 19px; fill: #fff; }
.colophon { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---------- responsive: mobile gets its own layout ---------- */
@media (max-width: 760px) {
  body { font-size: 1.02rem; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .4rem clamp(1.1rem,4vw,2.5rem) 1rem;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
  }
  .site-header { position: sticky; }
  .nav { position: relative; }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links a { display: block; padding: .85rem 0; font-size: 1.02rem; border-bottom: 0; }
  .nav-links a[aria-current="page"] { color: var(--brass); border-bottom: 0; }

  .hero { min-height: 72vh; }
  .hero-inner { max-width: none; }

  /* stacked feature blocks, image always first on mobile */
  .feature { grid-template-columns: 1fr; gap: 1.3rem; }
  .feature--rev .feature__media { order: 0; }
  .feature__body { max-width: none; }

  .gallery__item img { height: 66vw; max-height: 380px; }

  .hero-inner { padding-top: clamp(2.5rem, 16vh, 7rem); }
  .shop-grid { margin-top: 1.1rem; }
  .page-head--tight { padding-bottom: .35rem; }
  .page-head--tight p.lead { margin-bottom: .55rem; }
  .shop-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .feature--top { align-items: stretch; }

  .btn { display: block; text-align: center; }
  .btn-row { flex-direction: column; align-items: stretch; }

  .footer-grid { flex-direction: column; gap: 1.6rem; }
}

/* ---------- accessibility niceties ---------- */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Crop the black foreground from the hero photo on portrait phones */
@media (max-width: 760px) and (orientation: portrait) {
  .hero { background-size: auto 133%; background-position: right top; }
}
