:root {
  color-scheme: light dark;
  --background: #e2d9c9;
  --surface: #faf8f4;
  --surface-soft: #eee8e1;
  --text: #25272a;
  --muted: #696d72;
  --border: #d3c9ba;
  --blue: #79b9e8;
  --blue-strong: #4e9fd9;
  --red: #f06f72;
  --red-strong: #d9575c;
  --button-text: #ffffff;
  --shadow: 0 14px 40px rgba(64, 51, 36, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171a1d;
    --surface: #22262a;
    --surface-soft: #2a3035;
    --text: #f4f5f6;
    --muted: #b9c0c6;
    --border: #3c444b;
    --blue: #74b9e8;
    --blue-strong: #5ca9dc;
    --red: #ef777a;
    --red-strong: #f08b8d;
    --button-text: #101416;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--blue-strong);
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.nav {
  width: min(960px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

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

main {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-icon {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1;
  border-radius: 24%;
  display: block;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  background: var(--red);
  color: var(--button-text);
}

.button-primary:hover {
  background: var(--red-strong);
  color: var(--button-text);
}

.button-secondary {
  border-color: var(--blue-strong);
  color: var(--blue-strong);
  background: transparent;
}

.button-secondary:hover {
  background: var(--surface-soft);
}

.section-title {
  margin: 52px 0 18px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.link-card,
.content-card,
.notice {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.link-card {
  display: block;
  padding: 24px;
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-strong);
}

.link-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.link-card p {
  margin: 0;
  color: var(--muted);
}

.page-heading {
  max-width: 760px;
  margin: 8px auto 28px;
  text-align: center;
}

.page-heading h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.page-heading p {
  color: var(--muted);
}

.content-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
}

.content-card h2 {
  margin-top: 2.2rem;
  color: var(--red-strong);
  font-size: 1.3rem;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card h3 {
  margin-top: 1.6rem;
  font-size: 1.05rem;
}

.content-card p,
.content-card li {
  color: var(--text);
}

.content-card ul {
  padding-left: 22px;
}

.meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.notice {
  max-width: 820px;
  margin: 0 auto 18px;
  padding: 18px 20px;
  border-left: 5px solid var(--blue-strong);
  background: var(--surface-soft);
}

.notice p {
  margin: 0;
}

.placeholder {
  display: inline-block;
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--red-strong);
  font-weight: 650;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-inner {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.error-page {
  max-width: 620px;
  margin: 60px auto;
  text-align: center;
}

@media (max-width: 700px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-end;
    gap: 10px 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-icon {
    max-width: 190px;
  }

  .actions {
    justify-content: center;
  }

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

@media (max-width: 460px) {
  .nav {
    display: block;
  }

  .nav-links {
    margin-top: 12px;
    justify-content: flex-start;
  }

  main {
    padding-top: 28px;
  }

  .hero {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .button {
    width: 100%;
  }
}
