/* ==========================================================================
   Free Printable Calendars
   The layout skeleton is a calendar: a seven-column week grid with hairline
   rules and mono date ticks in the cell corners. Everything else stays quiet.
   ========================================================================== */

:root {
  color-scheme: light;

  --thumb: 10.5rem;

  --paper: #fcfbf7;
  --paper-2: #f5f3ec;
  --paper-3: #eceade;
  --ink: #1f2133;
  --ink-2: #5c5b6b;
  --ink-3: #8a8896;
  --rule: #dcd8cb;
  --rule-2: #c7c2b2;
  --ditto: #554bcf;
  --ditto-deep: #3d35a8;
  --ditto-wash: #eeebfd;
  --marigold: #f2b138;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 78rem;
  --row: 8.25rem;         /* height of one hero calendar row */
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* Filtered-out cards set [hidden]; display rules below must not win over it. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv01";
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--marigold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ditto);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
  font-family: var(--mono); font-size: 0.7rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------------------------------------------------------------- utility */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.mono { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

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

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead-in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4rem;
}

.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.4ch; white-space: nowrap; flex: none;
  text-decoration: none; line-height: 1;
  font-family: var(--display);
  margin-right: auto;
}
.wordmark-a { font-size: 0.95rem; font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em; }
.wordmark-b { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.035em; }
.wordmark:hover .wordmark-b { color: var(--ditto); }

.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a {
  font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--ink-2);
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--marigold); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ditto); }

.nav-toggle { display: none; }

@media (max-width: 46rem) {
  .masthead-in { min-height: 3.4rem; gap: 0.85rem; }
  .wordmark-a { font-size: 0.78rem; }
  .wordmark-b { font-size: 1.05rem; }
  .nav {
    gap: 0.9rem; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 0.82rem; }
}

/* ------------------------------------------------------------ week header */
/* The SUN..SAT strip that sits above any grid. */

.dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--rule-2);
}
.dow span {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0.55rem 0 0.5rem 0.5rem;
}
@media (max-width: 46rem) { .dow { display: none; } }

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

.hero { padding-top: clamp(1.5rem, 4vw, 3rem); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  /* Rows are at least one calendar row tall, and grow if the content needs it. */
  grid-auto-rows: minmax(var(--row), auto);
  /* Column rules are painted (they only depend on width, so they are always
     right, and they carry the headline across the cells). Row rules live on the
     cells, so they cannot drift away from where a row actually ends. */
  background-image:
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px calc(100% / 7));
  border-right: 1px solid var(--rule);
}

.cell {
  position: relative;
  padding: 2rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.cell[data-date]::before {
  content: attr(data-date);
  position: absolute; top: 0.5rem; left: 0.6rem;
  font-family: var(--mono); font-size: 0.6rem; font-weight: 500;
  color: var(--ink-3);
}

.cell-copy { grid-column: 1 / 5; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; }
.cell-cover { grid-column: 5 / 8; grid-row: 1 / 3; padding: 1.25rem; display: grid; place-items: center; }
.cell-fact { grid-column: span 2; grid-row: 3; }
.cell-fact:last-of-type { grid-column: span 3; }

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  color: var(--ditto);
  /* A dry-erase underline under the promise. */
  box-shadow: inset 0 -0.34em 0 var(--ditto-wash);
}

.lede { font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--ink-2); margin: 0 0 1.4rem; max-width: 34ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.fact-n { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; display: block; }
.fact-l { font-size: 0.85rem; color: var(--ink-2); display: block; margin-top: 0.3rem; }

.hero-cover-img {
  height: auto;
  border: 1px solid var(--rule-2);
  box-shadow: 0 1px 0 var(--paper-3), 0 16px 34px -20px rgb(31 33 51 / 0.4);
  background: #fff;
  /* Now that the row can grow, let the cover be sized by the width of its
     cell rather than pinned to two rows, or it floats in the middle. */
  max-height: calc(var(--row) * 3 - 2.5rem);
  max-width: 100%;
  width: auto;
}

@media (max-width: 46rem) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    background-image: none;
    border: 0;
  }
  .cell { padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
  .cell-copy, .cell-cover, .cell-fact, .cell-fact:last-of-type { grid-column: 1; grid-row: auto; }
  .cell-cover { padding: 1.4rem 0 1.8rem; }
  .cell[data-date]::before { display: none; }
  .hero-cover-img { max-height: none; width: min(100%, 17rem); }
  .cell-fact { display: flex; align-items: baseline; gap: 0.7rem; }
  .fact-l { margin-top: 0; }
}

/* ------------------------------------------------------------------ button */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--body); font-size: 0.92rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  padding: 0.68rem 1.15rem;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { background: var(--ditto); border-color: var(--ditto); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }

