:root {
  --bg: #fff5ef;
  --bg-accent: #f7e5da;
  --surface: rgba(255, 252, 249, 0.95);
  --surface-strong: #ffffff;
  --surface-dark: #231818;
  --text: #352625;
  --muted: #796160;
  --line: rgba(35, 24, 24, 0.12);
  --brand: #d85e4a;
  --brand-deep: #8b3328;
  --brand-soft: rgba(216, 94, 74, 0.12);
  --accent: #f0b95f;
  --accent-soft: rgba(240, 185, 95, 0.16);
  --shadow: 0 24px 60px rgba(57, 26, 20, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(216, 94, 74, 0.14), transparent 25%),
    radial-gradient(circle at left 18%, rgba(240, 185, 95, 0.14), transparent 20%),
    linear-gradient(180deg, #fffaf7 0%, var(--bg) 46%, #f3dfd4 100%);
  line-height: 1.7;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

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

img,
svg {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--surface-dark);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 247, 0.9);
  border-bottom: 1px solid rgba(35, 24, 24, 0.08);
}

.header-inner,
.footer-inner,
.site-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(216, 94, 74, 0.98), rgba(139, 51, 40, 0.98));
  color: #fff8f5;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(139, 51, 40, 0.24);
}

.brand-text {
  display: grid;
  gap: 0.12rem;
}

.brand-text strong {
  color: var(--surface-dark);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-text span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--surface-dark);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--surface-dark);
  background: rgba(35, 24, 24, 0.06);
}

.page-main {
  padding: 2.25rem 0 4rem;
}

.content-frame {
  position: relative;
  padding: 1.2rem;
  border-radius: calc(var(--radius-lg) + 8px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(247, 229, 218, 0.76));
  box-shadow: var(--shadow);
}

.content-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

article,
.info-page {
  padding: clamp(1.35rem, 2.2vw, 2.6rem);
}

article > :first-child,
.info-page > :first-child {
  margin-top: 0;
}

article h1,
.info-page h1 {
  margin-bottom: 1rem;
  color: var(--surface-dark);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

article h2,
.info-page h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  color: var(--surface-dark);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
}

article h3,
.info-page h3 {
  margin-top: 1.7rem;
  margin-bottom: 0.75rem;
  color: var(--brand-deep);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}

article p,
.info-page p,
.info-page li {
  color: var(--text);
  font-size: 1rem;
}

article ul,
article ol,
.info-page ul,
.info-page ol {
  padding-left: 1.3rem;
}

article li,
.info-page li {
  margin: 0.45rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  display: block;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(35, 24, 24, 0.08);
  background: var(--surface-strong);
}

tbody {
  width: 100%;
}

tr:nth-child(odd) {
  background: rgba(216, 94, 74, 0.04);
}

tr:first-child {
  background: linear-gradient(135deg, rgba(35, 24, 24, 0.96), rgba(79, 42, 34, 0.96));
}

tr:first-child p,
tr:first-child strong {
  color: #fff;
}

td,
th {
  min-width: 160px;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(35, 24, 24, 0.08);
  border-right: 1px solid rgba(35, 24, 24, 0.05);
  vertical-align: top;
}

td:last-child,
th:last-child {
  border-right: 0;
}

td p,
th p {
  margin: 0;
  font-size: 0.96rem;
}

.lede {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8c5b0d;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 238, 230, 0.96));
  border: 1px solid rgba(35, 24, 24, 0.08);
}

.card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--surface-dark);
}

.site-footer {
  padding: 2rem 0 3.5rem;
}

.footer-inner {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  color: rgba(255, 246, 243, 0.84);
  display: grid;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

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

.footer-nav a {
  color: rgba(255, 246, 243, 0.84);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    border: 1px solid rgba(35, 24, 24, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  .site-shell {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .page-main {
    padding-top: 1rem;
  }

  .content-frame {
    padding: 0.7rem;
    border-radius: 24px;
  }

  article,
  .info-page {
    padding: 1rem;
  }

  .brand-text span:last-child {
    letter-spacing: 0.12em;
  }
}
