:root {
  --paper: #f7f1e7;
  --paper-deep: #eee2d2;
  --ink: #15253a;
  --muted: #5f6874;
  --accent: #e85d3f;
  --accent-dark: #bd412b;
  --line: rgba(21, 37, 58, 0.16);
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(35, 44, 58, 0.09);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid rgba(232, 93, 63, 0.4);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 12px 3px;
  background: var(--accent);
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 23px;
  font-style: italic;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--accent-dark);
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 88px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 68px;
  right: 3%;
  width: min(30vw, 330px);
  aspect-ratio: 1;
  border: 1px solid rgba(232, 93, 63, 0.32);
  border-radius: 50% 50% 12% 50%;
  transform: rotate(12deg);
  background: radial-gradient(circle at 35% 30%, rgba(255, 253, 248, 0.9), rgba(238, 226, 210, 0.45));
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  font-weight: 500;
}

h1 span,
h2 span {
  color: var(--accent);
  font-style: italic;
}

.hero-copy {
  max-width: 660px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.actions,
.text-links,
.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.actions {
  margin-top: 36px;
}

.button {
  min-height: 48px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

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

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

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

.button.secondary {
  background: transparent;
}

.feature-grid {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-card {
  padding: 44px 34px 48px;
}

.feature-card + .feature-card {
  border-left: 1px solid var(--line);
}

.card-number {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card h2 {
  margin: 20px 0 14px;
  font-family: inherit;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.feature-card p,
.language-panel p {
  color: var(--muted);
  margin: 0;
}

.language-panel {
  width: min(960px, calc(100% - 40px));
  margin: 112px auto;
  padding: clamp(34px, 7vw, 72px);
  border-radius: 32px 32px 32px 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--white);
}

.language-panel h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.language-panel p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 26px;
  color: rgba(255, 253, 248, 0.76);
}

.text-links {
  margin-top: 30px;
}

.text-links a {
  color: var(--white);
  font-weight: 750;
}

.document-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.document-hero {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--line);
}

.document-hero h1 {
  max-width: 800px;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  font-weight: 500;
}

.document-hero > p:not(.eyebrow) {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.language-switch {
  margin-top: 30px;
}

.language-switch a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.48);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.document-section {
  padding: 72px 0;
}

.document-section + .document-section {
  border-top: 1px solid var(--line);
}

.document-section > h2 {
  margin-bottom: 36px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 500;
}

.lead {
  max-width: 760px;
  margin: -14px 0 44px;
  color: var(--muted);
  font-size: 1.12rem;
}

.contact-card {
  margin-bottom: 54px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-radius: 24px 24px 24px 6px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-card h3,
.contact-card p {
  margin: 0;
}

.contact-card p {
  max-width: 580px;
  margin-top: 8px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.94rem;
}

.faq-list,
.policy {
  counter-reset: none;
}

.faq-list article,
.policy article {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.faq-list h3,
.policy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.faq-list p,
.policy article p {
  margin: 10px 0 0;
  color: var(--muted);
}

.language-section {
  scroll-margin-top: 24px;
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 110px;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

footer p {
  margin: 0;
}

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

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

  nav {
    gap: 14px;
  }

  .hero,
  .document-shell,
  .feature-grid,
  .language-panel,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding: 72px 0 62px;
  }

  .hero::after {
    opacity: 0.45;
    top: 36px;
    width: 190px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 30px 18px;
  }

  .feature-card + .feature-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .language-panel {
    margin: 70px auto;
    border-radius: 24px 24px 24px 7px;
  }

  .document-hero {
    padding: 64px 0 52px;
  }

  .document-section {
    padding: 56px 0;
  }

  .contact-card {
    align-items: stretch;
    flex-direction: column;
  }

  footer {
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

  .button {
    transition: none;
  }
}
