/* The SNAP News: styles for the public pages (issue pages, the issue index).
   These pages are plain HTML so search engines and link previews can read
   them. The colours and type match the main site (index.html). */
:root {
  --ink: #2A1A14; --ink-soft: #4A372E; --muted: #655449;
  --paper: #FCF8EE; --cream: #F6ECD6; --card: #fff; --line: #D9C7A6;
  --accent: #DD3432; --green: #00954C; --brown: #3B241B; --orange: #E8762B; --mustard: #EBB33F;
  --font-display: "Bauhaus 93", "Alfa Slab One", "Rockwell Extra Bold", "Arial Black", sans-serif;
  --font-body: "Myriad Pro", "Montserrat", "Segoe UI", system-ui, Arial, sans-serif;
  --stripes: linear-gradient(to bottom, var(--mustard) 0 20%, var(--orange) 20% 40%, var(--accent) 40% 60%, var(--brown) 60% 80%, var(--green) 80% 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--card); padding: 10px 14px; border: 2px solid var(--ink); border-radius: 8px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 clamp(16px, 5vw, 72px); background: var(--brown); color: var(--cream); }
.top a { color: inherit; text-decoration: none; }
.top .name, .top .place { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.top .name { display: inline-flex; align-items: center; min-height: 44px; }
.top .place { color: #49c387; }   /* the same green as the main site's top bar */
@media (max-width: 560px) { .top .place { display: none; } }
.stripes { height: 20px; background: var(--stripes); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
/* the paper's nameplate, in the header of every public page; it links home */
.mast { text-align: center; padding: 28px 16px 20px; border-bottom: 2px solid var(--ink); }
.mast a { display: inline-block; border-radius: 8px; }
.mast img { width: min(300px, 64vw); margin: 0 auto; }
.mast .since { font-family: "Times New Roman", Times, serif; font-size: 17px; margin-top: 2px; }
@media (max-width: 560px) { .mast { padding: 20px 16px 16px; } .mast img { width: min(230px, 62vw); } .mast .since { font-size: 15px; } }

.crumbs { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 0; }
.crumbs a { color: var(--muted); display: inline-block; padding: 12px 0; }
.kicker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 6vw, 58px); line-height: 1.05; margin: 14px 0 10px; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; margin: 0 0 8px; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 62ch; margin: 0 0 22px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); background: var(--card); color: var(--ink); font: 700 14px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.cta { background: var(--accent); border-color: var(--ink); color: #fff; }   /* anything you press is the logo's red */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 34px; }

/* the front cover on an issue's public page */
.cover { margin: 0 auto; max-width: 860px; }
.cover img { width: 100%; background: var(--card); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 6px 6px 0 var(--brown); }
.cover figcaption { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 14px; text-align: center; }

/* covers under "More issues" */
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 26px; }
.shelf a { display: block; text-decoration: none; }
.shelf img { width: 100%; background: var(--card); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--brown); transition: transform .15s ease, box-shadow .15s ease; }
.shelf a:hover img { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--brown); }
.shelf .when { display: block; font-family: var(--font-display); font-size: 22px; margin-top: 14px; }
.shelf .meta { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.band { background: var(--cream); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin: 54px 0 0; padding: 40px 0 44px; }
.band p { max-width: 62ch; color: var(--ink-soft); margin: 0 0 20px; }
.more { padding: 46px 0 60px; }
.more h2 { margin-bottom: 22px; }

/* long-form text: the terms of use */
.prose { max-width: 760px; padding-bottom: 64px; }
.prose h1 { margin-top: 10px; }
.prose h2 { margin: 38px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); max-width: 68ch; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 0 0 8px; }
.prose .updated { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose .callout { background: var(--cream); border: 2px solid var(--ink); border-left: 12px solid var(--mustard); border-radius: 10px; padding: 16px 20px; margin: 22px 0; }
.prose .callout p { margin: 0; color: var(--ink); }
.prose .callout p + p { margin-top: 8px; }
.prose .lower { text-transform: lowercase; }
.prose .callout a, .prose p a, .prose li a { display: inline-block; padding: 10px 0; margin: -10px 0; }

.foot { background: var(--brown); color: #EADBC0; }
.foot p { margin: 0; padding: 16px clamp(16px, 5vw, 72px) calc(18px + env(safe-area-inset-bottom)); font-size: 13.5px; text-align: center; }
.foot a { color: inherit; display: inline-block; padding: 13px 2px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
