/* ── RollServe — official site ─────────────────────────────────
   Editorial layout: oversized display type, hairline rules, generous
   negative space, and art that bleeds rather than sits in boxes.
   ---------------------------------------------------------------- */

:root {
  --ink:        #0d0906;
  --ink-2:      #140d08;
  --oak-line:   rgba(217, 164, 65, .16);
  --brass:      #d9a441;
  --brass-dim:  #9a7130;
  --brass-lit:  #f3cd7a;
  --parchment:  #f2e6cf;
  --parch-dim:  rgba(242, 230, 207, .62);
  --ease:       cubic-bezier(.22, .9, .28, 1);
  --wrap:       1240px;
  --gut:        clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font: 16px/1.6 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 700; }
a { color: var(--brass-lit); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brass); color: var(--ink); padding: 10px 16px;
}
.skip:focus { left: 0; }

/* Shared eyebrow / lead-in */
.kicker {
  margin: 0 0 18px;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--brass-dim);
}

/* ── Top bar ──────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 14px var(--gut);
  background: rgba(13, 9, 6, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--oak-line);
}
.brand { margin-right: auto; line-height: 0; }
.brand img { width: 140px; }

.site-menu { display: flex; gap: 26px; }
.site-menu a {
  font-size: 13.5px;
  letter-spacing: .02em;
  color: var(--parch-dim);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-menu a:hover,
.site-menu a:focus-visible { color: var(--parchment); border-bottom-color: var(--brass); }

.menu-toggle {
  display: none;
  width: 40px; height: 36px; padding: 8px 7px;
  background: transparent; border: 1px solid var(--oak-line); cursor: pointer;
}
.menu-toggle span {
  display: block; height: 1.5px; margin: 4px 0;
  background: var(--brass);
  transition: transform .28s var(--ease), opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 130px) var(--gut) clamp(60px, 9vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(42px, 8.4vw, 92px);
  letter-spacing: -.02em;
  margin-bottom: 26px;
  animation: rise 800ms var(--ease) both;
}

.lede {
  margin: 0 0 30px;
  max-width: 46ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--parch-dim);
  animation: rise 800ms 110ms var(--ease) both;
}

.hero-meta {
  list-style: none; margin: 0; padding: 26px 0 0;
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 46px);
  border-top: 1px solid var(--oak-line);
  animation: rise 800ms 220ms var(--ease) both;
}
.hero-meta li {
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--parch-dim);
}
.hero-meta b {
  display: block;
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--brass);
  letter-spacing: 0; text-transform: none;
  font-variant-numeric: tabular-nums;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* Phone shot, tilted, with three dice orbiting it */
.hero-art { position: relative; justify-self: center; }

.hero-shot {
  width: min(74vw, 330px);
  border: 1px solid var(--oak-line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7);
  transform: perspective(1400px) rotateY(-13deg) rotateX(3deg);
  animation: rise 900ms 300ms var(--ease) both;
}

.hero-die {
  position: absolute;
  width: clamp(52px, 7vw, 74px); height: clamp(52px, 7vw, 74px);
  display: grid; place-items: center;
  background: linear-gradient(155deg, #3a2415, #1e1209);
  border: 1px solid rgba(217, 164, 65, .34);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .6);
}
.hero-die img { width: 60%; }
.hero-die.d1 { top: 6%;  left: -9%;  animation: rise 700ms 500ms var(--ease) both, float 5.4s 1.2s ease-in-out infinite; }
.hero-die.d2 { top: 44%; right: -11%; animation: rise 700ms 620ms var(--ease) both, float 6.1s 1.5s ease-in-out infinite; }
.hero-die.d3 { bottom: 7%; left: -5%; animation: rise 700ms 740ms var(--ease) both, float 5.7s 1.8s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}

/* ── Section shell ────────────────────────────────────────────── */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 104px) var(--gut);
  border-top: 1px solid var(--oak-line);
}

.section-lead { max-width: 640px; margin-bottom: clamp(30px, 5vw, 54px); }
.section-lead h2 {
  font-size: clamp(28px, 4.6vw, 46px);
  letter-spacing: -.015em;
  margin-bottom: 14px;
}
.section-lead p { margin: 0; color: var(--parch-dim); font-size: 16.5px; max-width: 54ch; }

/* ── Symbol tiles ─────────────────────────────────────────────── */

.tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--oak-line);
  border: 1px solid var(--oak-line);
}
.tile {
  background: var(--ink);
  padding: clamp(22px, 3vw, 34px) 18px;
  display: grid; justify-items: center; gap: 14px;
  transition: background .35s var(--ease);
}
.tile:hover { background: var(--ink-2); }
.tile img { width: clamp(46px, 5vw, 62px); transition: transform .45s var(--ease); }
.tile:hover img { transform: translateY(-5px) scale(1.06); }
.tile h3 {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--parch-dim); font-weight: 400;
}

/* ── Three parallel claims ────────────────────────────────────── */

.claims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: clamp(26px, 4vw, 56px);
}
.claim h2 {
  font-size: clamp(22px, 2.9vw, 30px);
  color: var(--brass-lit);
  margin-bottom: 14px;
}
.claim p { margin: 0; color: var(--parch-dim); font-size: 16px; }

