/* Good Day Mockingbird — one stylesheet, four templates.
   Palette pulled from the logotype and covers: cream paper, two teals, mustard, tomato. */

:root {
  --paper: #f5e8c8;
  --paper-2: #efdfb8;
  --paper-3: #e6d3a6;
  --ink: #1c1a16;
  --ink-2: #4a443b;
  --ink-3: #7a7163;
  --teal: #2a6b77;
  --teal-2: #123644;
  --mustard: #d3a437;
  --tomato: #c4472a;
  --sky: #a9c9d4;
  --rule: rgba(28, 26, 22, .18);
  --shadow: 0 1px 2px rgba(28,26,22,.18), 0 12px 32px -12px rgba(28,26,22,.35);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", sans-serif;
  --wrap: 1120px;
  --measure: 40rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.35), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(211,164,55,.10), transparent 50%);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-2); text-decoration-color: rgba(42,107,119,.45); text-underline-offset: .15em; }
a:hover { color: var(--tomato); text-decoration-color: currentColor; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-n { max-width: calc(var(--measure) + 2.5rem); margin: 0 auto; padding: 0 1.25rem; }
.small { font-size: .875rem; }
.mute { color: var(--ink-3); }

/* ---- utility nav (the publication layer: tiny, typographic) ---- */
.util { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--rule); background: rgba(245,232,200,.85); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; }
.util .wrap { display: flex; align-items: center; justify-content: space-between; height: 2.75rem; gap: 1rem; }
.util a { text-decoration: none; color: var(--ink-2); }
.util a:hover { color: var(--tomato); }
.util .wordmark { font-weight: 600; color: var(--teal-2); }
.util .ctx { color: var(--ink-3); margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--rule); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.util .links { display: flex; gap: 1.5rem; flex-shrink: 0; }
@media (max-width: 600px) { .util .ctx { display: none; } .util .links { gap: 1rem; } }

/* ---- masthead ---- */
.masthead { text-align: center; padding: 3rem 1.25rem 1.5rem; }
.masthead.small { padding: 1.75rem 1.25rem .5rem; }
.masthead .logotype { width: min(640px, 92vw); margin: 0 auto; }
.masthead.small .logotype { width: min(360px, 70vw); }
.masthead a { display: inline-block; }
.tagline { font-family: var(--display); font-style: italic; font-variation-settings: "SOFT" 60, "opsz" 24; font-size: 1.2rem; color: var(--ink-2); margin: .5rem 0 1.25rem; }
.dateline {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1rem;
  font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); padding: .55rem 0; max-width: 860px; margin: 0 auto;
}
.dateline .sp { color: var(--mustard); }
.masthead.small .dateline { max-width: 640px; font-size: .7rem; }

/* ---- issue page / home ---- */
.issue-title { text-align: center; margin: 2rem 0 1rem; font-family: var(--display); }
.issue-title .kick { display: block; font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tomato); font-weight: 600; margin-bottom: .35rem; }
.issue-title .theme { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 700; line-height: 1.05; color: var(--teal-2); letter-spacing: -.01em; }
.cover { margin: 1.5rem auto 0; max-width: 1040px; }
.cover img { width: 100%; border: 1px solid rgba(28,26,22,.35); box-shadow: var(--shadow); background: var(--paper-2); }
.cover-caption { text-align: center; font-family: var(--display); font-style: italic; font-variation-settings: "SOFT" 40, "opsz" 20; color: var(--ink-2); font-size: 1.15rem; max-width: 40rem; margin: 1rem auto 0; }

.desk { max-width: 44rem; margin: 3rem auto; padding: 1.5rem 1.75rem 1.25rem; border: 1px solid var(--ink); position: relative; background: rgba(255,255,255,.18); }
.desk::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--rule); pointer-events: none; }
.desk .label { margin-top: 0; }
.desk p { margin: .5rem 0; }
.desk .cta { margin-top: .75rem; }
.label { font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-2); font-weight: 600; display: flex; align-items: center; gap: .75rem; }
.label::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.label.big { font-size: .9rem; margin: 3.5rem 0 1.5rem; }
.label.big::before { content: "✦"; color: var(--mustard); }
.label .issue-no { font-weight: 400; color: var(--ink-3); letter-spacing: .12em; }
.cta a { font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--mustard); padding-bottom: .1rem; }
.cta a:hover { border-color: var(--tomato); }
.cta .mins { font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-left: 1rem; }

