:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --paper-deep: #e9e3d7;
  --ink: #202522;
  --muted: #646a65;
  --line: rgba(32, 37, 34, 0.16);
  --accent: #285f4a;
  --accent-dark: #174634;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(37, 45, 39, 0.09);
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(93, 139, 113, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--paper) 0%, #f8f6f1 58%, var(--paper) 100%);
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  fill: var(--accent);
}

.brand-mark path {
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-width: 2.6;
}

nav { display: flex; gap: 28px; }

nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 620;
  text-decoration: none;
  transition: color 150ms ease;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--ink); }

.intro {
  max-width: 880px;
  padding: clamp(88px, 12vw, 150px) 0 clamp(84px, 10vw, 126px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.principles {
  padding: clamp(60px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2,
.note h2 {
  margin-bottom: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

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

.cards article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(32, 37, 34, 0.1);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
}

.card-number {
  display: block;
  margin-bottom: 54px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.cards h3 {
  margin-bottom: 9px;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.cards p,
.note > p,
.prose > p:not(.eyebrow):not(.lead) {
  color: var(--muted);
}

.cards p { margin-bottom: 0; }

.note {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: end;
  margin-top: 26px;
  margin-bottom: 80px;
  padding: clamp(34px, 6vw, 66px);
  border-radius: 24px;
  background: var(--paper-deep);
}

.note > p {
  max-width: 440px;
  margin-bottom: 3px;
  font-size: 1.02rem;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
}

.article-shell {
  min-height: calc(100vh - 210px);
}

.prose {
  max-width: 760px;
  padding: clamp(82px, 12vw, 140px) 0;
}

.prose h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.prose > p:not(.eyebrow):not(.lead) {
  max-width: 670px;
  font-size: 1.04rem;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 720;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.error-page {
  display: flex;
  min-height: 100vh;
  max-width: 760px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 0;
}

.error-code {
  margin: 78px 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.16em;
}

.error-page h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.error-page > p:not(.error-code) {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer { width: min(100% - 28px, 1120px); }

  .site-header { min-height: 76px; }
  nav { gap: 18px; }
  h1 { letter-spacing: -0.045em; }

  .section-heading,
  .note { grid-template-columns: 1fr; }

  .section-heading { gap: 8px; }
  .cards { grid-template-columns: 1fr; }
  .cards article { min-height: 210px; }
  .card-number { margin-bottom: 30px; }
  .note { gap: 24px; }
  footer { gap: 20px; flex-direction: column; }
}

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