/* ============================================================
   Celeste Wren — shared styles
   Palette: warm limewash plaster, walnut, aged brass, sage
   ============================================================ */

:root {
  --plaster:   #EBE4D8;   /* base background — warm limewash */
  --linen:     #F4F0E7;   /* lifted card / section */
  --greige:    #B6AB98;   /* mid neutral, rules */
  --walnut:    #372E27;   /* primary text — warm dark brown */
  --walnut-70: #5A4F45;
  --brass:     #9A7838;   /* aged brass accent */
  --brass-dk:  #7E6029;
  --sage:      #6F6E54;   /* dried botanical secondary */
  --shadow:    0 18px 40px -28px rgba(55, 46, 39, 0.55);

  --display: "Fraunces", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--walnut);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brass-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Eyebrow / utility ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  margin: 0 0 14px;
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--walnut); line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; max-width: 64ch; }
.lead { font-size: 1.25rem; color: var(--walnut-70); font-style: italic; font-family: var(--display); }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--greige);
  position: sticky; top: 0; z-index: 40;
  background: rgba(235, 228, 216, 0.86);
  backdrop-filter: blur(8px);
}
.nav {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 20px 28px;
  max-width: var(--maxw); margin: 0 auto;
}
.brand {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--walnut);
}
.brand span { display: block; font-family: var(--body); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--sage); margin-top: 2px; font-weight: 600; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--walnut-70);
}
.nav-links a:hover { color: var(--brass-dk); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; }
.hero .lead { max-width: 52ch; margin-top: 22px; }

/* ---------- Material swatches (signature element) ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.swatch {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 9px;
  border: 1px solid var(--greige);
  border-radius: 999px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  color: var(--walnut-70);
  background: var(--linen);
}
.dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(55,46,39,0.18); }
.dot--limewash  { background: #E7E0D2; }
.dot--boucle    { background: #D8CFBC; }
.dot--travertine{ background: #C9BBA0; }
.dot--brass     { background: #9A7838; }
.dot--oak       { background: #B68A55; }
.dot--linen     { background: #EDE7DA; }
.dot--botanical { background: #6F6E54; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  padding: 14px 26px;
  border: 1px solid var(--walnut);
  color: var(--walnut);
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--walnut); color: var(--plaster); text-decoration: none; }
.btn--brass { border-color: var(--brass); color: var(--brass-dk); }
.btn--brass:hover { background: var(--brass); color: var(--linen); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--linen { background: var(--linen); border-top: 1px solid var(--greige); border-bottom: 1px solid var(--greige); }
.section-head { margin-bottom: 38px; }

/* ---------- Edit grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { background: var(--plaster); border: 1px solid var(--greige); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.section--linen .card { background: var(--plaster); }
.card a.card-img-link { display: block; }
.card-img {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, #DED4C2 0%, #C9BBA0 100%);
  display: flex; align-items: flex-end; justify-content: flex-start;
  position: relative;
}
.card-img .placeholder-note {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--walnut-70);
  text-align: center; padding: 16px;
}
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.card-body { padding: 22px 22px 26px; }
.card .kicker { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-bottom: 9px; }
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--walnut); }
.card p { font-size: 0.95rem; color: var(--walnut-70); margin-bottom: 0; }

/* ---------- Article ---------- */
.article { padding: 72px 0; }
.article-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.article-head .meta { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-top: 18px; }
.article-hero {
  aspect-ratio: 16 / 9; border-radius: 4px; margin: 0 auto 48px; max-width: 900px;
  background: linear-gradient(135deg, #DED4C2 0%, #C9BBA0 60%, #B68A55 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--walnut-70); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 680px; margin: 0 auto; }
.article-body h2 { margin: 44px 0 16px; }
.article-body p { margin-bottom: 1.2em; }

/* ---------- The pieces (shoppable list) ---------- */
.pieces { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--greige); }
.pieces li { padding: 16px 0; border-bottom: 1px solid var(--greige); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pieces .name { font-weight: 600; }
.pieces .desc { color: var(--walnut-70); font-size: 0.95rem; flex: 1; }
.pieces .shop-link { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }

/* ---------- Callout / disclosure box ---------- */
.note {
  background: var(--linen);
  border: 1px solid var(--greige);
  border-left: 3px solid var(--brass);
  padding: 18px 22px; border-radius: 3px;
  font-size: 0.92rem; color: var(--walnut-70);
  margin: 32px auto; max-width: 680px;
}
.note p { margin: 0; max-width: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--walnut); color: var(--plaster); padding: 56px 0 40px; margin-top: 72px; }
.site-footer a { color: #E7DAC2; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-brand { font-family: var(--display); font-size: 1.6rem; }
.footer-col h4 { font-family: var(--body); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--greige); margin: 0 0 14px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; line-height: 2; font-size: 0.95rem; }
.footer-fine { border-top: 1px solid rgba(235,228,216,0.18); margin-top: 40px; padding-top: 22px; font-size: 0.8rem; color: var(--greige); max-width: 70ch; }

/* ---------- Back link ---------- */
.back { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 18px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
  .nav { flex-direction: column; gap: 12px; align-items: flex-start; }
  .nav-links { flex-wrap: wrap; }
  .hero { padding: 56px 0 44px; }
  .pieces li { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

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