:root {
  --paper: #fffaf4;
  --ink: #2f3c42;
  --muted: #758187;
  --line: #eadfce;
  --orange: #e98632;
  --orange-soft: #fff0df;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgb(226 182 72 / 0.11), transparent 26rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #8c6512;
  border-radius: 50%;
  background: #f8d66a;
  font-size: 16px;
}

.home-hero {
  width: min(100% - 40px, 760px);
  margin: clamp(70px, 12vh, 130px) auto 130px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #b56a29;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 9vw, 76px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.home-intro {
  max-width: 610px;
  margin: 24px 0 44px;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.55;
}

.link-grid {
  display: grid;
  gap: 14px;
}

.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 108px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(255 255 255 / 0.66);
  box-shadow: 0 8px 30px rgb(83 62 31 / 0.04);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  border-color: #ddc3a3;
  box-shadow: 0 14px 36px rgb(83 62 31 / 0.08);
  transform: translateY(-2px);
}

.link-card:focus-visible,
.button:focus-visible,
.text-link:focus-visible {
  outline: 3px solid rgb(233 134 50 / 0.3);
  outline-offset: 4px;
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #b56a29;
  border-radius: 16px;
  background: var(--orange-soft);
  font-size: 24px;
}

.link-card strong,
.link-card small {
  display: block;
}

.link-card strong {
  margin-bottom: 3px;
  font-size: 18px;
}

.link-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.card-arrow {
  color: var(--orange);
  font-size: 24px;
}

.site-footer {
  display: flex;
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  margin-left: auto;
  text-decoration-color: #d7b58c;
  text-underline-offset: 4px;
}

.document-shell {
  width: min(100% - 40px, 760px);
  margin: 52px auto 110px;
}

.document-header {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.document-header h1 {
  font-size: clamp(42px, 7vw, 62px);
}

.document-subtitle {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.updated {
  margin: 16px 0 0;
  color: #9a744a;
  font-size: 13px;
  font-weight: 600;
}

.document-body {
  padding-top: 22px;
}

.document-section {
  padding: 26px 0;
  border-bottom: 1px solid rgb(234 223 206 / 0.72);
}

.document-section:last-child {
  border-bottom: 0;
}

.document-section h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.document-section p {
  margin: 0 0 12px;
  color: #566268;
}

.document-section p:last-child {
  margin-bottom: 0;
}

.text-link {
  color: #b8631e;
  font-weight: 650;
  text-decoration-color: #e2b78e;
  text-underline-offset: 4px;
}

.support-card {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid #efd5b7;
  border-radius: 26px;
  background: var(--orange-soft);
}

.support-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.support-card p {
  margin: 0 0 22px;
  color: #6e5b4b;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: white;
  border-radius: 14px;
  background: var(--orange);
  box-shadow: 0 8px 20px rgb(233 134 50 / 0.2);
  font-weight: 700;
  text-decoration: none;
}

.note {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 3px solid #e4b84b;
  border-radius: 4px 14px 14px 4px;
  background: #fff7df;
  color: #6f6242;
  font-size: 14px;
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 20px;
  }

  .home-hero {
    margin-top: 68px;
    margin-bottom: 90px;
  }

  .link-card {
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  .card-arrow {
    display: none;
  }

  .site-footer {
    display: grid;
    gap: 6px;
  }

  .site-footer a {
    margin-left: 0;
  }

  .document-shell {
    margin-top: 32px;
  }

  .support-card {
    padding: 24px 20px;
  }
}

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

  .link-card {
    transition: none;
  }
}
