:root {
  color-scheme: light;
  --bg: #f6efe4;
  --surface: #fffaf1;
  --surface-strong: #fffdf8;
  --text: #24160d;
  --muted: #6f5d4a;
  --line: #ead5bd;
  --accent: #ff6846;
  --accent-strong: #4b2a17;
  --accent-soft: #f9eadb;
  --gold: #c99b55;
  --focus: #8a4c13;
  --shadow: 0 20px 54px rgba(73, 41, 20, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 209, 171, 0.62), transparent 30rem),
    linear-gradient(180deg, #fff7ec 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.65;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.site-header {
  background: rgba(255, 253, 248, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(73, 41, 20, 0.05);
}

.site-header__inner,
.site-footer__inner,
.page {
  width: min(100% - 32px, 1080px);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--accent-strong);
  text-decoration: none;
}

.brand__name {
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.brand__label {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  font-size: 0.94rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent-strong);
}

.page {
  padding: 42px 0 56px;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
}

h2 {
  margin: 34px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.48rem;
  font-weight: 500;
}

h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 1.4rem;
}

li + li {
  margin-top: 6px;
}

.subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.updated {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.86);
  color: var(--muted);
  font-size: 0.92rem;
}

.panel {
  margin-top: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.note {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  background: var(--accent-soft);
}

.note strong {
  display: block;
  margin-bottom: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  display: block;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: rgba(255, 104, 70, 0.38);
}

.card h2,
.card h3 {
  margin-top: 0;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

.redirect-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.redirect-box {
  width: min(100%, 560px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .site-header__inner,
  .site-footer__inner,
  .page {
    width: min(calc(100% - 80px), 280px);
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

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

  .panel {
    padding: 20px;
  }

  .note {
    padding: 16px;
  }

  .updated {
    display: inline-flex;
    max-width: 100%;
    flex-wrap: wrap;
    border-radius: 18px;
  }

  h1 {
    font-size: 2rem;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 1.32rem;
  }

  p,
  li,
  a {
    overflow-wrap: anywhere;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .site-header,
  .site-footer {
    display: none;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .panel,
  .card,
  .note {
    box-shadow: none;
  }
}
