:root {
  --bg: #f7f1e3;
  --bg-soft: rgba(255, 250, 242, 0.72);
  --panel: rgba(255, 252, 247, 0.82);
  --line: rgba(54, 39, 20, 0.12);
  --text: #20170f;
  --muted: #6c5a48;
  --accent: #ba5d2c;
  --accent-soft: #fff0dd;
  --shadow: 0 18px 40px rgba(85, 52, 20, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 196, 126, 0.38), transparent 30rem),
    linear-gradient(180deg, #fdf9f1 0%, var(--bg) 56%, #f0e7d8 100%);
  min-height: 100vh;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration-color: rgba(186, 93, 44, 0.4);
  text-underline-offset: 0.18rem;
}

img {
  max-width: 100%;
}

code {
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 240, 221, 0.9);
  font-size: 0.92em;
}

.background-orb {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(3rem);
  opacity: 0.35;
  z-index: -1;
}

.orb-left {
  top: -8rem;
  left: -9rem;
  background: rgba(250, 162, 83, 0.46);
}

.orb-right {
  right: -10rem;
  bottom: 5rem;
  background: rgba(222, 132, 84, 0.28);
}

.site-header,
.site-footer,
main {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 0.8rem;
}

.brand {
  font-family: "Iowan Old Style", "Palatino Linotype", "Source Han Serif SC", serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav a {
  padding: 0.5rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover,
.nav a.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
}

main {
  padding: 1.2rem 0 4rem;
}

.hero,
.page-shell,
.card,
.list-card,
.notice-card,
.timeline-item,
.inline-note {
  backdrop-filter: blur(12px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  padding: 2.6rem;
  border-radius: 2rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Source Han Serif SC", serif;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-copy,
.section-heading p,
.card p,
.list-card p,
.prose p,
.timeline-item p,
.notice-card p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.6rem 0 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: #fff7f0;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-panel div {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(54, 39, 20, 0.08);
}

.metric-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  margin-top: 1.5rem;
}

.section-heading {
  margin-bottom: 1.3rem;
}

.card-grid,
.list-grid,
.timeline {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.list-card,
.timeline-item,
.notice-card,
.inline-note {
  padding: 1.4rem;
  border-radius: 1.4rem;
}

.card a,
.list-card a {
  font-weight: 700;
}

.card-tag,
.notice-title {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-shell {
  border-radius: 2rem;
  padding: 2rem;
}

.centered {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

.prose {
  max-width: 44rem;
}

.prose ul {
  padding-left: 1.25rem;
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.5rem;
}

.inline-note {
  margin-top: 1.6rem;
  background: rgba(255, 240, 221, 0.72);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0 0 2rem;
  color: var(--muted);
}

.reveal {
  animation: rise-fade 640ms ease both;
}

@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .card-grid,
  .list-grid,
  .timeline,
  .split,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-shell {
    padding: 1.45rem;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 1rem;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 0.5rem;
  }

  .nav a {
    padding: 0.45rem 0.75rem;
  }

  main,
  .site-header,
  .site-footer {
    width: min(72rem, calc(100% - 1.1rem));
  }
}
