:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: #e7e1d7;
  --primary: #2f3a2f;
  --primary-soft: #edf1e9;
  --accent: #b98b5f;
  --accent-soft: #f3e8da;
  --shadow: 0 24px 70px rgba(31, 41, 51, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent);
  z-index: 999;
  transition: width 0.1s linear;
}

.site-header {
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(231, 225, 215, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 14px;
  z-index: 20;
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.06);
}

.logo,
.footer-logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: #475467;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--primary-soft);
  color: var(--primary);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 20px;
  cursor: pointer;
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 62px auto 0;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.hero-content {
  padding: 18px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin-bottom: 14px;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero-text {
  max-width: 600px;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions,
.timer-actions,
.article-nav,
.reaction-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 16px 36px rgba(47, 58, 47, 0.18);
}

.btn.secondary {
  background: white;
  color: var(--primary);
  border-color: var(--line);
}

.btn.secondary.light {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  margin-top: 12px;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 10px solid white;
  transform: rotate(1.2deg);
}

.hero-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.intro-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intro-card {
  background: var(--card);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 36px rgba(31, 41, 51, 0.04);
}

.intro-card span {
  display: inline-flex;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 18px;
}

.intro-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 94px auto 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.split-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.text-link,
.read-more,
.back-link {
  font-weight: 900;
  color: var(--primary);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(31, 41, 51, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(31, 41, 51, 0.09);
  border-color: #d7c5b1;
}

.guide-card img {
  height: 230px;
  width: 100%;
  object-fit: cover;
}

.guide-card div {
  padding: 24px;
}

.category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.guide-card p:not(.category) {
  color: var(--muted);
}

.guide-card p:last-of-type {
  margin-bottom: 18px;
}

.routine-section,
.tool-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 96px auto 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
  background: var(--primary);
  color: white;
  padding: 42px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.routine-copy p,
.tool-section p {
  color: rgba(255, 255, 255, 0.74);
}

.routine-copy .eyebrow,
.tool-section .eyebrow {
  color: #d9bd9f;
}

.checklist,
.timer-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 22px;
  display: grid;
  gap: 12px;
}

.checklist label,
.article-checklist label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.88);
}

.checklist input,
.article-checklist input {
  margin-top: 5px;
  accent-color: var(--accent);
}

.tool-section {
  background: #ffffff;
  color: var(--text);
}

.tool-section p {
  color: var(--muted);
}

.tool-section .eyebrow {
  color: var(--accent);
}

.timer-card {
  background: var(--primary-soft);
  border-color: #dce5d7;
  text-align: center;
}

.timer-display {
  font-size: clamp(48px, 8vw, 84px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--primary);
}

.timer-actions {
  justify-content: center;
}

.quote-section {
  width: min(880px, calc(100% - 32px));
  margin: 94px auto 0;
  text-align: center;
}

.quote-section p {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.06em;
  color: var(--primary);
}

.newsletter {
  width: min(var(--max), calc(100% - 32px));
  margin: 74px auto 0;
  background: var(--accent-soft);
  border: 1px solid #ead7c3;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.newsletter p {
  color: #6f5844;
  margin-bottom: 0;
}

.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 62px auto 0;
}

.page-header {
  background: white;
  padding: 42px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 12px;
}

.page-header p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.guide-list-header {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: center;
}

.saved-box {
  background: var(--primary-soft);
  border-radius: 22px;
  padding: 20px;
}

.saved-box p {
  margin-bottom: 0;
}

.filters {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 42px rgba(31, 41, 51, 0.04);
}

.filters input {
  flex: 1;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 18px;
  font: inherit;
  outline: none;
}

.filters input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(185, 139, 95, 0.12);
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn,
.reaction-btn {
  border: 1px solid var(--line);
  background: #fffdf9;
  color: var(--primary);
  border-radius: 999px;
  padding: 12px 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.filter-btn.active,
.reaction-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.article-list-section {
  margin-top: 24px;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
}

.article-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 62px auto 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.article-hero-copy {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.article-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.article-hero p:not(.eyebrow) {
  color: var(--muted);
}

.article-hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 10px solid white;
}

.article-layout {
  width: min(var(--max), calc(100% - 32px));
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  align-items: start;
}

.article-side {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
}

.side-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 42px rgba(31, 41, 51, 0.04);
}

.side-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.side-card li + li {
  margin-top: 10px;
}

.article-content {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: 0 16px 42px rgba(31, 41, 51, 0.05);
}

.article-content h2 {
  font-size: 32px;
  margin-top: 34px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  color: var(--muted);
  font-size: 18px;
}

.article-checklist {
  margin-top: 36px;
  background: var(--primary);
  color: white;
  padding: 26px;
  border-radius: 24px;
}

.article-checklist h2 {
  color: white;
  margin-top: 0;
}

.article-checklist label {
  color: rgba(255, 255, 255, 0.9);
}

.article-nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 28px auto 0;
  justify-content: space-between;
}

.legal-content {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: 0 16px 42px rgba(31, 41, 51, 0.05);
}

.legal-content h2 {
  font-size: 26px;
  margin-top: 32px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--muted);
}

.contact-hero {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 34px;
  align-items: start;
}

.contact-hero > div,
.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.contact-hero p {
  color: var(--muted);
}

.contact-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  background: var(--primary-soft);
}

.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
}

.contact-box a {
  font-weight: 800;
  color: var(--primary);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  font-weight: 800;
  color: var(--primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  background: #fffdf9;
  color: var(--text);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(185, 139, 95, 0.12);
}

.form-note {
  color: var(--muted);
  margin: 0;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 76px auto 24px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 0;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 940px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-side {
    position: static;
  }

  .guide-list-header,
  .filters {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 860px) {
  .site-header {
    border-radius: 24px;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.active {
    display: flex;
  }

  .hero,
  .routine-section,
  .tool-section,
  .contact-hero,
  .article-hero {
    grid-template-columns: 1fr;
  }

  .hero,
  .article-hero {
    margin-top: 44px;
  }

  .hero-image {
    transform: none;
  }

  .hero-image img,
  .article-hero img {
    height: 420px;
  }

  .intro-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .routine-section,
  .tool-section,
  .newsletter,
  .page-header,
  .legal-content,
  .contact-hero > div,
  .contact-form,
  .article-hero-copy,
  .article-content {
    padding: 26px;
  }

  .newsletter,
  .split-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-image img,
  .article-hero img {
    height: 340px;
  }

  .btn {
    width: 100%;
  }

  .guide-card img {
    height: 210px;
  }

  .site-header,
  .hero,
  .intro-grid,
  .section,
  .routine-section,
  .tool-section,
  .newsletter,
  .page,
  .site-footer,
  .article-hero,
  .article-layout,
  .article-nav {
    width: min(100% - 22px, var(--max));
  }

  .filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
