:root {
  color-scheme: light;
  --background: #fbf8f2;
  --surface: rgba(255, 255, 255, 0.72);
  --ink: #291a13;
  --muted: #71645d;
  --line: rgba(41, 26, 19, 0.12);
  --accent: #e75f27;
  --accent-dark: #b84116;
  --shadow: 0 24px 80px rgba(91, 52, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 84% -8%, rgba(255, 165, 96, 0.22), transparent 32rem),
    linear-gradient(180deg, #fffdf8 0, var(--background) 38rem);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(197, 75, 22, 0.16);
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

nav a,
footer a,
.text-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"],
footer a:hover,
.text-link:hover {
  color: var(--accent-dark);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(213, 78, 25, 0.2);
  color: white;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
}

.button-small {
  min-height: 40px;
  padding-inline: 17px;
  font-size: 13px;
}

.hero {
  max-width: 900px;
  padding: 112px 0 92px;
}

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

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 930px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
}

.lead {
  max-width: 790px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.content-section {
  grid-column: span 6;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-section:nth-child(3n) {
  grid-column: 3 / span 8;
}

h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.16;
}

.content-section p,
.faq p {
  margin: 22px 0 0;
  color: var(--muted);
}

ul {
  margin: 26px 0 0;
  padding-left: 1.2em;
}

li {
  margin-top: 9px;
  padding-left: 0.35em;
}

li::marker {
  color: var(--accent);
}

.faq {
  max-width: 820px;
  margin: 120px auto 0;
}

.faq > h2 {
  margin-bottom: 30px;
}

details {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 760;
}

footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 48px;
  margin-top: 120px;
  padding: 38px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  max-width: 620px;
  margin: 0;
  font-size: 14px;
}

footer div {
  display: flex;
  gap: 22px;
}

footer small {
  grid-column: 1 / -1;
  font-size: 12px;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-bottom: 18px;
    overflow-x: auto;
  }

  .hero {
    padding: 80px 0 68px;
  }

  .content-section,
  .content-section:nth-child(3n) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

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

  .site-header > .button {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 0;
  }

  nav {
    gap: 18px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-section {
    padding: 26px 22px;
    border-radius: 22px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer div {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
