/* Perfect Finds: simple and clean. White pages, warm grey cards, one amber accent, DM Sans throughout. */
:root {
  --ink: #16181d;
  --muted: #5b616e;
  --line: #e6e4df;
  --soft: #f7f6f2;
  --white: #ffffff;
  --accent: #f2b705;
  --accent-soft: #fbefc4;
  --accent-ink: #7a5a00;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .88em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; overflow-wrap: anywhere; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }
main { overflow-x: clip; }
main:focus { outline: none; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
small, .small { font-size: .9rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section + .section { padding-top: 8px; }
.paper { background: var(--white); }

/* labels */
.tape { display: inline-block; margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); }

/* header */
.masthead { position: relative; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.masthead-row { max-width: var(--wrap); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.brand-strip { display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.brand:hover { color: var(--ink); }
.menu-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font: 700 .95rem var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.menu-btn[aria-expanded="true"] { background: var(--soft); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; border-radius: 2px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.site-nav { flex-basis: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 6px 0 4px; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 500; text-decoration: none; color: var(--ink); }
.site-nav a:hover { background: var(--soft); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--soft); font-weight: 700; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .js .site-nav, .site-nav { display: block; flex-basis: auto; margin-left: auto; }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a { padding: 8px 12px; font-size: .95rem; white-space: nowrap; }
}

/* hero */
.hero { padding: 56px 0 64px; background: var(--soft); }
.spread { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .spread { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.spread h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 40em; }
.byline { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.5em 0 1.2em; }
.week-intro { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.week-list { list-style: none; padding: 0; margin: 0; counter-reset: wk; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.week-list li { counter-increment: wk; display: flex; gap: 14px; align-items: baseline; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-weight: 500; line-height: 1.4; }
.week-list li:first-child { border-top: 0; }
.week-list li::before { content: "Day " counter(wk); flex: none; width: 3.6em; font-size: .85rem; font-weight: 700; color: var(--muted); }
.week-list li:last-child { background: var(--accent-soft); font-weight: 700; }
.week-list li:last-child::before { color: var(--accent-ink); }

.disclose { font-size: .92rem; line-height: 1.55; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; max-width: 38em; color: var(--muted); }
.disclose strong { color: var(--ink); }

/* figures */
.taped { margin: 0; }
.taped img { width: 100%; border-radius: var(--radius); }
.taped img[src$=".jpg"] { aspect-ratio: 4 / 5; object-fit: cover; }
.taped figcaption { font-size: .9rem; color: var(--muted); padding-top: 10px; line-height: 1.45; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1.2 var(--sans); text-decoration: none; text-align: center; padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; transition: background-color .15s ease; }
.btn-cta { background: var(--accent); color: var(--ink); }
.btn-cta:hover { background: #e0a900; color: var(--ink); }
.btn-plain { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-plain:hover { background: var(--soft); color: var(--ink); }
button.btn { cursor: pointer; }

/* cards */
.notes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 28px 0; }
.note { padding: 22px; background: var(--soft); border-radius: var(--radius); font-size: .98rem; line-height: 1.6; }
.note h3 { font-size: 1.1rem; margin-bottom: .35em; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note .btn { font-size: .95rem; padding: 10px 16px; }
.hand { font-size: 1.05rem; font-weight: 700; }
.note .hand { display: block; margin-bottom: .45em; }

/* listing facts */
.index-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 32px 0; overflow: hidden; }
.index-card dl { margin: 0; padding: 6px 22px; display: grid; grid-template-columns: minmax(130px, 32%) 1fr; }
.index-card dt, .index-card dd { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.index-card dt { font-size: .92rem; color: var(--muted); padding-right: 12px; }
.index-card dd { margin: 0; font-weight: 500; }
.index-card dl > :nth-last-child(-n+2) { border-bottom: 0; }
.index-card .source { font-size: .88rem; color: var(--muted); margin: 0; padding: 12px 22px 14px; background: var(--soft); }
@media (max-width: 520px) { .index-card dl { grid-template-columns: 1fr; } .index-card dt { padding-bottom: 0; border-bottom: 0; } }

/* 7-day tracker */
.tracker-band { background: var(--soft); }
.tracker { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 960px) { .tracker { grid-template-columns: 270px 1fr; gap: 32px; align-items: start; } }
.tracker-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 16px; }
@media (min-width: 960px) { .tracker .tracker-side { position: sticky; top: 16px; } }
.ring-wrap { display: none; }
.js .ring-wrap { display: block; }
.tracker-side h2 { font-size: 1.05rem; margin-bottom: .6em; }
.meter { margin: 0 0 14px; }
.ring-text { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.ring-text strong { font-size: 2.2rem; line-height: 1; }
.ring-text span { color: var(--muted); }
.bar { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.tracker-note { font-size: .88rem; line-height: 1.5; color: var(--muted); }
.day-index { list-style: none; padding: 0; margin: 12px 0; font-size: .92rem; }
.day-index li { margin: 0; border-top: 1px solid var(--line); }
.day-index li:first-child { border-top: 0; }
.day-index a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; line-height: 1.35; }
.day-index .status { flex: none; font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 2px 9px; }
.day-index .is-done .status { background: var(--accent); color: var(--ink); }
.no-js-note { font-size: .88rem; color: var(--muted); }
.js .no-js-note { display: none; }
.reset-btn { font: 700 .88rem var(--sans); background: none; border: 0; padding: 2px 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; cursor: pointer; }

.days { display: grid; gap: 18px; }
.day { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px 20px; scroll-margin-top: 16px; }
.day h3 { font-size: 1.3rem; padding-right: 90px; }
.day.is-done { border-color: var(--accent); }
.day .done-stamp { display: none; position: absolute; top: 24px; right: 22px; margin: 0; font-size: .78rem; font-weight: 700; color: var(--ink); background: var(--accent); border-radius: 999px; padding: 4px 12px; }
.day.is-done .done-stamp { display: block; }
.checks { list-style: none; padding: 14px 0 0; margin: 18px 0 4px; border-top: 1px solid var(--line); }
.checks li { margin: 0 0 2px; }
.checks label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .98rem; line-height: 1.5; padding: 5px 0; }
.checks input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 2px solid #c9c5bb; border-radius: 6px; background: var(--white); display: grid; place-content: center; cursor: pointer; }
.checks input::after { content: ""; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px) scale(0); }
.checks input:checked { background: var(--accent); border-color: var(--accent); }
.checks input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.checks input:checked + span { color: var(--muted); }

/* three endings */
.options { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 28px 0; }
.option { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.option h3 { font-size: 1.18rem; }

/* sources, call-outs, questions */
.sources { font-size: .97rem; line-height: 1.6; }
.sources li { margin-bottom: .6em; }
.callout { padding: 16px 20px; margin: 24px 0; background: var(--accent-soft); border-radius: 12px; }
.callout p:last-child { margin-bottom: 0; }
.warn { background: var(--soft); }
.qa-item { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 8px; scroll-margin-top: 16px; }
.qa-list h2 { margin-top: 1.4em; }
.qa-list h2:first-child { margin-top: 0; }

/* inner pages */
.page-head { padding: 52px 0 44px; background: var(--soft); }
.page-head .narrow { max-width: 760px; }
.page-head .lede { font-size: 1.15rem; }
.prose { padding: 48px 0 64px; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.3em; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 320px; align-items: start; } }
.aside-stack { display: grid; gap: 24px; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 3px 0 0 48px; margin-bottom: 18px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-content: center; font-weight: 700; background: var(--accent); border-radius: 50%; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 14px 36px 14px 0; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.qa details[open] summary::after { content: "\2212"; }
.qa .answer { padding: 0 0 12px; }
.record { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 18px 0 28px; }
.record th, .record td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.record th { background: var(--soft); }
.record td.blank { height: 54px; }
.table-scroll { overflow-x: auto; }
.print-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 20px 0 6px; }
.print-bar .btn { display: none; }
.js .print-bar .btn { display: inline-flex; }
.sheet-day { break-inside: avoid; margin: 0 0 22px; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.sheet-day h2 { font-size: 1.25rem; }
.write-lines { height: 96px; background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px); margin: 6px 0 0; }

.err-hero { text-align: center; }
.err-hero .narrow { margin-left: auto; margin-right: auto; }
.err-hero .cta-row { justify-content: center; }

/* WordPress guide list */
.gpc-list .gpc-card { background: var(--soft); border: 0; border-radius: var(--radius); }
.gpc-list .gpc-card h2 { font-size: 1.2rem; }

/* footer */
.backcover { background: var(--ink); color: #d9d8d3; padding: 52px 20px 28px; }
.backcover a { color: #fff; text-decoration: none; }
.backcover a:hover { color: var(--accent); text-decoration: underline; }
.backcover-grid { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 32px; }
@media (min-width: 820px) { .backcover-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.backcover-name { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0 0 16px; }
.backcover-name img { width: 32px; height: 32px; }
.backcover p { font-size: .95rem; line-height: 1.6; }
.backcover .tm { font-size: .85rem; color: #a9a8a3; }
.backcover-col ul { list-style: none; padding: 0; margin: 14px 0 0; }
.backcover-col li { margin-bottom: 8px; }
.backcover-col .tape { background: #2a2d34; color: #fff; }
.backcover-base { max-width: var(--wrap); margin: 32px auto 0; padding-top: 18px; border-top: 1px solid #2a2d34; font-size: .88rem; color: #a9a8a3; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .bar span { transition: none; }
}

/* print: checklist */
@media print {
  body { font-size: 11pt; }
  .masthead, .backcover, .skip, .print-bar, .no-print, .tracker-side { display: none !important; }
  .page-head { background: #fff; padding: 0; }
  .checks input { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; }
  .sheet-day { page-break-inside: avoid; }
}

/* Advertorial bar (top of every page) */
.adbar { background: var(--accent-soft); color: var(--accent-ink); font-size: .88rem; line-height: 1.45; }
.adbar p { max-width: var(--wrap); margin: 0 auto; padding: 8px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.adbar__tag { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 2px 10px; border-radius: 999px; }
.adbar a { color: var(--ink); font-weight: 700; }