/* three spreads, alternating; each one gets room */
.spread { display: grid; grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: center; margin: 0 0 4rem; }
.spread.right { grid-template-columns: 5fr 7fr; }
.spread.right .spread-img { order: 2; }
.spread-img img { border: 1px solid rgba(28,26,22,.35); box-shadow: var(--shadow); }
.spread-text .num { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 900; font-size: 3rem; line-height: 1; color: var(--mustard); }
.story-title { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 800; font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.05; margin: .25rem 0 .75rem; letter-spacing: -.01em; }
.story-title a { color: var(--ink); text-decoration: none; }
.story-title a:hover { color: var(--tomato); }
.deck { font-family: var(--display); font-style: italic; font-variation-settings: "SOFT" 50, "opsz" 24; font-size: 1.25rem; line-height: 1.4; color: var(--ink-2); margin: 0 0 .75rem; }
.byline { font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-2); margin: 0 0 1rem; }
@media (max-width: 760px) {
  .spread, .spread.right { grid-template-columns: 1fr; gap: 1.25rem; }
  .spread.right .spread-img { order: 0; }
  .spread { margin-bottom: 3rem; }
}
.endmark { text-align: center; color: var(--mustard); font-size: 1.4rem; margin: 2.5rem 0; }
.issue-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; border-top: 3px double var(--ink); padding: 1rem 0 3rem; }
.issue-nav a { text-decoration: none; font-weight: 600; }

/* ---- story page: calmer than the front page ---- */
.story .hero { margin: 0 auto; max-width: 1040px; padding: 1.5rem 1.25rem 0; }
.story .hero img { width: 100%; border: 1px solid rgba(28,26,22,.35); box-shadow: var(--shadow); }
.story-head { text-align: center; padding: 2rem 1.25rem 1rem; }
.story-head .kick, .kick { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tomato); font-weight: 600; margin: 0 0 .5rem; }
.story-head h1 { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 800; font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; margin: 0 0 .75rem; letter-spacing: -.015em; color: var(--teal-2); }
.story-head .deck { font-size: 1.3rem; max-width: 34rem; margin: 0 auto .75rem; }
.story-head .byline { margin: 0; }
.story-head .byline::before, .story-head .byline::after { content: " ✦ "; color: var(--mustard); }
.prose { font-size: 1.2rem; line-height: 1.65; padding-top: 1rem; }
.prose p { margin: 0 0 1.15em; text-wrap: pretty; }
.prose p.dc::first-letter { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 700; font-weight: 700; float: left; font-size: 4.2em; line-height: .78; padding: .1em .08em 0 0; color: var(--teal); }
.prose .part { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72, "wght" 700; font-weight: 700; font-size: 1.6rem; text-align: center; margin: 2.5rem 0 1.25rem; color: var(--teal-2); letter-spacing: .02em; }
.prose .part::before { content: "✦"; display: block; color: var(--mustard); font-size: 1rem; margin-bottom: .5rem; }
.prose .sep { text-align: center; color: var(--mustard); letter-spacing: .3em; margin: 2rem 0; font-size: .9rem; }
.prose .signoff { font-family: var(--display); font-style: italic; text-align: right; }
.desk-h { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 800; font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; margin: 0 0 .5rem; color: var(--teal-2); }
.desk-prose p:first-child { font-size: 1.3rem; }
.about .prose h2.part { text-align: left; }
.about .prose h2.part::before { display: none; }
.license { color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 1rem; }

