:root {
  --ink: #22231f;
  --muted: #65685f;
  --paper: #fffdf8;
  --panel: #f5f0e7;
  --line: #ddd4c4;
  --rose: #b7495a;
  --green: #577a59;
  --gold: #d3a33f;
  --blue: #4d6f91;
  --shadow: 0 18px 45px rgba(42, 38, 31, 0.14);
}

* { box-sizing: border-box; }

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

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

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--rose);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.95rem;
}

.nav a,
.footer a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.footer a:hover,
.content-list a:hover {
  color: var(--rose);
}

.hero {
  position: relative;
  min-height: clamp(520px, calc(100vh - 120px), 660px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.78) 36%, rgba(255, 253, 248, 0.22) 70%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 80px);
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(2.55rem, 4.3vw, 4.25rem);
}

h2 { font-size: clamp(2rem, 4vw, 3.5rem); }

h3 { font-size: 1.18rem; }

p { color: var(--muted); }

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  font-size: 1.12rem;
}

.hero-actions,
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.78);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 90px) 0;
}

.intro-grid,
.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 40px;
  align-items: center;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.metric-row div {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.metric-row div:last-child { border-right: 0; }

.metric-row strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
}

.metric-row span {
  color: var(--muted);
  font-size: 0.85rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(42, 38, 31, 0.08);
  text-decoration: none;
}

.card:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 26px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.content-list {
  display: grid;
  gap: 16px;
}

.content-list article {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.content-list img {
  width: 132px;
  height: 99px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.content-list a {
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.newsletter {
  width: min(1160px, calc(100% - 36px));
  margin-bottom: 60px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 32px 18px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.page {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  padding: 46px 0 80px;
}

.page-header {
  max-width: 780px;
  padding: 34px 0;
}

.page-header h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(240px, 1fr);
  gap: 42px;
  align-items: start;
}

.article-photo {
  margin: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(42, 38, 31, 0.08);
}

.article-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-photo figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-body h2 {
  margin-top: 42px;
  font-size: 1.9rem;
}

.article-body h3 {
  margin-top: 28px;
}

.article-body li { margin: 9px 0; }

.sidebar {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tool-panel {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(42, 38, 31, 0.08);
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
}

textarea { min-height: 100px; resize: vertical; }

.result {
  margin-top: 18px;
  padding: 16px;
  border-left: 5px solid var(--green);
  background: #f0f6ef;
  font-weight: 800;
}

.checklist {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fffdf8;
}

.print-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: 620px;
    align-items: end;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.5), rgba(255, 253, 248, 0.96) 58%);
  }

  .hero-copy {
    margin: 0 auto;
    padding: 42px 0;
  }

  .intro-grid,
  .newsletter,
  .article-layout,
  .form-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric-row div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-row div:last-child { border-bottom: 0; }

  .sidebar { position: static; }

  .content-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .content-list img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media print {
  .site-header,
  .footer,
  .button,
  .sidebar {
    display: none;
  }

  body { background: #fff; }
  .page { width: 100%; padding: 0; }
}