.btn-lg { font-size: 1rem; padding: 0.9rem 1.5rem; }

.btn-dl svg { flex: none; }

/* ----------------------------------------------------------- section head */

.section { padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 0.9rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-2);
}
.section-head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.03em;
  line-height: 1.05; margin: 0.35rem 0 0;
}
.section-head p { margin: 0.45rem 0 0; color: var(--ink-2); max-width: 52ch; font-size: 0.95rem; }
.section-link { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ditto); text-decoration: none; }
.section-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------- card grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1px;
  padding: 1px;
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
  padding: 1.35rem 1.1rem 1.15rem;
  text-decoration: none;
  transition: background 0.18s var(--ease);
}
.card::before {
  content: attr(data-tick);
  position: absolute; top: 0.5rem; left: 0.7rem;
  font-family: var(--mono); font-size: 0.58rem; font-weight: 500;
  color: var(--ink-3);
  transition: color 0.18s var(--ease);
}
.card:hover { background: #fff; }
.card:hover::before { color: var(--ditto); }

.card-thumb {
  height: var(--thumb);
  display: grid; place-items: center;
  background: var(--paper-2);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.card-thumb img {
  width: auto; height: auto;
  max-width: 100%; max-height: var(--thumb);
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: 0 6px 14px -10px rgb(31 33 51 / 0.45);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card:hover .card-thumb img { transform: translateY(-3px) scale(1.015); box-shadow: 0 14px 22px -14px rgb(31 33 51 / 0.5); }

.card-title {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--ink);
  margin-bottom: 0.35rem;
}
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--marigold); }
.card-meta {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); margin-top: auto;
}

.empty {
  grid-column: 1 / -1; background: var(--paper); box-shadow: 0 0 0 1px var(--rule);
  padding: 3rem 1.25rem; text-align: center; color: var(--ink-2);
}
.empty strong { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--ink); margin-bottom: 0.3rem; }

/* ---------------------------------------------------------------- filters */

.filters {
  position: sticky; top: 4rem; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-block: 1px solid var(--rule);
  padding-block: 0.7rem;
  margin-bottom: 1.5rem;
}
.filters-in { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }

.search {
  flex: 1 1 13rem; min-width: 11rem;
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  background: #fff; padding: 0 0.7rem;
}
.search input {
  flex: 1; border: 0; background: none; outline: none;
  font-family: var(--body); font-size: 0.9rem; color: var(--ink);
  padding: 0.6rem 0;
}
.search:focus-within { border-color: var(--ditto); box-shadow: 0 0 0 3px var(--ditto-wash); }

select.control {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: #fff;
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  padding: 0.62rem 0.7rem; cursor: pointer;
}
select.control:hover { border-color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--rule-2); border-radius: 999px; background: #fff; color: var(--ink-2);
  padding: 0.5rem 0.75rem; cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.result-count { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-left: auto; }

@media (max-width: 46rem) {
  :root { --thumb: 13rem; }
  .filters { top: 3.4rem; }
  .result-count { margin-left: 0; width: 100%; }
}

/* ----------------------------------------------------------------- detail */

.detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-top: 2rem; }

.preview {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 2rem);
  display: grid; place-items: center;
}
.preview img {
  border: 1px solid var(--rule-2);
  background: #fff;
  box-shadow: 0 2px 0 var(--paper-3), 0 22px 40px -26px rgb(31 33 51 / 0.5);
  width: 100%; height: auto;
}

.crumbs { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-top: 1.25rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ditto); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { margin-inline: 0.45rem; color: var(--rule-2); }

.detail h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.7rem; }
.detail-lede { color: var(--ink-2); margin: 0 0 1.5rem; font-size: 1rem; }

.spec { border-top: 1px solid var(--rule); margin: 1.5rem 0; }
.spec div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.spec dd { margin: 0; font-size: 0.9rem; font-weight: 500; text-align: right; }

.note { font-size: 0.85rem; color: var(--ink-3); margin: 0.9rem 0 0; }

/* Twelve-month picker: the site's own navigation, shaped like the subject. */
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.months a, .months span {
  background: var(--paper); padding: 0.85rem 0.5rem; text-align: center;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.months a:hover { background: var(--ditto); color: #fff; }
.months [aria-current="page"] { background: var(--ink); color: var(--paper); }
.months span { color: var(--rule-2); }

.tips { list-style: none; margin: 0; padding: 0; }
.tips li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; font-size: 0.92rem; color: var(--ink-2); }
.tips li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 0.7rem; height: 0.7rem; border: 1.5px solid var(--marigold); border-radius: 2px;
}