/* ── Feature block ────────────────────────────────────────────── */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}
.feature-text h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: -.015em;
  margin-bottom: 28px;
}
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  padding: 15px 0 15px 26px;
  border-top: 1px solid var(--oak-line);
  color: var(--parch-dim);
  font-size: 16px;
  position: relative;
}
.feature-list li:last-child { border-bottom: 1px solid var(--oak-line); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 24px;
  width: 10px; height: 1px; background: var(--brass);
}
.feature-art img {
  width: 100%;
  border: 1px solid var(--oak-line);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .66);
}

/* ── Chapters ─────────────────────────────────────────────────── */

.chapter-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  /* Five chapters, five columns — they belong on one row so the set reads
     as a single run of nights rather than an orphaned wrap. */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--oak-line);
  border: 1px solid var(--oak-line);
}

.chapter {
  background: var(--ink);
  display: flex; flex-direction: column;
  transition: background .35s var(--ease);
}
.chapter:hover { background: var(--ink-2); }

/* The scene is shown whole rather than cropped to a strip, so each
   chapter reads as its own painting. */
.chapter-art { margin: 0; overflow: hidden; }
.chapter-art img {
  width: 100%; height: auto; display: block;
  transition: transform .6s var(--ease);
}
.chapter:hover .chapter-art img { transform: scale(1.05); }

.chapter-text {
  padding: clamp(18px, 2.2vw, 26px);
  display: grid; gap: 8px; align-content: start;
  flex: 1;
}
.chapter-no {
  font-size: 13px; letter-spacing: .2em;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.chapter h3 { font-size: clamp(17px, 2vw, 21px); color: var(--parchment); }
.chapter p  { margin: 0; color: var(--parch-dim); font-size: 14.5px; }
.chapter-range {
  margin-top: 6px; padding-top: 12px;
  border-top: 1px solid var(--oak-line);
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--parch-dim);
}

/* ── Dice tiers ───────────────────────────────────────────────── */

.tier-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 1px;
  background: var(--oak-line);
  border: 1px solid var(--oak-line);
}
.tier {
  background: var(--ink);
  padding: clamp(24px, 3vw, 34px) 20px;
  display: grid; justify-items: center; gap: 12px; text-align: center;
  transition: background .35s var(--ease);
}
.tier:hover { background: var(--ink-2); }
.tier img { width: clamp(78px, 8vw, 100px); transition: transform .5s var(--ease); }
.tier:hover img { transform: rotate(-9deg) scale(1.07); }
.tier h3 { font-size: 17px; color: var(--brass-lit); }
.tier p  { margin: 0; font-size: 13.5px; color: var(--parch-dim); min-height: 3.4em; }
.tier-stat {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass);
  padding-top: 12px;
  border-top: 1px solid var(--oak-line);
  width: 100%;
}

/* ── Regulars ─────────────────────────────────────────────────── */

.face-row {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.face-row figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; text-align: center; }
.face-row img {
  width: 132px; height: 132px;
  object-fit: cover; object-position: top center;
  border: 1px solid var(--oak-line);
  filter: grayscale(.35);
  transition: filter .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}
.face-row figure:hover img {
  filter: none;
  transform: translateY(-5px);
  border-color: rgba(217, 164, 65, .55);
}
.face-row figcaption {
  margin-top: 10px; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--parch-dim);
}

/* ── Gallery ──────────────────────────────────────────────────── */

.shot-row {
  display: flex; gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}
.shot-row figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.shot-row img {
  width: 216px;
  border: 1px solid var(--oak-line);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .6);
  transition: transform .45s var(--ease);
}
.shot-row figure:hover img { transform: translateY(-8px); }
.shot-row figcaption {
  margin-top: 12px; font-size: 11.5px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--parch-dim);
}

/* ── Closing ──────────────────────────────────────────────────── */

.closing {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 130px) var(--gut);
  border-top: 1px solid var(--oak-line);
  text-align: center;
}
.closing h2 {
  font-size: clamp(30px, 5.6vw, 58px);
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.closing p { margin: 0 auto; max-width: 62ch; color: var(--parch-dim); font-size: 16px; }

/* ── Footer ───────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--oak-line);
  background: #080503;
  padding: clamp(38px, 5vw, 60px) var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.footer-brand img { width: 120px; opacity: .85; margin-bottom: 14px; }
.footer-brand p { margin: 0; font-size: 13px; color: rgba(242, 230, 207, .4); }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links h4 {
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass-dim); margin-bottom: 4px;
}
.footer-links a {
  font-size: 14px; color: var(--parch-dim); text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--parchment); }
/* The contact address is long; let it wrap rather than widen the column. */
.footer-links a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ── Small screens ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 6px var(--gut) 18px;
    background: rgba(13, 9, 6, .98);
    border-bottom: 1px solid var(--oak-line);
    display: none;
  }
  .site-menu.is-open { display: flex; }
  .site-menu a { padding: 13px 0; border-bottom: 1px solid var(--oak-line); }

  .hero,
  .feature { grid-template-columns: 1fr; }

  .chapter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { margin-top: 12px; }
  .hero-shot { transform: none; }
  .hero-die.d1 { left: 2%; }
  .hero-die.d2 { right: 2%; }
  .hero-die.d3 { left: 6%; }

  .footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .chapter-list { grid-template-columns: 1fr; }
}

/* ── Reduced motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
