/* ============================================================
   The Soft Nest — shared styles
   Palette: warm putty base, sage green primary, muted clay accent,
   honey highlight. Serif display (Fraunces) + humanist sans (Karla).
   ============================================================ */

:root {
  --bg: #EFEEE6;
  --panel: #E3DFD1;
  --panel-deep: #D8D2BE;
  --ink: #262019;
  --ink-soft: #5C5346;
  --ink-faint: #8A8071;
  --sage: #64795A;
  --sage-deep: #4B5C44;
  --clay: #B96C50;
  --honey: #C99A3F;
  --line: #CFC8B4;
  --radius: 4px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

a {
  color: var(--sage-deep);
  text-decoration-color: var(--sage);
  text-underline-offset: 3px;
}
a:hover { color: var(--clay); }

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

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

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand .dot { color: var(--clay); }

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover { color: var(--clay); }
.nav a.current { color: var(--ink); border-bottom: 1px solid var(--clay); padding-bottom: 3px; }

/* ---------- disclosure bar ---------- */

.disclosure {
  background: var(--sage-deep);
  color: #EFEEE6;
  font-size: 13.5px;
  text-align: center;
  padding: 8px 16px;
}
.disclosure a { color: #fff; text-decoration-color: rgba(255,255,255,.5); }

/* ---------- hero ---------- */

.hero {
  padding: 64px 0 56px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  max-width: 12ch;
}
.hero .lede {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 48ch;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--sage-deep);
  color: #fff;
}
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); }

/* hero art: real photo, cropped to a tall card */
.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- section headings ---------- */

.section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-head h2 {
  font-size: 28px;
}
.section-head .see-all {
  font-size: 14.5px;
  white-space: nowrap;
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card .kicker {
  font-size: 13px;
  color: var(--sage-deep);
}
.card h3 {
  font-size: 20px;
  line-height: 1.2;
}
.card p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}
.card .thumb {
  height: 140px;
  border-radius: 3px;
  background: var(--panel);
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card a.read {
  margin-top: auto;
  font-size: 14.5px;
  color: var(--clay);
  text-decoration: none;
}
.card a.read:hover { text-decoration: underline; }

/* ---------- guides list ---------- */

.guides {
  display: flex;
  flex-direction: column;
}
.guide-row {
  display: grid;
  grid-template-columns: 1fr 3fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.guide-row:first-child { border-top: none; }
.guide-row .topic { color: var(--sage-deep); font-size: 14px; }
.guide-row h3 { font-size: 19px; font-weight: 560; }
.guide-row .arrow { color: var(--ink-faint); }
.guide-row:hover h3 { color: var(--clay); }

/* ---------- trust strip ---------- */

.trust {
  background: var(--panel);
  padding: 40px 0;
}
.trust .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.trust h4 {
  font-family: "Fraunces", serif;
  font-size: 18px;
  margin: 0 0 6px;
}
.trust p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- newsletter ---------- */

.newsletter {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.newsletter .box {
  background: var(--sage-deep);
  color: #EFEEE6;
  border-radius: 8px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.newsletter h2 { color: #fff; font-size: 26px; }
.newsletter p { color: #DCE1D6; margin: 10px 0 0; }
.newsletter form {
  display: flex;
  gap: 10px;
}
.newsletter input {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: none;
  font-family: inherit;
  font-size: 15px;
}
.newsletter button {
  padding: 12px 20px;
  border-radius: var(--radius);
  border: none;
  background: var(--honey);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
.newsletter button:hover { background: #fff; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 30px;
  font-size: 14px;
  color: var(--ink-faint);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer nav {
  display: flex;
  gap: 18px;
}
.site-footer a { color: var(--ink-faint); }
.site-footer a:hover { color: var(--clay); }
.footer-note {
  max-width: 60ch;
  margin: 18px 0 0;
}

/* ---------- article page ---------- */

.article-head {
  padding: 54px 0 30px;
}
.article-head .topic { color: var(--sage-deep); font-size: 14px; }
.article-head h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 12px;
  max-width: 18ch;
}
.article-head .meta {
  margin-top: 16px;
  color: var(--ink-faint);
  font-size: 14.5px;
}

.article-hero {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 28px;
  background: var(--panel);
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  padding-bottom: 56px;
}
.article-body .wrap {
  max-width: 720px;
}
.article-body h2 {
  font-size: 24px;
  margin-top: 42px;
  margin-bottom: 14px;
}
.article-body p {
  color: var(--ink);
  margin: 0 0 18px;
}
.article-body ul {
  padding-left: 22px;
  color: var(--ink);
}
.article-body li { margin-bottom: 8px; }

.callout {
  background: var(--panel);
  border-left: 3px solid var(--clay);
  border-radius: 0 4px 4px 0;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 6px;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- static pages ---------- */

.page-head {
  padding: 56px 0 20px;
}
.page-head h1 { font-size: clamp(30px, 4vw, 44px); max-width: 16ch; }
.page-body { padding-bottom: 60px; }
.page-body .wrap { max-width: 720px; }
.page-body h2 { font-size: 22px; margin-top: 34px; margin-bottom: 12px; }
.page-body p { margin: 0 0 16px; color: var(--ink); }

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 480px;
  margin-top: 24px;
}
.contact-form label {
  font-size: 14px;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}
.contact-form button {
  justify-self: start;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  background: var(--sage-deep);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.contact-form button:hover { background: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; }
  .grid { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: 1fr; }
  .newsletter .box { grid-template-columns: 1fr; }
  .guide-row { grid-template-columns: 1fr; gap: 6px; }
  .nav { display: none; }
  .site-footer .wrap { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
