/* Top of Design - magazine pages (/, /magazine, /stories). Same visual language as myl1nk.com/worldtopdesign:
   navy brand panel, photo strip on the panel edge, ivory paper, Playfair display, gold hairlines, mobile-first column. */
:root {
  --bg: #f4f1e9; --paper: #fffdf8; --ink: #0d1d28; --muted: #5b6670; --line: #e0d9c8; --soft: #ebe4d3;
  --accent: #c69a4a; --accent-text: #a27c3a;
  --head-bg: #0d1d28; --head-ink: #f4f1e9; --head-muted: rgba(244, 241, 233, 0.66);
  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body.tod {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.tod a { color: inherit; }
.tod img { display: block; max-width: 100%; }
.tod-page { max-width: 640px; margin: 0 auto; padding: 0 max(18px, env(safe-area-inset-right)) 130px max(18px, env(safe-area-inset-left)); }

/* brand panel */
.tod-head {
  margin: 0 -18px; padding: 30px 18px 26px; text-align: center; background: var(--head-bg); color: var(--head-ink);
  box-shadow: 0 0 0 100vmax var(--head-bg); clip-path: inset(0 -100vmax);
}
.tod-id { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.tod-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.tod-name { font: 600 12px/1.3 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.tod-handle { font-size: 12px; color: var(--head-muted); margin-top: -4px; }
.tod-tagline { margin: 18px 0 0; font: 400 29px/1.18 var(--display); letter-spacing: -0.005em; text-wrap: balance; }
.tod-tagline::before { content: ""; display: block; width: 36px; height: 1px; background: var(--accent); margin: 0 auto 18px; opacity: 0.8; }
.tod-tagline strong { font-weight: 500; font-style: italic; color: var(--accent); }
.tod-desc { margin: 10px auto 0; font-size: 15px; color: var(--head-muted); max-width: 30em; }
.tod-desc strong { color: var(--head-ink); font-weight: 600; }
.tod-facts { margin: 12px 0 0; font-size: 12.5px; color: var(--head-muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.tod-facts span { opacity: 0.5; }
.tod-head-story { padding-top: 18px; }
.tod-id-row { flex-direction: row; gap: 10px; }
.tod-id-row .tod-avatar { width: 40px; height: 40px; }
.tod-cat { margin: 22px 0 0; font: 600 11px/1.3 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.tod-cat a { text-decoration: none; }
.tod-head-story .tod-tagline { font-size: 31px; margin-top: 10px; }
.tod-head-story .tod-tagline::before { display: none; }

/* photo strip on the panel edge */
.tod-strip { display: flex; gap: 6px; overflow-x: auto; margin: 18px -18px 0; padding: 0 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tod-strip::-webkit-scrollbar { display: none; }
.tod-strip a { flex: 0 0 auto; scroll-snap-align: start; }
.tod-strip img { width: 104px; height: 130px; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.5); }
.tod-head:has(+ .tod-strip) { padding-bottom: 82px; }
.tod-head + .tod-strip { margin-top: -62px; position: relative; }

/* section tabs */
.tod-tabs { display: flex; gap: 18px; overflow-x: auto; margin: 22px 0 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tod-tabs::-webkit-scrollbar { display: none; }
.tod-tabs a { flex: 0 0 auto; padding: 10px 0; text-decoration: none; font: 600 11px/1.3 var(--body); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.tod-tabs a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

.tod-kicker { display: block; font: 600 10.5px/1.3 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); }

/* lead story */
.tod-lead { display: block; margin-top: 22px; text-decoration: none; }
.tod-lead img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.tod-lead h2 { margin: 6px 0 6px; font: 400 27px/1.2 var(--display); text-wrap: balance; }
.tod-lead p { margin: 0; color: var(--muted); font-size: 15px; }

.tod-h2 { margin: 34px 0 10px; font: 400 22px/1.2 var(--display); }

/* story rows (like the offer tiles) */
.tod-list { display: grid; gap: 8px; }
.tod-row { display: flex; gap: 14px; align-items: center; padding: 10px; text-decoration: none; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.tod-row:hover, .tod-row:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); outline: none; }
.tod-row img, .tod-noimg { flex: 0 0 auto; width: 84px; height: 104px; object-fit: cover; border-radius: 10px; }
.tod-noimg { display: grid; place-items: center; background: var(--soft); font: italic 400 30px var(--display); color: var(--accent-text); }
.tod-row-text { min-width: 0; display: grid; gap: 3px; }
.tod-row-text b { font: 500 17px/1.25 var(--display); }
.tod-row-text small { font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* article */
.tod-hero { margin: 18px 0 0; }
.tod-hero img { width: 100%; border-radius: 14px; }
.tod-hero figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }
.tod-head-story + .tod-hero { margin-top: -40px; position: relative; }
.tod-head-story:has(+ .tod-hero) { padding-bottom: 64px; }
.tod-body { margin-top: 26px; font-size: 17.5px; line-height: 1.72; }
.tod-body h2 { margin: 30px 0 8px; font: 400 23px/1.25 var(--display); }
.tod-body p { margin: 0 0 16px; }
.tod-body > p:first-child::first-letter { float: left; font: 400 58px/0.85 var(--display); padding: 6px 10px 0 0; color: var(--accent-text); }
.tod-brand { margin-top: 30px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 4px; }
.tod-brand b { font: 500 22px/1.25 var(--display); margin-top: 4px; }
.tod-brand small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.tod-verified { font: 600 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
  border: 1px solid var(--accent); border-radius: 999px; padding: 3px 7px; vertical-align: middle; }
.tod-embeds .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }

/* pitch + steps */
.tod-pitch { margin-top: 34px; padding-top: 4px; border-top: 1px solid var(--line); }
.tod-steps { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: s; }
.tod-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 8px 0; color: var(--muted); font-size: 14px; }
.tod-steps li::before { content: counter(s); font: italic 400 22px/1 var(--display); color: var(--accent-text); }
.tod-muted { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.tod-btn { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; border-radius: 999px;
  padding: 13px 20px; font: 500 15px/1.2 var(--body); background: var(--ink); color: var(--accent) !important; border: 1px solid var(--ink); }
.tod-btn-line { background: transparent; color: var(--ink) !important; margin-top: 10px; }
.tod-empty { color: var(--muted); margin-top: 24px; }

/* footer + sticky bar */
.tod-foot { margin-top: 40px; text-align: center; font-size: 12px; color: var(--muted); }
.tod-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; }
.tod-foot nav span { opacity: .5; }
.tod-foot a { text-decoration: none; }
.tod-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px max(18px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: linear-gradient(to top, var(--bg) 70%, transparent); }
.tod-buy { display: block; max-width: 444px; margin: 0 auto; background: var(--ink); color: var(--accent) !important; text-align: center;
  text-decoration: none; border-radius: 999px; padding: 16px; font: 600 16px/1.2 var(--body); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .5); }
.tod :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (min-width: 700px) {
  .tod-head { padding-top: 42px; }
  .tod-tagline { font-size: 36px; }
  .tod-head-story .tod-tagline { font-size: 40px; }
  .tod-lead h2 { font-size: 32px; }
  .tod-lead img { aspect-ratio: 16 / 11; }
}
@media (prefers-reduced-motion: reduce) { .tod-row { transition: none; } }
