/* =========================================================
   The Quiet Edit — styles.css
   Editorial / minimalist, mobile-first
   ========================================================= */

:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --text: #1E1C1A;
  --muted: #6B645C;
  --line: #E8E3DC;
  --soft: #F2EEE8;
  --accent: #4A2C23;        /* deep chocolate */
  --accent-hover: #2E1913;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --read: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.15em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.65rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
}
.site-nav.is-open { display: block; }
.site-nav a {
  display: flex; align-items: center;
  padding: 14px 0; text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
}
.site-nav a:last-child { border-bottom: 0; }
.pin-link svg { width: 20px; height: 20px; fill: currentColor; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; align-items: center; gap: 34px;
    padding: 0; border: 0; background: none;
  }
  .site-nav a { padding: 0; border: 0; font-size: .8rem; }
}

/* ---------- Intro ---------- */
.intro { padding: 56px 0 36px; text-align: center; }
.intro .eyebrow { margin-bottom: 18px; }
.intro p.lead {
  max-width: 600px; margin: 0 auto;
  font-size: 1.1rem; color: var(--muted);
}
.eyebrow {
  display: inline-block;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Image placeholders (swap for <img>) ---------- */
.ph {
  width: 100%;
  background: linear-gradient(160deg, #EAE3DA 0%, #D9CFC2 100%);
  display: flex; align-items: center; justify-content: center;
  color: #8A7F72; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  overflow: hidden;
}
.ratio-2x3 { aspect-ratio: 2 / 3; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ph img, .cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Card grid ---------- */
.section { padding: 24px 0 64px; }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 28px;
}
.section-title h2 { margin: 0; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 44px 28px; } }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }

.card { display: block; text-decoration: none; }
.card .ph { margin-bottom: 14px; transition: opacity .25s; }
.card:hover .ph { opacity: .88; }
.card .tag { display: block; margin-bottom: 6px; }
.card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.55; margin: 0; }
.card:hover h3 { color: var(--accent); }

.tag {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 14px 24px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent); border-radius: 2px;
  font-family: var(--sans); font-size: .85rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
@media (min-width: 640px) { .btn { display: inline-flex; width: auto; min-width: 240px; } }

/* ---------- Article ---------- */
.post-head { padding: 44px 0 24px; text-align: center; }
.post-head .meta { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.post-hero { max-width: 560px; margin: 0 auto 36px; padding: 0 20px; }
.post-hero figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 10px; }

.disclosure {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 14px 18px; margin: 0 auto 32px;
  font-size: .88rem; color: var(--muted); line-height: 1.6;
}
.disclosure strong { color: var(--text); font-weight: 500; }

.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

.product {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.product-num {
  font-family: var(--serif); font-size: 1.1rem; color: var(--muted);
  display: block; margin-bottom: 4px;
}
.product .tag { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border: 1px solid var(--line); background: var(--surface); }
.product h3 { font-size: 1.7rem; }
.product .ph { margin: 18px 0 22px; }
.product--noimg .product-body { padding-top: 0; }
.product .btn { margin-top: 6px; }

.finds { max-width: 900px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 820px) {
  .product { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
  .product--noimg { grid-template-columns: 1fr; }
  .product .ph { margin: 0; }
  .product-body { min-width: 0; }
}

.more { background: var(--soft); border-top: 1px solid var(--line); padding: 56px 0 64px; margin-top: 32px; }

/* ---------- Pages ---------- */
.page { padding: 56px 0 72px; }
.page h1 { text-align: center; margin-bottom: 1em; }
.page h2 { margin-top: 1.8em; font-size: 1.7rem; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .5em; }
.updated { color: var(--muted); font-size: .88rem; text-align: center; margin-top: -.6em; margin-bottom: 2em; }

.form { display: grid; gap: 18px; margin-top: 28px; }
.form label { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 150px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; text-align: center; }
.footer-logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 14px; display: block; text-decoration: none; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 22px; }
.footer-nav a { font-size: .85rem; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-note { font-size: .8rem; color: var(--muted); max-width: 560px; margin: 0 auto 10px; line-height: 1.6; }
.copy { font-size: .78rem; color: var(--muted); margin: 0; }

/* ---------- Additions for CMS version ---------- */
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn-row { display: grid; gap: 10px; margin-top: 8px; }
.btn-row .btn { margin-top: 0; }
@media (min-width: 640px) { .btn-row { display: flex; flex-wrap: wrap; } }
.jump { margin-bottom: 28px; }
#finds { scroll-margin-top: 80px; }
.product h3 a { text-decoration: none; }
.product h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.embed { margin-top: 32px; margin-bottom: 32px; }
.cat-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 28px; }
.cat-list a { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.cat-list a:hover { color: var(--accent); }
.post-head a.tag { text-decoration: none; }
.empty { text-align: center; color: var(--muted); }
