:root {
  --accent-primary: #ffc8b6;
  --accent-sage: #7f8f75;
  --border-soft: #e7ded3;
  --ink: #27231f;
  --muted: #70685e;
  --surface: #fffdf8;
  --surface-cream: #f6efe6;
  --surface-green: #e8efe1;
  --surface-peach: #fff4ed;
  --surface-white: #fffefa;
  --text-secondary: #6b6359;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface-cream);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  padding: 26px 0 56px;
}

.wrap {
  width: min(1312px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 0 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-white);
}

.brand,
.nav-links,
.nav-actions,
.actions,
.card-top,
.pill-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  width: fit-content;
  font-family: Newsreader, Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.brand-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-primary);
}

.nav-links {
  justify-content: center;
  gap: 30px;
  color: var(--text-secondary);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
}

.nav-actions {
  justify-content: flex-end;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.button-peach {
  background: var(--accent-primary);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(244, 179, 153, 0.24);
}

.button-light {
  border-color: var(--border-soft);
  background: var(--surface-white);
  color: var(--text-secondary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding-top: 34px;
}

.hero-main,
.hero-side,
.card,
.note {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.hero-main,
.hero-side {
  min-height: 430px;
  padding: 42px;
  background: var(--surface-white);
}

.hero-side {
  background: #f4eee6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
}

h3 {
  font-size: 30px;
  line-height: 1.06;
}

p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.48;
}

.kicker,
.tiny,
.time-pill {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-cream);
  color: var(--muted);
}

.lead {
  max-width: 620px;
  margin-top: 24px;
  font-size: 15px;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.side-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.side-list a,
.side-list span {
  display: block;
  min-height: 38px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(253, 253, 249, 0.82);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.account-form {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.account-form label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.account-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-white);
  color: var(--ink);
  font: inherit;
}

.account-form .button {
  width: fit-content;
  min-height: 42px;
  margin-top: 4px;
  cursor: pointer;
}

.account-feedback {
  min-height: 20px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 12px;
}

.account-feedback[data-state="success"] {
  color: #55704f;
}

.account-feedback[data-state="error"] {
  color: #a84f3e;
}

.section {
  padding-top: 74px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: 48px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p {
  text-align: right;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--surface-white);
}

.card.dark {
  background: var(--ink);
  color: var(--surface-white);
}

.card.dark p,
.card.dark .card-top {
  color: rgba(255, 255, 255, 0.72);
}

.card-top {
  justify-content: space-between;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.time-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-cream);
  color: var(--ink);
}

.card h3 {
  margin-top: 18px;
}

.card p {
  margin-top: 12px;
}

.note {
  margin-top: 20px;
  padding: 22px;
  background: var(--surface-green);
}

.pill-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill-row a,
.pill-row span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(253, 253, 249, 0.72);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.hub-hero {
  padding: 92px 0 70px;
  text-align: center;
}

.hub-hero h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(54px, 6.8vw, 92px);
  line-height: 1.02;
}

.hub-hero .lead {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.58;
}

.hub-hero .pill-row {
  justify-content: center;
  margin-top: 28px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}

.article-card {
  display: block;
}

.article-card.featured {
  grid-row: span 2;
}

.article-art {
  min-height: 188px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-white);
}

.article-card.featured .article-art {
  min-height: 260px;
}

.article-art span {
  max-width: 250px;
  font-family: Newsreader, Georgia, serif;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.02;
}

.art-confidence {
  background: linear-gradient(135deg, var(--surface-green), var(--surface-white));
}

.art-boundaries {
  background: linear-gradient(135deg, var(--surface-peach), var(--surface-white));
}

.art-books {
  background: linear-gradient(135deg, #f5eadf, #fffefa);
}

.art-energy {
  background: linear-gradient(135deg, #e9f0e3, #fff4ed);
}

.art-attachment {
  background: linear-gradient(135deg, #27231f, #504942);
}

.art-attachment span {
  color: var(--surface-white);
}

.art-practice {
  background: linear-gradient(135deg, #fffefa, #e8efe1);
}

.article-body {
  padding-top: 16px;
}

.article-card h3 {
  margin-top: 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.article-card p {
  margin-top: 12px;
  font-weight: 500;
}

.site-footer {
  margin-top: 86px;
  padding: 58px 0 30px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-green);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, 0.7fr));
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Newsreader, Georgia, serif;
  font-size: 28px;
  font-weight: 600;
}

.footer-copy {
  max-width: 420px;
  margin-top: 16px;
}

.privacy-note {
  max-width: 470px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(127, 143, 117, 0.2);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.58);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.footer-column h3 {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span {
  display: block;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(127, 143, 117, 0.2);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .nav,
  .hero,
  .section-head,
  .article-grid,
  .footer-top,
  .grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-actions {
    justify-content: flex-start;
  }

  .hero-main,
  .hero-side {
    min-height: auto;
    padding: 28px;
  }

  .section-head p {
    text-align: left;
  }

  .article-card.featured {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .page {
    padding-top: 14px;
  }

  .wrap {
    width: min(100% - 28px, 1312px);
  }

  .nav {
    gap: 14px;
    padding: 14px;
  }

  .nav-links {
    gap: 16px;
  }

  h1 {
    font-size: 40px;
  }

  .hub-hero {
    padding: 54px 0 42px;
    text-align: left;
  }

  .hub-hero h1 {
    font-size: 42px;
  }

  .hub-hero .pill-row {
    justify-content: flex-start;
  }

  h2 {
    font-size: 34px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .account-form .button {
    width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