/* contents strip: where am I in this week's object */
.contents { margin: 2rem 0 1.5rem; border: 1px solid var(--ink); padding: 1.1rem 1.4rem 1rem; background: rgba(255,255,255,.18); position: relative; }
.contents::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--rule); pointer-events: none; }
.contents ol { list-style: none; margin: .75rem 0 0; padding: 0; }
.contents li { display: flex; align-items: baseline; gap: .6rem; padding: .35rem 0; border-top: 1px dotted var(--rule); font-family: var(--display); font-variation-settings: "SOFT" 60, "opsz" 24; font-size: 1.05rem; }
.contents li:first-child { border-top: 0; }
.contents li a { text-decoration: none; }
.contents li.here a { color: var(--tomato); font-weight: 600; }
.contents li.here .mk { color: var(--tomato); }
.contents .mk { color: var(--mustard); font-size: .8rem; }
.contents .rn { color: var(--ink-3); font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; }
.contents .who { margin-left: auto; font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pn { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin: 1.5rem 0 4rem; }
.pn a { text-decoration: none; font-family: var(--display); font-variation-settings: "SOFT" 80, "opsz" 48, "wght" 700; font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.pn .prev { color: var(--ink-3); font-size: 1rem; font-weight: 500; font-variation-settings: "SOFT" 60, "opsz" 24, "wght" 500; padding-top: 1.4rem; }
.pn .next { text-align: right; margin-left: auto; }
.pn .label { display: block; margin-bottom: .2rem; }
.pn .label::after { display: none; }
@media (max-width: 600px) { .pn { flex-direction: column; } .pn .next { margin-left: 0; text-align: left; } .pn .prev { order: 2; padding-top: 0; } }

/* ---- newsstand ---- */
.newsstand .year { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 800; font-size: 2.2rem; color: var(--mustard); margin: 1.5rem 0 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem 1.75rem; }
.card { text-decoration: none; color: var(--ink); display: block; }
.card img { border: 1px solid rgba(28,26,22,.35); box-shadow: var(--shadow); transition: transform .2s ease; background: var(--paper-2); }
.card:hover img { transform: translateY(-3px) rotate(-.4deg); }
.card-text { padding: .9rem .25rem 0; }
.card .kick { display: block; }
.card-theme { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72, "wght" 700; font-weight: 700; font-size: 1.4rem; line-height: 1.15; display: block; margin: .15rem 0 .5rem; color: var(--teal-2); }
.card ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.card li { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px dotted var(--rule); padding: .25rem 0; }
.card .who { font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.stand-note { text-align: center; color: var(--ink-3); font-style: italic; font-family: var(--display); margin: 3rem 0 4rem; }

/* ---- footer ---- */
.foot { border-top: 3px double var(--ink); margin-top: 2rem; padding: 2rem 0 3rem; text-align: center; color: var(--ink-2); }
.foot-orn { color: var(--mustard); letter-spacing: .4em; margin-bottom: .75rem; }
.foot-line { max-width: 44rem; margin: .4rem auto; font-family: var(--display); font-variation-settings: "SOFT" 60, "opsz" 20; }
.foot-line.small { font-family: var(--sans); font-size: .76rem; letter-spacing: .06em; color: var(--ink-3); }

@media print {
  .util, .contents, .pn, .foot, .issue-nav { display: none; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { .card img { transition: none; } }
@media (max-width: 640px) { .dateline { flex-direction: column; gap: .3rem; } .dateline .sp { display: none; } }

/* ---- writers wanted: a classified ad ---- */
.classified { border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; padding: 1.25rem 1.5rem 1.1rem; margin: 1rem 0 2.5rem; background: rgba(255,255,255,.22); text-align: center; }
.cl-head { font-family: var(--sans); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--tomato); font-weight: 600; margin: 0 0 .25rem; }
.cl-head::before, .cl-head::after { content: " ✦ "; color: var(--mustard); }
.cl-title { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 900; font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; margin: 0 0 .9rem; color: var(--teal-2); letter-spacing: -.01em; text-transform: uppercase; }
.cl-body { font-size: 1.05rem; line-height: 1.5; text-align: left; margin: 0; column-count: 1; }
.cl-body strong { font-family: var(--sans); font-size: .85em; letter-spacing: .1em; text-transform: uppercase; }
