:root {
  color-scheme: light;
  --bg: #fff7ef;
  --bg-accent: #fde2c5;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: #ffffff;
  --text: #2d2118;
  --muted: #6f5d4f;
  --line: rgba(111, 93, 79, 0.16);
  --brand: #d26d28;
  --brand-deep: #9a4d16;
  --shadow: 0 24px 70px rgba(122, 72, 28, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 202, 146, 0.72), transparent 28rem),
    radial-gradient(circle at top right, rgba(255, 238, 215, 0.92), transparent 24rem),
    linear-gradient(180deg, #fffaf4 0%, var(--bg) 100%);
}

a {
  color: var(--brand-deep);
}

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero,
.page-card,
.info-panel {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.doc-card,
.back-link {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.doc-card {
  display: block;
  text-decoration: none;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: 0 18px 38px rgba(122, 72, 28, 0.08);
}

.doc-card:hover,
.doc-card:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(122, 72, 28, 0.12);
  border-color: rgba(210, 109, 40, 0.3);
}

.doc-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--brand-deep);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-card strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--text);
}

.info-panel {
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
}

.info-panel p,
.meta-row p {
  margin: 0.35rem 0;
}

.page-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  box-shadow: 0 14px 30px rgba(122, 72, 28, 0.07);
}

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

.page-card h2 {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.page-card p,
.page-card li {
  font-size: 1rem;
  line-height: 1.72;
  color: #3e3025;
}

.page-card ul {
  padding-left: 1.2rem;
}

.note {
  padding: 1rem 1.1rem;
  background: rgba(255, 246, 233, 0.95);
  border: 1px solid rgba(210, 109, 40, 0.16);
  border-radius: var(--radius-sm);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.75rem;
  }

  .hero,
  .page-card,
  .info-panel {
    padding: 1.35rem;
    border-radius: 22px;
  }

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

  .page-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .meta-row {
    text-align: left;
  }
}
