:root {
  --bg: #f7f1e8;
  --surface: #fffaf2;
  --text: #29241f;
  --muted: #63574c;
  --primary: #9e2c3a;
  --accent: #e7af62;
  --pine: #184234;
  --line: #dfd1c3;
  --line-strong: #a89888;
  --radius: 12px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
}
img { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: .22em; }
p { margin: 0 0 16px; max-width: 70ch; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.18; text-wrap: balance; }
h1, h2 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: clamp(32px, 4vw, 48px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 17px; font-weight: 600; }
ul, ol { margin: 0 0 16px; padding-inline-start: 24px; }
.reading li, .article li { margin-bottom: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
[id] { scroll-margin-block-start: 24px; }
.muted, .small { color: var(--muted); }
.small { font-size: 14px; }
.wrap { width: 100%; max-width: 1168px; margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; z-index: 5; left: 16px; top: 16px; padding: 8px 16px; background: var(--surface); }
.skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  color: var(--pine);
  font: 700 22px/1.15 var(--font-head);
  text-decoration: none;
}
.brand img { flex: none; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--primary); text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 14px/1.35 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #79202d; }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg); border-color: var(--pine); }

.gift-cover { padding-top: 32px; }
.cover-panel {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.cover-copy { align-self: center; min-width: 0; padding: clamp(24px, 4.5vw, 64px); }
.eyebrow {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cover-copy h1 {
  max-width: 16ch;
  margin-bottom: 16px;
  color: var(--pine);
  font-size: clamp(36px, 4.1vw, 58px);
  line-height: 1.04;
  text-wrap: wrap;
}
.lede { margin-bottom: 0; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cover-art {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--pine);
}
.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.browse { padding-top: 48px; padding-bottom: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 16px; }
.section-heading h2 { color: var(--pine); margin: 0; }
.section-heading p { color: var(--muted); margin: 0; }
.browse-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.browse-grid a {
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.browse-grid a:hover { border-color: var(--primary); color: var(--primary); }
.browse-grid img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; object-position: center 42%; background: var(--line); }
.browse-grid a > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  padding: 8px 12px;
  font: 700 18px/1.2 var(--font-head);
}
.browse-grid a > span span { font: 600 15px/1 var(--font-body); color: var(--primary); }
.price-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.price-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--pine);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.price-nav a:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }

.gift-group { padding: 32px 0 48px; border-top: 1px solid var(--line); }
.group-head { margin-bottom: 24px; }
.group-head h2 { margin-bottom: 8px; color: var(--pine); font-size: clamp(24px, 3vw, 32px); }
.group-head p { margin-bottom: 0; }
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.gift-tag {
  position: relative;
  min-width: 0;
  padding: 36px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.gift-tag::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 16px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
}
.ribbon {
  position: absolute;
  top: -1px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 0 0 6px 6px;
  background: #f0dbc0;
  color: #58361f;
  font: 600 12px/1.5 var(--font-body);
  font-variant-numeric: tabular-nums;
}
.gift-tag h3 { margin-bottom: 6px; }
.gift-tag p { margin: 0; color: var(--muted); font-size: 14px; }

.section { padding-block: 48px; border-top: 1px solid var(--line); }
.section h2 { color: var(--pine); }
.about-list { background: var(--surface); }
.reading, .article { max-width: 840px; }
.reading p:last-child, .section-lead { margin-bottom: 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}
.steps li { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px; color: var(--primary); font: 600 24px/1.2 var(--font-head); }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); }
.faq-list { max-width: 76ch; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding-block: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 24px 16px 0; color: var(--muted); }
.link-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.link-list a { display: block; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--pine); font-weight: 600; text-decoration: none; }
.link-list a:hover { border-color: var(--primary); text-decoration: underline; }
.link-list span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; font-weight: 400; }