@media (max-width: 58rem) {
  .detail { grid-template-columns: 1fr; }
  .months { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------- theme row */

.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.theme-card { background: var(--paper); padding: 1.5rem 1.35rem; text-decoration: none; display: flex; flex-direction: column; gap: 0.6rem; transition: background 0.18s var(--ease); }
.theme-card:hover { background: #fff; }
.theme-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.025em; margin: 0; }
.theme-card p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.theme-card .card-meta { margin-top: 0.4rem; }
.theme-card img {
  aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: contain;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 6px;
  padding: 0.5rem; margin-bottom: 0.4rem;
}
.theme-card { position: relative; box-shadow: 0 0 0 1px var(--rule); }
.themes { padding: 1px; background: transparent; border: 0; }

/* ------------------------------------------------------------------- prose */

.prose { max-width: 40rem; padding-block: 2.5rem 4rem; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; margin: 2.2rem 0 0.6rem; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.02rem; margin: 1.6rem 0 0.4rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--ditto); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1rem 0; font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.015em; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ditto); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0 0 1rem; color: var(--ink-2); font-size: 0.94rem; max-width: 60ch; }

/* ---------------------------------------------------------------- ad slots */

.ad { margin-block: clamp(1.75rem, 4vw, 2.75rem); }
.ad-label { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.4rem; }
.ad ins { display: block; }
.ad-placeholder {
  border: 1px dashed var(--rule-2); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 8px, var(--paper) 8px 16px);
  display: grid; place-items: center; text-align: center;
  padding: 1.5rem 1rem; min-height: 6rem;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.ad-in-grid { grid-column: 1 / -1; background: var(--paper); padding: 1.25rem; margin: 0; box-shadow: 0 0 0 1px var(--rule); }

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

.footer { border-top: 1px solid var(--rule-2); margin-top: 2rem; background: var(--paper-2); }
/* Phones: the site blurb takes the full width, the link lists sit two across.
   The old single rule let the blurb column shrink to nothing while the link
   columns kept a fixed minimum, which crushed it to one word per line. */
.footer-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; padding-block: 2.75rem 2rem; }
.footer-in > :first-child { grid-column: 1 / -1; }
@media (min-width: 46rem) {
  .footer-in { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .footer-in > :first-child { grid-column: auto; }
}
.footer h4 { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.8rem; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.45rem; }
.footer a { font-size: 0.9rem; color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ditto); text-decoration: underline; text-underline-offset: 3px; }
.footer-blurb { font-size: 0.9rem; color: var(--ink-2); margin: 0.8rem 0 0; max-width: 34ch; }
.footer-base { border-top: 1px solid var(--rule); padding-block: 1rem 1.6rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; }
.footer-base p { margin: 0; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* ------------------------------------------------------------------ motion */

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero .cell { animation: rise 0.5s var(--ease) both; }
.hero .cell-copy { animation-delay: 0.04s; }
.hero .cell-cover { animation-delay: 0.12s; }
.hero .cell-fact { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .card:hover .card-thumb img { transform: none; }
}

/* ------------------------------------------------------------------- print */

@media print {
  .masthead, .footer, .ad, .filters, .hero-actions { display: none; }
  body { background: #fff; }
}

/* ==========================================================================
   Long-form blocks added for the text-heavy pages
   ========================================================================== */

/* An h1 inside a section head is a page title, not a hero headline. */
.section-head h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.035em;
  line-height: 1.02; margin: 0.35rem 0 0;
}

/* The direct answer to the question the page title asks. Kept plain: darker
   and a little larger than body text, nothing more. */
.lead-answer {
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 64ch;
}
.prose .lead-answer { margin-bottom: 1.5rem; }

/* Two columns of prose, stacking on narrow screens. */
.intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
}
.intro h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -0.025em;
  line-height: 1.15; margin: 0 0 0.7rem;
}
.intro h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: -0.015em; margin: 1.5rem 0 0.5rem;
}
.intro p { margin: 0 0 0.85rem; color: var(--ink-2); }
.intro ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); }
.intro li { margin-bottom: 0.4rem; }
.intro .spec { margin-top: 0.25rem; }

/* Numbered because the steps really are a sequence. */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex; gap: 0.85rem; align-items: baseline;
  padding: 0.7rem 0; border-bottom: 1px solid var(--rule);
  color: var(--ink-2); font-size: 0.95rem;
}
.steps li:first-child { padding-top: 0; }
.steps strong { color: var(--ink); font-weight: 600; }
.step-n {
  flex: none; width: 1.7rem;
  font-family: var(--mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--ditto);
}

.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

.footer-months { padding-bottom: 1.5rem; }
.footer-months h4 {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.7rem; font-weight: 500;
}
.footer-months .months { grid-template-columns: repeat(12, 1fr); }
@media (max-width: 46rem) {
  .footer-months .months { grid-template-columns: repeat(4, 1fr); }
}
