/* Shared structure for every look. A look (sunday.css, zine.css, gallery.css) sets the variables below and
   dresses the same markup. Colours from the property's canon/site/site.toml arrive as --ink --paper --accent --b1..b5. */
:root {
  --ink: #1b1b1b; --paper: #fff; --accent: #d6336c;
  --muted: color-mix(in srgb, var(--ink) 60%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 14%, var(--paper));
  --card: var(--paper);
  --stage: var(--paper);
  --max: 1180px;
  --radius: 10px;
  --display: Georgia, serif;
  --body: system-ui, sans-serif;
  --gap: clamp(16px, 3vw, 28px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 9; }
main, .masthead, .foot { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
main { padding-bottom: 48px; }

/* masthead */
.masthead { text-align: center; padding-top: 18px; }
.mast-rule { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.logo { display: inline-block; text-decoration: none; margin: 10px auto 4px; }
.logo-img { width: min(440px, 78vw); height: auto; margin: 0 auto; }
.wordmark { font-family: var(--display); font-size: clamp(44px, 9vw, 92px); line-height: 1; letter-spacing: -0.01em; }
.tagline { margin: 4px auto 10px; max-width: 46ch; color: var(--muted); }
.nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; padding: 12px 0; }
.nav a { text-decoration: none; font-weight: 600; padding: 4px 2px; border-bottom: 2px solid transparent; }
.nav a[aria-current] { border-color: var(--accent); }

/* today / a strip */
.today { padding: var(--gap) 0; text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--accent); }
.strip-title { font-family: var(--display); font-size: clamp(30px, 5vw, 52px); line-height: 1.08; margin: 8px 0 10px; }
.meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 15px; }
.chip { --c: var(--accent); text-decoration: none; font-weight: 700; font-size: 14px; color: #fff; background: var(--c); padding: 3px 12px; border-radius: 99px; }
.strip { margin: var(--gap) auto 12px; background: var(--stage); }
.strip img { width: 100%; height: auto; margin: 0 auto; }
.dek { max-width: 60ch; margin: 10px auto 0; font-size: 19px; }
.strip-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.story-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.story-nav > span { font-weight: 700; color: var(--c); }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 9px 16px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.btn.ghost { border-color: var(--line); }
.btn.off { opacity: .32; cursor: default; }
.btn.big { font-size: 19px; padding: 13px 24px; }
.note { color: var(--muted); }
.read { max-width: 70ch; margin: 28px auto 0; text-align: left; }
.read summary { cursor: pointer; font-weight: 700; }

/* sections */
.section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: calc(var(--gap) * 1.6) 0 16px; }
.section-head h2 { font-family: var(--display); font-size: clamp(26px, 4vw, 38px); margin: 0; }
.section-head > a { margin-left: auto; font-weight: 700; text-decoration: none; }
.badge { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 99px; }
.badge.big { font-size: 14px; padding: 7px 14px; }
.page-head { text-align: center; padding: var(--gap) 0 8px; }
.page-head h1 { font-family: var(--display); font-size: clamp(34px, 6vw, 60px); line-height: 1.05; margin: 8px 0; }
.lede { max-width: 58ch; margin: 0 auto; font-size: 19px; color: var(--muted); }