.site-footer { background: var(--pine); color: #fffaf2; padding-block: 48px 24px; }
.footer-inner { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 24px 48px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col a, .site-footer .muted, .copyright a { color: #e8e6d8; }
.footer-col a { font-size: 14px; width: fit-content; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--accent); }
.footer-brand { margin: 0; font: 700 24px/1.3 var(--font-head); }
.footer-head { margin: 0 0 4px; font: 600 15px/1.4 var(--font-body); }
.copyright { max-width: none; border-top: 1px solid #689080; padding-top: 16px; margin: 24px 0 0; }

.article { padding-block: 24px 64px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.crumbs span[aria-current] { overflow-wrap: anywhere; }
.article-mast { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article h1 { color: var(--pine); text-wrap: wrap; }
.article-lede { margin: 0; color: var(--muted); font-size: 17px; }
.article-photo { display: none; }
.article[data-page="/gifts-under-10"] { --article-art: url("/_a/cocoa-and-socks.397f7be688.webp"); }
.article[data-page="/gifts-under-25"],
.article[data-page="/gifts-for-coworkers"] { --article-art: url("/_a/waffles-and-ribbon.35e7c6d2b8.webp"); }
.article[data-page="/gifts-under-50"],
.article[data-page="/gifts-for-family"] { --article-art: url("/_a/blanket-and-speaker.504b310704.webp"); }
.article[data-page="/funny-gifts"] { --article-art: url("/_a/cat-mug-and-socks.3167829549.webp"); }
.article[data-page="/rules"],
.article[data-page="/dirty-santa"],
.article[data-page="/yankee-swap"] { --article-art: url("/_a/draw-bowl-and-dice.f4b288793d.webp"); }
.article:is([data-page^="/gifts-"], [data-page="/funny-gifts"], [data-page="/rules"], [data-page="/dirty-santa"], [data-page="/yankee-swap"]) .article-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: 24px;
  align-items: center;
}
.article:is([data-page^="/gifts-"], [data-page="/funny-gifts"], [data-page="/rules"], [data-page="/dirty-santa"], [data-page="/yankee-swap"]) .article-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.12;
  border-radius: var(--radius);
  background: var(--line) var(--article-art) center 54% / cover no-repeat;
}
.article h2 { margin-top: 32px; color: var(--pine); font-size: clamp(24px, 3vw, 30px); }
.article h3 { margin-top: 24px; }
.article blockquote { margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.article blockquote p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
th { background: #efe1d1; }
tbody tr:last-child td { border-bottom: 0; }

.tool-page .article-mast { margin-bottom: 16px; padding-bottom: 0; border: 0; }
.tool-shell { margin: 0 0 32px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.tool-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tool-field label { font-size: 14px; font-weight: 600; color: var(--pine); }
.tool-shell textarea, .tool-shell select {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--text);
  font: inherit;
}
.tool-shell textarea { min-height: 132px; resize: vertical; }
.tool-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.tool-out { margin-top: 16px; padding: 16px; border-radius: 8px; background: var(--bg); font-size: 14px; }
.tool-out .big { display: block; margin-bottom: 8px; color: var(--pine); font: 600 22px/1.2 var(--font-head); }
.tool-list { padding: 0; margin: 0; list-style: none; }
.tool-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tool-list li:last-child { border-bottom: 0; }
.tool-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.tool-list .btn { min-height: 44px !important; }
.tool-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.pill { display: inline-block; white-space: nowrap; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--pine); font-size: 12px; }
.pill-locked { border-color: var(--pine); background: var(--pine); color: white; font-weight: 600; }

@media (max-width: 880px) {
  .site-nav { gap: 12px; }
  .cover-copy { padding: 24px; }
  .gift-grid, .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { gap: 24px; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .header-inner { min-height: 0; align-items: flex-start; flex-direction: column; gap: 0; padding-top: 6px; }
  .site-nav { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 0 6px; }
  .site-nav a { font-size: 13px; }
  .gift-cover { padding-top: 16px; }
  .cover-panel { grid-template-columns: minmax(0, 1fr); }
  .cover-copy { padding: 24px 16px; }
  .cover-copy h1 { font-size: clamp(32px, 7.3vw, 44px); max-width: 18ch; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .cover-art { min-height: 0; aspect-ratio: 1.28; border-radius: 0 0 var(--radius) var(--radius); }
  .cover-photo { object-position: center 48%; }
  .browse, .section { padding-block: 32px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 4px; font-size: 14px; }
  .browse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .browse-grid a > span { font-size: 16px; min-height: 44px; }
  .gift-group { padding: 24px 0 32px; }
  .steps, .gift-grid, .link-list { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 16px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .article:is([data-page^="/gifts-"], [data-page="/funny-gifts"], [data-page="/rules"], [data-page="/dirty-santa"], [data-page="/yankee-swap"]) .article-mast { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .article:is([data-page^="/gifts-"], [data-page="/funny-gifts"], [data-page="/rules"], [data-page="/dirty-santa"], [data-page="/yankee-swap"]) .article-photo { aspect-ratio: 2; }
  .article { padding-block: 16px 32px; }
  .article-mast { margin-bottom: 24px; }
  .crumbs { margin-bottom: 16px; }
  .tool-shell { padding: 16px; }
  .tool-row .tool-field, .tool-row .btn { flex: 1 1 100%; }
}


.gift-pick-photo,
.article img[src^="/_a/gift-pick-"] {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.gift-pick-photo { margin-bottom: 12px; }
.article img[src^="/_a/gift-pick-"] { width: min(100%, 224px); margin-top: 8px; }
.gift-photo-note { color: var(--muted); font-size: 14px; }
.gift-grid { align-items: start; }


.publication-dates { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
