/* Pew Press. Typeset like the bulletins we make: one book face, small capitals, dotted leaders.
   The accent color is the current season of the church year, set by the build. */
:root {
  --ink: #1f2421;
  --muted: #5d665f;
  --rule: #d9ded9;
  --paper: #ffffff;
  --band: color-mix(in srgb, var(--season-soft) 55%, white);
  --shadow: 0 1px 1px rgba(31, 36, 33, 0.06), 0 24px 46px -24px rgba(31, 36, 33, 0.42);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--season); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--season) 55%, white); outline-offset: 3px; }

h1, h2, h3 { font-weight: 500; margin: 0 0 0.6em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.8vw, 3.9rem); letter-spacing: -0.012em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.12rem; font-variant-caps: all-small-caps; letter-spacing: 0.07em; color: var(--season); font-weight: 600; }
p { margin: 0 0 1em; max-width: 36em; }

.wrap { width: min(72rem, 100% - 3rem); margin-inline: auto; }
.narrow { width: min(44rem, 100% - 3rem); }
.section { padding: 5.5rem 0; }
.band { background: var(--band); padding: 5rem 0; }
.lede { font-size: 1.42rem; line-height: 1.45; }
.fine { font-size: 1rem; color: var(--muted); margin-top: 0.9rem; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--paper); padding: 0.4rem 0.8rem; }
.skip:focus { left: 0.5rem; z-index: 10; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; flex-wrap: wrap; }
.wordmark { font-size: 1.5rem; font-variant-caps: small-caps; letter-spacing: 0.09em; font-weight: 600; text-decoration: none; color: var(--season); }
nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 1.08rem; }
nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer { border-top: 1px solid var(--rule); padding: 2.4rem 0 3.4rem; color: var(--muted); font-size: 1rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 0.2rem 2rem; }
.footer-row p { margin: 0; }
.footer-row .season-note { font-style: italic; flex-basis: 100%; max-width: none; margin-top: 0.8rem; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--season);
  color: #fff;
  text-decoration: none;
  padding: 0.72rem 1.45rem 0.8rem;
  border-radius: 4px;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.button:hover { background: color-mix(in srgb, var(--season) 86%, black); text-decoration: none; }
.actions { margin-top: 2rem; }

/* Printed paper */
.sheet { background: #fff; border-radius: 2px; box-shadow: var(--shadow); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 4.5rem; align-items: center; padding: 4.5rem 0 5.5rem; }
.hero-paper { position: relative; margin: 0; padding: 1rem 0 2.5rem; }
.hero-paper .front-sheet { position: relative; z-index: 2; width: 72%; transform: rotate(-2.4deg); }
.hero-paper .back-sheet { position: absolute; z-index: 1; width: 72%; right: 0; top: 2.6rem; transform: rotate(3.4deg); }

/* The week, which is a real sequence */
.week { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem; }
.week li { border-top: 2px solid var(--season); padding-top: 1rem; }
.week p { font-size: 1.12rem; margin: 0; }

/* Designs and seasons */
.section-head { max-width: 42rem; margin-bottom: 3rem; }
.designs { display: grid; grid-template-columns: repeat(3, minmax(0, 18rem)); gap: 3.4rem 3rem; justify-content: start; }
.designs figure { margin: 0; }
.designs figcaption { margin-top: 1.3rem; font-size: 1.12rem; color: var(--muted); max-width: 20rem; }
.designs .name { display: block; color: var(--season); font-variant-caps: all-small-caps; letter-spacing: 0.07em; font-weight: 600; font-size: 1.15rem; }
.seasons { margin-top: 4.5rem; }
.seasons ul { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 11rem)); gap: 1.6rem; }
.seasons img { border-radius: 2px; box-shadow: 0 1px 1px rgba(31, 36, 33, 0.06), 0 14px 26px -16px rgba(31, 36, 33, 0.45); }
.seasons span { display: block; margin-top: 0.7rem; font-variant-caps: all-small-caps; letter-spacing: 0.07em; color: var(--muted); font-size: 1.08rem; }

/* Price, set like an order of worship */
.price { max-width: 38rem; }
.leaders { list-style: none; padding: 0; margin: 1.6rem 0 2.2rem; }
.leaders li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.42rem 0; }
.leaders i { flex: 1; border-bottom: 1.5px dotted #9aa39c; transform: translateY(-0.32em); min-width: 1.5rem; }
.leaders li span:last-child { color: var(--muted); }
.leaders .total { margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); font-size: 1.4rem; }
.leaders .total span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: lining-nums; }

/* Questions */
details { border-top: 1px solid var(--rule); padding: 0.95rem 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-size: 1.28rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--season); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0.7rem 0 0.3rem; font-size: 1.15rem; }

/* Guide pages */
.guide h1 { font-size: clamp(2.2rem, 4vw, 3.1rem); }
.guide h2 { margin-top: 2.2rem; font-size: 1.7rem; }

/* Sample pages */
.sample-head { padding: 4rem 0 1.5rem; }
.sample-head h1 { max-width: 22em; font-size: clamp(2.2rem, 4vw, 3.3rem); }
.sample-designs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; padding: 2rem 0 5rem; }
.sample-design h2 { font-variant-caps: all-small-caps; letter-spacing: 0.07em; color: var(--season); font-size: 1.5rem; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.downloads { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 1.1rem; }
.sample-design .blurb { color: var(--muted); font-size: 1.12rem; margin: -0.4rem 0 1.2rem; max-width: 30rem; }
.button.choose { margin-top: 1.5rem; background: transparent; color: var(--season); box-shadow: inset 0 0 0 1.5px var(--season); }
.button.choose:hover { background: var(--season); color: #fff; }
.sample-cta { text-align: left; }
.expiry { color: var(--muted); font-size: 1rem; font-style: italic; padding: 2rem 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
  .hero-paper { max-width: 30rem; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .designs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 2rem; }
  .seasons ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample-designs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1.15rem; }
  .week { grid-template-columns: 1fr; }
  .designs { gap: 2rem 1.2rem; }
  nav { gap: 1rem; }
  .section { padding: 4rem 0; }
  .band { padding: 3.6rem 0; }
}

/* About, terms and privacy */
.legal h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.legal h2 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); margin-top: 2.2rem; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; max-width: 36em; }
.legal li { margin-bottom: 0.35em; }
.company { font-style: normal; line-height: 1.5; margin: 0.4rem 0 1.4rem; padding-left: 1rem; border-left: 2px solid var(--season); }