/* stories */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--gap); }
.theme-grid.wide { margin-top: var(--gap); }
.theme-card { --c: var(--accent); display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--card); }
.cover { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--c) 18%, var(--paper)); }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.cover-letter { font-family: var(--display); font-size: 72px; color: var(--c); line-height: 1; }
.theme-name { font-family: var(--display); font-size: 24px; line-height: 1.15; margin-top: 8px; }
.theme-count { font-size: 14px; color: var(--muted); }
.theme-blurb { font-size: 15px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.tile img { aspect-ratio: 3 / 1; object-fit: cover; object-position: left center; width: 100%; }
.tile .n { font-family: var(--display); font-size: 30px; color: var(--c); line-height: 1; }
.tile .t { font-weight: 700; }
.tile time { font-size: 13px; color: var(--muted); }
.tile.soon { min-height: 130px; justify-content: space-between; border: 2px dashed color-mix(in srgb, var(--c) 45%, var(--paper)); padding: 14px; color: var(--muted); }

/* shop */
.shirt-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gap); }
.shirt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: calc(var(--gap) * 1.2); margin-top: var(--gap); }
.shirt { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.shirt-pics { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--card); }
.shirt-pics .pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .45s ease, transform .6s ease; }
.shirt-pics .pic:not(.p0) { opacity: 0; }
.shirt:hover .shirt-pics.n2 .p0, .shirt:hover .shirt-pics.n3 .p0 { opacity: 0; }
.shirt:hover .shirt-pics .p1 { opacity: 1; }
.shirt:hover .shirt-pics .pic { transform: scale(1.04); }
.shirt-name { font-weight: 800; font-size: 18px; }
.shirt-meta { display: flex; justify-content: space-between; align-items: center; }
.dots { display: flex; gap: 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--s); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.price { font-weight: 700; }
.shop-hero { text-align: center; padding: calc(var(--gap) * 1.4) 0 var(--gap); }
.shop-hero h1 { font-family: var(--display); font-size: clamp(44px, 9vw, 104px); line-height: .95; margin: 10px 0 14px; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.ribbon { overflow: hidden; white-space: nowrap; padding: 10px 0; margin: 0 -16px; background: var(--ink); color: var(--paper); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.ribbon div { display: inline-block; animation: slide 38s linear infinite; }
@keyframes slide { to { transform: translateX(-33.33%); } }
@media (prefers-reduced-motion: reduce) { .ribbon div { animation: none; } .shirt-pics .pic { transition: none; } }

/* about */
.prose { max-width: 66ch; margin: 0 auto; font-size: 19px; }
.prose h2, .prose h3 { font-family: var(--display); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 40px; display: grid; gap: 8px; text-align: center; }
.foot-name { font-family: var(--display); font-size: 22px; }
.foot-name span { font-family: var(--body); font-size: 15px; color: var(--muted); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; font-weight: 600; }
.foot-small { font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .strip-nav { justify-content: center; }
  .section-head > a { margin-left: 0; }
  .mast-rule .issue { display: none; }
  .mast-rule { justify-content: center; }
}
@media (max-width: 640px) {
  .strip { max-width: 520px; }
  .tile.soon { min-height: 84px; }
}
@media (max-width: 640px) {
  .strip-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .strip-nav > :nth-child(1) { justify-self: start; }
  .strip-nav > :nth-child(3) { justify-self: end; }
  .strip-nav > :nth-child(2) { grid-column: 1 / -1; order: 3; justify-self: center; }
}
.wordmark .w { display: inline-block; white-space: nowrap; }

/* follow links */
.follow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; margin: 16px 0 4px; }
.follow-label { font-weight: 700; font-size: 15px; }
.soc-row { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.soc { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--ink); color: var(--ink); background: var(--paper); text-decoration: none; transition: transform .15s, background .15s; }
.soc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc:hover { transform: translateY(-2px); background: var(--accent); color: #fff; border-color: var(--accent); }
.soc.soon::after { content: "soon"; position: absolute; bottom: -7px; right: -8px; font-size: 9px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; background: var(--accent); color: #fff; padding: 1px 4px; border-radius: 6px; opacity: 0; transition: opacity .2s; }
.soc.soon:hover::after, .soc.soon.said::after { opacity: 1; }
.follow.in-head { margin: 0 0 12px; }
.follow.in-head .soc { width: 32px; height: 32px; border-width: 1.5px; }
.follow.in-head .soc svg { width: 16px; height: 16px; }

/* mailing list */
.signup { display: grid; gap: 10px 24px; align-items: center; margin: calc(var(--gap) * 1.4) 0 0; padding: 18px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); }
.signup.big { grid-template-columns: 1fr minmax(0, 1.1fr); padding: clamp(18px, 3vw, 32px); }
.signup h2 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 4px; line-height: 1.1; }
.signup p { margin: 0; color: var(--muted); }
.signup-form { display: flex; flex-wrap: wrap; gap: 8px; }
.signup-form input[type=email] { flex: 1 1 200px; min-width: 0; font: inherit; padding: 10px 14px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.signup-form .btn { background: var(--accent); color: #fff; border-color: var(--accent); cursor: pointer; font: inherit; font-weight: 700; }
.signup-form .btn:disabled { opacity: .6; }
.signup-msg { flex-basis: 100%; min-height: 1.2em; font-weight: 600; color: var(--ink) !important; }
.signup-form.done input[type=email] { border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.foot .signup { text-align: left; margin: 0 0 8px; }
@media (max-width: 760px) { .signup.big { grid-template-columns: 1fr; } }

/* thumbs: every link and button at least 44px tall on a phone or touch screen */
@media (max-width: 640px), (pointer: coarse) {
  .nav a, .foot-links a, .section-head > a, .story-nav .btn, .strip-nav .btn { display: inline-flex; align-items: center; min-height: 44px; }
  .chip { display: inline-flex; align-items: center; min-height: 40px; }
  .foot-links { gap: 0 22px; }
  .follow.in-head .soc, .soc { width: 44px; height: 44px; }
  .follow.in-head .soc svg, .soc svg { width: 20px; height: 20px; }
  .signup-form input[type=email], .signup-form .btn { min-height: 48px; }
  .read summary { padding: 10px 0; }
}

/* Gallery: quiet and modern. White, a soft grey stage under the strip, thin rules, an editorial serif for titles,
   each story in its own colour. Follows the reader's light or dark setting. */
:root {
  --paper: #ffffff;
  --card: #f6f6f3;
  --stage: #f1f1ee;
  --display: "DM Serif Display", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --radius: 999px;
  --max: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #121212 !important; --ink: #ececec !important; --card: #1c1c1c; --stage: #1a1a1a; }
  .strip img, .tile img, .cover img { border-radius: 4px; }
  .logo-img { filter: drop-shadow(0 0 1px rgba(255,255,255,.4)); background: #fff; border-radius: 16px; padding: 10px 18px; }
  .chip { color: #111; }
}
.masthead { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 24px; text-align: left;
  padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mast-rule { display: none; }
.logo { margin: 0; }
.logo-img { width: 150px; }
.wordmark { font-size: 34px; }
.tagline { margin: 0; font-size: 14px; }
.nav { justify-content: flex-end; padding: 0; gap: 4px 26px; }
.nav a { font-weight: 500; font-size: 15px; color: var(--muted); }
.nav a[aria-current] { color: var(--ink); border-color: var(--ink); }
.today { padding-top: calc(var(--gap) * 1.6); }
.kicker { color: var(--muted); font-weight: 500; letter-spacing: .2em; font-size: 12px; }
.strip-title { font-weight: 400; font-size: clamp(36px, 6vw, 68px); letter-spacing: -.01em; }
.strip { background: var(--stage); padding: clamp(14px, 4vw, 56px); border-radius: 6px; margin-top: calc(var(--gap) * 1.2); }
.dek { color: var(--muted); }
.chip { background: transparent; color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); font-weight: 500; }
.btn { border: 1px solid var(--line); font-weight: 500; font-size: 15px; }
.btn:not(.off):hover { border-color: var(--ink); }
.btn.big { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.section-head { border-top: 1px solid var(--line); padding-top: 22px; }
.section-head h2 { font-weight: 400; }
.section-head > a { font-weight: 500; color: var(--muted); }
.badge { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.theme-card { gap: 2px; }
.cover { border-radius: 6px; position: relative; }
.cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); }
.cover img { transition: transform .5s ease; }
.theme-card:hover .cover img { transform: scale(1.04); }
.cover-letter { font-size: 84px; opacity: .85; }
.theme-name { font-weight: 400; font-size: 26px; }
.theme-count { font-size: 13px; }
.theme-count::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 1px; }
.tile img { border-radius: 4px; background: var(--stage); }
.tile .n { font-size: 22px; }
.tile.soon { border: 1px dashed var(--line); border-radius: 6px; }
.story-head h1 { color: var(--c); }
.page-head { padding-top: calc(var(--gap) * 1.6); }
.page-head h1 { font-weight: 400; }
.shirt-pics { border-radius: 6px; background: var(--card); }
.shirt-name { font-weight: 500; }
.shop-hero h1 { font-weight: 400; font-style: italic; }
.ribbon { margin: 10px 0; background: transparent; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 500; letter-spacing: .24em; font-size: 12px; }
.foot { text-align: left; grid-template-columns: 1fr auto; align-items: center; }
.foot-links { justify-content: flex-end; }
.foot-small { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .nav { justify-content: center; }
  .foot { grid-template-columns: 1fr; text-align: center; }
  .foot-links { justify-content: center; }
}
.soc { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.soc:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.follow-label { font-weight: 500; color: var(--muted); }
.follow.in-head { grid-column: 1 / -1; justify-content: flex-end; margin: 0; }
.signup { border: 0; border-radius: 6px; background: var(--card); }
.signup h2 { font-weight: 400; }
.signup-form input[type=email] { border: 1px solid var(--line); border-radius: 999px; }
.signup-form .btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .follow.in-head { justify-content: center; } }
