/* Pomegranate Stand Simulator - the game's page.
   The crate label (label stock, rind red, a double rule) for the title; the stand's chalkboard
   for the work at the bench; carton kraft for the rest. Rye is the game's own title face. */

@font-face { font-family: "Rye"; src: url("fonts/rye.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("fonts/robotoslab.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("fonts/oswald.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }

:root {
  --rind: #6f1a20;        /* the skin of a ripe Wonderful */
  --aril: #b3202f;        /* the seeds, for links */
  --label: #ecd6a0;       /* crate label stock */
  --kraft: #c8a273;       /* the carton */
  --kraft-deep: #a98157;
  --ink: #2a1712;         /* print on kraft */
  --chalk: #273029;       /* the A-frame price board */
  --chalk-ink: #e9e5da;
  --chalk-dim: #b9b8ad;
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--kraft);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "Roboto Slab", Georgia, serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--aril); text-underline-offset: 0.18em; }
a:hover { color: var(--rind); }
:focus-visible { outline: 3px solid var(--aril); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: normal; }

/* ---- the title: a crate label set over the stand at dusk ---- */
.hero { position: relative; background: #1e1512; }
.hero-img { width: 100%; height: min(86vh, 900px); object-fit: cover; object-position: 50% 62%; }
.label {
  position: absolute; left: clamp(16px, 5vw, 72px); bottom: clamp(16px, 6vh, 64px);
  width: min(560px, calc(100% - 32px));
  padding: 22px 30px 20px;
  background: var(--label);
  color: var(--rind);
  border: 3px solid var(--rind);
  box-shadow: inset 0 0 0 5px var(--label), inset 0 0 0 7px var(--rind), 0 18px 40px rgba(20, 8, 6, 0.45);
  text-align: center;
}
.label-place { margin: 0 0 6px; font-style: italic; font-size: 0.95rem; color: var(--ink); }
.label h1 { line-height: 1; }
.label .t1 { display: block; font-family: "Rye", serif; font-size: clamp(2.1rem, 5.6vw, 3.4rem); letter-spacing: 0.01em; }
.label .t2 {
  display: block; margin-top: 8px;
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  letter-spacing: 0.42em; padding-left: 0.42em;   /* (the tracking evened out on both sides) */
  text-transform: uppercase;
}
.label-foot {
  margin: 14px 0 0; padding-top: 10px;
  border-top: 1px solid rgba(111, 26, 32, 0.45);
  font-size: 1rem; color: var(--ink);
}

/* ---- the opening ---- */
.intro { max-width: var(--measure); margin: 0 auto; padding: clamp(48px, 8vw, 96px) 20px clamp(40px, 6vw, 72px); }
.intro p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.5; }

/* ---- the work: chalk on the price board ---- */
.work { background: var(--chalk); color: var(--chalk-ink); padding: clamp(56px, 8vw, 104px) 20px; }
.work h2, .season h2, .place h2, .press h2 {
  font-family: "Rye", serif; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15;
  max-width: 1120px; margin: 0 auto;
}
.work-sub { max-width: 1120px; margin: 10px auto 40px; color: var(--chalk-dim); }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; counter-reset: step; display: grid; gap: 44px 40px; grid-template-columns: 1fr; }
.steps li { counter-increment: step; display: grid; gap: 16px; }
.steps img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(233, 229, 218, 0.18); }
.steps h3 { font-family: "Roboto Slab", serif; font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.steps h3::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 1.7em; height: 1.7em; margin-right: 0.6em; vertical-align: 0.05em;
  border: 2px solid var(--chalk-ink); border-radius: 50%;
  font-family: "Rye", serif; font-weight: normal; font-size: 0.85em;
}
.steps p { margin: 6px 0 0; color: var(--chalk-dim); max-width: 46ch; }
@media (min-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---- the season, September to January ---- */
.season { padding: clamp(56px, 8vw, 104px) 20px; }
.months { list-style: none; margin: 36px auto 0; padding: 0; max-width: 1120px; display: grid; grid-template-columns: 1fr; border-top: 3px solid var(--ink); }
.months li { padding: 18px 0 20px; border-bottom: 1px solid rgba(42, 23, 18, 0.35); }
.months h3 { font-family: "Rye", serif; font-size: 1.3rem; color: var(--rind); }
.months p { margin: 6px 0 0; max-width: 46ch; }
@media (min-width: 900px) {
  .months { grid-template-columns: repeat(5, 1fr); }
  .months li { padding: 18px 20px 4px 0; border-bottom: 0; border-right: 1px solid rgba(42, 23, 18, 0.35); }
  .months li + li { padding-left: 20px; }
  .months li:last-child { border-right: 0; }
}

/* ---- the place ---- */
.place { background: var(--kraft-deep); padding: clamp(56px, 8vw, 104px) 20px; }
.mosaic { max-width: 1120px; margin: 36px auto 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.mosaic figure { margin: 0; }
.mosaic figcaption { margin-top: 8px; font-size: 0.95rem; font-style: italic; }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .m-wide { grid-column: 1 / -1; }
}
.place-text { max-width: var(--measure); margin: 32px auto 0; }

/* ---- press kit: on label stock ---- */
.press { padding: clamp(56px, 8vw, 104px) 20px clamp(48px, 6vw, 80px); }
.press-grid {
  max-width: 1120px; margin: 32px auto 0; padding: clamp(20px, 3vw, 36px);
  background: var(--label); border: 2px solid var(--rind);
  display: grid; gap: 28px 48px; grid-template-columns: 1fr;
}
@media (min-width: 860px) { .press-grid { grid-template-columns: minmax(240px, 1fr) 2fr; } }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; align-content: start; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.blurb h3 { font-weight: 700; font-size: 1.05rem; }
.blurb h3 + p { margin-top: 6px; }
.blurb p { margin: 0 0 22px; max-width: var(--measure); }
.blurb p:last-child { margin-bottom: 0; }

.foot { padding: 28px 20px 40px; text-align: center; font-size: 0.95rem; }
.foot p { margin: 0; }

@media (max-width: 700px) {
  /* the label under the picture on a phone, not over it */
  .hero-img { height: 58vh; }
  .label { position: relative; left: auto; bottom: auto; width: auto; margin: -36px 16px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .label { animation: label-in 700ms 150ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes label-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
