:root {
  color-scheme: light;
  --cream: #fff7df;
  --paper: #fffdf4;
  --cocoa: #563044;
  --muted: #775f69;
  --leaf: #6ea67d;
  --leaf-dark: #47745a;
  --peach: #f3aa68;
  --rose: #e88c91;
  --line: rgba(86, 48, 68, 0.22);
  --shadow: 0 18px 42px rgba(86, 48, 68, 0.14);
}

* { box-sizing: border-box; }

html { font-family: ui-rounded, "Nunito", "Avenir Next", system-ui, sans-serif; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cocoa);
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 255, 255, 0.88), transparent 30rem),
    linear-gradient(160deg, #fbe5ba 0%, #f9d8b5 38%, #dceac8 100%);
  line-height: 1.65;
}

a { color: var(--leaf-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--cocoa); }
a:focus-visible, button:focus-visible { outline: 4px solid rgba(232, 140, 145, 0.5); outline-offset: 3px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cocoa);
  font-size: 1.08rem;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 2px solid var(--cocoa);
  border-radius: 45% 55% 48% 52%;
  background: var(--peach);
  box-shadow: 0 5px 0 rgba(86, 48, 68, 0.12);
}

nav { display: flex; gap: 1rem; }
nav a { font-weight: 750; text-decoration: none; }

main { width: min(70rem, calc(100% - 2rem)); margin: 1.5rem auto 4rem; }

.hero, .content-card {
  border: 2px solid var(--line);
  border-radius: 2rem;
  background: rgba(255, 253, 244, 0.92);
  box-shadow: var(--shadow);
}

.hero { padding: clamp(2rem, 7vw, 5.5rem); text-align: center; }
.hero .eyebrow { color: var(--leaf-dark); font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { max-width: 14ch; margin: 0.3rem auto 1rem; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 0.96; }
.hero p { max-width: 45rem; margin: 0 auto; color: var(--muted); font-size: clamp(1.05rem, 3vw, 1.3rem); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2rem; }
.button {
  min-height: 3.25rem;
  padding: 0.8rem 1.25rem;
  border: 2px solid var(--cocoa);
  border-radius: 1.25rem;
  background: var(--leaf);
  color: white;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(86, 48, 68, 0.14);
}
.button.secondary { background: var(--peach); color: var(--cocoa); }
.button:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(86, 48, 68, 0.14); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.feature { padding: 1.25rem; border: 2px solid var(--line); border-radius: 1.5rem; background: rgba(255, 253, 244, 0.78); }
.feature h2 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); }

.content-card { max-width: 52rem; margin: 0 auto; padding: clamp(1.4rem, 5vw, 3.25rem); }
.content-card h1 { margin-top: 0; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; }
.content-card h2 { margin-top: 2rem; line-height: 1.2; }
.content-card li + li { margin-top: 0.5rem; }
.updated { color: var(--muted); font-size: 0.95rem; }
.notice { padding: 1rem 1.1rem; border-left: 0.4rem solid var(--leaf); border-radius: 0.8rem; background: #edf5e8; }

footer { width: min(70rem, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 2.5rem; color: var(--muted); text-align: center; }

@media (max-width: 43rem) {
  .site-header { align-items: flex-start; }
  nav { flex-direction: column; gap: 0.25rem; text-align: right; }
  .features { grid-template-columns: 1fr; }
  .hero { border-radius: 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-mark { animation: cozy-bob 4s ease-in-out infinite; }
  @keyframes cozy-bob { 0%, 100% { transform: rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
}
