/* 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; }
}

/* Sunday Funnies: the comics section of a newspaper. Cream newsprint, a masthead between rules, halftone dots,
   slab headlines, a serif for reading. The property's accent is the one spot colour. */
:root {
  --paper: #f5efdf;
  --card: #fbf7ec;
  --stage: #fffdf6;
  --display: "Alfa Slab One", Georgia, serif;
  --body: "Libre Franklin", system-ui, sans-serif;
  --radius: 0;
  --max: 1120px;
}
body {
  background-color: var(--paper);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1.3px);
  background-size: 6px 6px;
}
.masthead { border-bottom: 5px double var(--ink); padding-bottom: 0; }
.mast-rule { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 6px 2px; color: var(--ink);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: 12px; }
.logo { margin: 18px auto 6px; }
.logo-img { width: min(520px, 82vw); filter: contrast(1.05); }
.wordmark { font-size: clamp(56px, 11vw, 120px); text-transform: lowercase; }
.tagline { font-family: "Libre Baskerville", Georgia, serif; font-style: italic; color: var(--ink); }
.nav { border-top: 1px solid var(--ink); margin-top: 8px; gap: 4px 34px; }
.nav a { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 800; }
.nav a[aria-current] { border-color: var(--ink); }
.kicker { color: var(--ink); background: var(--accent); color: #fff; display: inline-block; padding: 3px 10px 2px; letter-spacing: .2em; }
.strip-title { font-weight: 400; }
.strip { background: var(--stage); border: 3px solid var(--ink); padding: clamp(6px, 1.4vw, 14px); box-shadow: 6px 6px 0 var(--ink); }
.dek, .lede, .prose { font-family: "Libre Baskerville", Georgia, serif; }
.dek { font-style: italic; }
.btn { border-width: 2px; background: var(--stage); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.btn:not(.off):hover { background: var(--ink); color: var(--paper); }
.chip { border-radius: 0; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.section-head { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 0 6px; }
.section-head h2 { font-weight: 400; font-size: clamp(24px, 3.4vw, 32px); }
.section-head > a { text-transform: uppercase; font-size: 13px; letter-spacing: .1em; }
.theme-card { border: 2px solid var(--ink); padding: 10px 10px 14px; background: var(--card); transition: transform .15s; }
.theme-card:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.cover { border: 1px solid var(--ink); background-image: radial-gradient(color-mix(in srgb, var(--c) 55%, transparent) 2px, transparent 2.4px); background-size: 9px 9px; }
.cover-letter { background: var(--card); padding: 2px 16px; border: 2px solid var(--ink); }
.theme-name { font-weight: 400; }
.theme-count { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--c); }
.tile { border: 2px solid var(--ink); background: var(--card); padding: 10px; }
.tile.soon { border: 2px dashed var(--ink); background: transparent; }
.page-head h1 { font-weight: 400; }
.badge { border-radius: 0; }
.shirt { border: 2px solid var(--ink); background: var(--card); padding: 10px 10px 12px; }
.shirt-pics { background: #fff; border: 1px solid var(--ink); }
.shop-hero h1 { font-weight: 400; }
.ribbon { margin: 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: var(--accent); color: #fff; }
.foot { border-top: 5px double var(--ink); }
.foot-name { text-transform: lowercase; }
.soc { border-radius: 0; background: var(--stage); }
.soc:hover { background: var(--ink); border-color: var(--ink); }
.follow-label { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.signup { border-radius: 0; border-width: 3px; background: var(--stage); box-shadow: 6px 6px 0 var(--ink); }
.signup h2 { font-weight: 400; }
.signup-form input[type=email], .signup-form .btn { border-radius: 0; }
.signup-form .btn { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
