:root {
  --ink: #171717;
  --muted: #6b6b6b;
  --line: #e7e7e7;
  --soft: #f5f5f4;
  --cream: #fff9ed;
  --teal: #12d6b4;
  --teal-ink: #0a8f78;
  --yuzu: #ffc914;
  --night: #0c0c0c;
  --radius: 12px;
  --font: Satoshi, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 40px; height: 68px; }
.logo { display: flex; align-items: center; gap: 2px; text-decoration: none; flex-shrink: 0; }
.logo .wordmark { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; place-items: center; }
.menu-toggle svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.button, .signup button, .search button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 14px var(--font); padding: 10px 18px; text-decoration: none; cursor: pointer; }
.button:hover, .signup button:hover, .search button:hover { background: #000; }

/* Signup form */
.signup { display: flex; flex-wrap: wrap; gap: 8px; max-width: 440px; }
.signup input { flex: 1 1 200px; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; font: 15px var(--font); background: #fff; color: var(--ink); }
.signup input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.signup svg { width: 14px; height: 14px; fill: currentColor; }
.signup-note { flex-basis: 100%; margin: 4px 0 0 18px; font-size: 14px; color: var(--teal-ink); font-weight: 500; }

/* Hero (landing) */
.hero { background: url(/brand/skyline-left.png) left bottom 40px / auto 320px no-repeat, url(/brand/skyline-right.png) right bottom 40px / auto 320px no-repeat, var(--cream); color: var(--ink); padding: 72px 0 140px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-mascot { width: 132px; height: 132px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 900; letter-spacing: -.02em; max-width: 14ch; }
.hero h1 span { background: linear-gradient(transparent 60%, var(--yuzu) 60% 88%, transparent 88%); }
.hero > .wrap > p { color: #4a4a4a; font-size: 18px; max-width: 34em; margin: 18px 0 28px; }
.hero .signup { width: 100%; max-width: 480px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .06); border-radius: 999px; padding: 6px; gap: 0; flex-wrap: nowrap; }
.hero .signup input { border: 0; background: transparent; }
.hero .signup input:focus { outline: 0; }
.hero .signup .signup-note { position: absolute; }
.hero .signup { position: relative; }
.hero .signup .signup-note { left: 0; right: 0; top: calc(100% + 10px); margin: 0; color: var(--teal-ink); }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* White panel lifted over the hero */
.panel { position: relative; background: #fff; border-radius: 32px 32px 0 0; margin-top: -64px; padding: 56px 0 24px; }
.panel-head { text-align: center; margin-bottom: 36px; }
.panel-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.panel-head p { color: var(--muted); margin: 10px 0 0; font-size: 17px; }
.view-all { display: table; margin: 36px auto 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 15px; text-decoration: none; }
.view-all:hover { border-color: var(--ink); }

/* In every issue */
.inside { padding: 72px 24px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.tile .emoji { font-size: 28px; }
.tile h3 { font-size: 18px; margin: 12px 0 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

/* Archive */
.archive { padding-top: 56px; padding-bottom: 24px; }
.archive h1 { text-align: center; font-size: 36px; font-weight: 700; }
.filters { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 28px 0 36px; }
.search { grid-column: 3; justify-self: end; display: flex; gap: 8px; }
.search input { width: 200px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: 14px var(--font); }
.search input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.search button { border-radius: 8px; }
.count { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.empty { color: var(--muted); text-align: center; padding: 48px 0; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.card { display: block; text-decoration: none; position: relative; }
.thumb { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--cream) url(/brand/mascot.png) center / 34% no-repeat; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card h3 { font-size: 18px; font-weight: 700; margin: 14px 0 6px; line-height: 1.3; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card .meta { margin: 0; color: var(--muted); font-size: 13px; }
.tag { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }

/* Pager */
.pager { display: flex; justify-content: space-between; align-items: center; margin: 48px 0 24px; }
.nums { display: flex; gap: 6px; }
.pager a, .pager span { text-decoration: none; font-size: 14px; font-weight: 500; }
.step { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.step.off { color: #b5b5b5; }
.num { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; }
.num[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gap { display: grid; place-items: center; width: 24px; color: var(--muted); }

/* Signup band */
.band { padding: 32px 0 72px; }
.band-inner { background: var(--cream); border-radius: 24px; padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.band h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 900; }
.band p { color: var(--muted); max-width: 34em; margin: 12px 0 24px; font-size: 17px; }
.band .signup { justify-content: center; width: 100%; }

/* Issue */
.issue { padding-top: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--ink); }
.issue > h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 900; letter-spacing: -.015em; margin: 14px 0 12px; }
.plus { font-size: 18px; font-weight: 500; color: var(--muted); margin: 0; }
.byline { display: flex; align-items: center; gap: 12px; padding: 24px 0; margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline img { border-radius: 50%; background: var(--cream); }
.byline strong, .byline time { display: block; font-size: 14px; }
.byline time { color: var(--muted); }
.shares { margin-left: auto; display: flex; gap: 8px; }
.share { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; }
.share:hover { border-color: var(--ink); }
.share svg { width: 16px; height: 16px; fill: var(--ink); }

.issue-body { font-size: 18px; line-height: 1.7; padding: 32px 0 16px; }
.issue-body p { margin: 0 0 18px; }
.issue-body ul { margin: 0 0 18px; padding-left: 22px; }
.issue-body li { margin-bottom: 8px; }
.issue-body a { text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 500; }
.issue-body a:hover { color: var(--teal-ink); }
.toc { background: var(--cream); border-left: 4px solid var(--yuzu); border-radius: 8px; padding: 18px 22px 4px; margin: 8px 0 28px; }
.toc p { margin-bottom: 8px; }
.toc a { text-decoration: none; font-weight: 400; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--teal); }
.issue-section { padding-top: 16px; }
.issue-section > h2 { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 32px 0 28px; }
.issue-section > h2::before, .issue-section > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.story { margin-bottom: 44px; scroll-margin-top: 90px; }
.kicker { font-size: 12px !important; font-weight: 700; letter-spacing: .14em; color: var(--teal-ink); margin: 0 0 8px !important; }
.story h3 { font-size: 26px; font-weight: 800; line-height: 1.25; margin-bottom: 18px; }
.story h3 a { text-decoration: none; font-weight: 800; }
.story h3 a:hover { text-decoration: underline; text-decoration-color: var(--teal); color: inherit; }
.story figure { margin: 0 0 22px; }
.story figure img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.story figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.callout { background: var(--cream); border-radius: 8px; padding: 14px 18px; }
.brief { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.brief:last-child { border-bottom: 0; }
.more a { font-weight: 600; }
.signoff { margin-top: 40px !important; font-weight: 700; }

.recent { padding-top: 48px; padding-bottom: 24px; border-top: 1px solid var(--line); margin-top: 32px; }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.recent-head h2 { font-size: 28px; font-weight: 700; }
.recent-head a { font-weight: 600; text-decoration: none; }

/* About and coming-soon pages */
.plain { padding-top: 64px; padding-bottom: 8px; }
.plain h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 900; letter-spacing: -.015em; }
.plain .lede { font-size: 20px; color: var(--muted); margin: 16px 0 24px; }
.plain p { font-size: 18px; line-height: 1.7; }
.soon { text-align: center; padding-bottom: 48px; }
.soon img { margin-bottom: 16px; }
.soon .lede { max-width: 30em; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin: 16px 0 20px; }
.foot-cols { justify-self: end; display: flex; gap: 64px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-col h4 { font-size: 15px; margin-bottom: 6px; }
.foot-col a { color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.copyright { color: var(--muted); font-size: 13px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 1024px) {
  .grid, .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .bar { height: 60px; }
  .logo .wordmark { height: 28px; }
  .menu-toggle { display: grid; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:last-child { border-bottom: 0; }
  .foot-cols { justify-self: start; gap: 48px; }
  .filters { grid-template-columns: 1fr; justify-items: center; }
  .search { grid-column: 1; }
  .search { justify-self: stretch; }
  .search input { flex: 1; width: auto; }
  .grid, .tiles { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 120px; background-size: auto 180px, auto 180px, auto; }
  .pager .step { padding: 8px 12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .issue-body { font-size: 17px; }
  .story h3 { font-size: 22px; }
  .byline { flex-wrap: wrap; }
}
