/* The Saved Edit. Warm paper, ink, one clay accent (the colour of a "save"). Editorial
   serif for display, a plain sans for reading. Every section has its own paper tint. */

:root {
  --paper: #FBF8F4;
  --paper-2: #F4EFE8;
  --ink: #221E1A;
  --ink-2: #4A433C;
  --soft: #716960;
  --line: #E6DED4;
  --clay: #A8432F;
  --clay-2: #8E3726;
  --clay-tint: #F5E8E2;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --read: 680px;
  --r: 14px;
}

*, *::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(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 22px; height: 28px; flex: none; }
.brand-name { font: 500 27px/1 var(--serif); letter-spacing: -0.01em; font-variation-settings: "opsz" 96; }
.brand-name em { font-style: italic; font-weight: 400; color: var(--clay); }
.top-note { font-size: 13px; color: var(--soft); letter-spacing: 0.01em; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 0 12px; margin: 0 -8px; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; text-decoration: none; font-size: 14px; color: var(--ink-2);
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* Type */
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; margin: 0 0 20px; font-variation-settings: "opsz" 144; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--clay); }
h2 { font-size: clamp(27px, 3.4vw, 36px); line-height: 1.15; margin: 0 0 14px; font-variation-settings: "opsz" 72; }
h3 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; margin: 0; }
.muted { color: var(--soft); }

/* Home hero */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 15em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: 14px; color: var(--soft); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }

.band { padding: clamp(48px, 7vw, 84px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.band-head h2 { margin: 0; }
.band-head p { margin: 0; color: var(--soft); max-width: 30em; }

/* Section contents list */
.contents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contents a {
  display: flex; flex-direction: column; height: 100%; min-height: 200px; padding: 22px 22px 20px;
  border-radius: var(--r); background: var(--tint); color: var(--sink); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contents a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(34, 30, 26, .45); }
.contents .num { font: italic 400 15px/1 var(--serif); opacity: .75; }
.contents h3 { color: var(--sink); margin: auto 0 8px; padding-top: 34px; font-size: 25px; }
.contents p { margin: 0; font-size: 14.5px; line-height: 1.5; opacity: .85; }
.contents .count { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

/* Guide cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.card { text-decoration: none; display: block; }
.card-art {
  aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--tint); color: var(--sink);
  display: flex; flex-direction: column; justify-content: space-between; padding: 20px; overflow: hidden; position: relative;
}
.card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-art .tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .75; position: relative; }
.card-art .big { font: italic 400 clamp(30px, 3vw, 40px)/1.05 var(--serif); position: relative; }
.card h3 { margin: 16px 0 6px; font-size: 22px; transition: color .15s; }
.card:hover h3 { color: var(--clay); }
.card p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.5; }

/* How we pick */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: p; }
.pillar { border-top: 1px solid var(--ink); padding-top: 18px; }
.pillar h3 { font-size: 21px; }
.pillar h3::before { counter-increment: p; content: "0" counter(p); display: block; font: 600 12px/1 var(--sans); letter-spacing: .12em; color: var(--clay); margin-bottom: 14px; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Section page */
.sec-hero { background: var(--tint); color: var(--sink); padding: clamp(44px, 7vw, 80px) 0; }
.sec-hero h1 { color: var(--sink); max-width: 14em; }
.sec-hero .lede { color: var(--sink); opacity: .85; }
.crumbs { font-size: 13.5px; color: var(--soft); margin: 0 0 22px; }
.sec-hero .crumbs { color: var(--sink); opacity: .7; }
.crumbs a { text-decoration: none; border-bottom: 1px solid currentColor; }
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 34px; text-align: center; color: var(--soft); }

/* Guide page */
.guide-head { padding: clamp(40px, 7vw, 80px) 0 30px; }
.guide-head .lede { margin-bottom: 22px; }
.byline { font-size: 14px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.read { max-width: var(--read); margin: 0 auto; }
.disclose {
  display: flex; gap: 12px; align-items: flex-start; background: var(--clay-tint); border-radius: 12px;
  padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 34px;
}
.disclose svg { flex: none; margin-top: 2px; color: var(--clay); }
.disclose a { color: var(--clay-2); }
.hero-img { margin: 0 0 34px; border-radius: var(--r); overflow: hidden; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--clay-2); text-underline-offset: 3px; }
.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 8px 0 44px; background: #fff; }
.toc h2 { font-size: 13px; font-family: var(--sans); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 4px 0; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--clay); }
.idea { padding-top: 10px; margin-bottom: 46px; scroll-margin-top: 20px; }
.idea h2 { display: flex; gap: 14px; align-items: baseline; }
.idea h2 .n { font: italic 400 0.8em/1 var(--serif); color: var(--clay); flex: none; }
.buy { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.buy li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
}
.buy .pname { font-weight: 600; font-size: 16px; line-height: 1.35; }
.buy .why { grid-column: 1; color: var(--soft); font-size: 14.5px; line-height: 1.45; }
.btn {
  grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 10px 14px; border-radius: 999px; white-space: nowrap; transition: background .15s;
}
.btn:hover { background: var(--clay); }
.list-box { background: var(--paper-2); border-radius: var(--r); padding: 26px 26px 18px; margin: 20px 0 46px; }
.list-box h2 { font-size: 28px; }
.list-box ol { margin: 0; padding-left: 22px; }
.list-box li { margin: 0 0 10px; }
.list-box a { color: var(--clay-2); font-weight: 600; text-underline-offset: 3px; }
.list-box .sec { color: var(--soft); font-size: 14px; }

/* Plain pages */
.page { padding: clamp(40px, 7vw, 80px) 0 60px; }
.page h2 { font-size: 26px; margin-top: 1.6em; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 46px 0 40px; font-size: 14px; color: var(--soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot h4 { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.foot li { margin: 0 0 8px; break-inside: avoid; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .brand-name { font-size: 22px; color: var(--ink); }
.foot-legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 900px) {
  .contents, .cards { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .top-note { display: none; }
  .brand-name { font-size: 24px; }
  .contents { grid-template-columns: 1fr; }
  .contents a { min-height: 0; }
  .contents h3 { padding-top: 22px; }
  .cards { grid-template-columns: 1fr; }
  .card-art { aspect-ratio: 16 / 11; }
  .buy li { grid-template-columns: 1fr; }
  .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
