:root {
  --bg: #fffaf4;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-soft: #fff4e5;
  --text: #183153;
  --muted: #5f6f84;
  --line: #e6dece;
  --shadow-soft: 0 14px 34px rgba(24, 49, 83, 0.07);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --site-width: 1160px;
  --content-width: 760px;
  --cloud-sun: #f8d86b;
  --cloud-pink: #f3b4d5;
  --cloud-mint: #9ce1d5;
  --cloud-sky: #b6d6ff;
  --cloud-peach: #ffcfa8;
  --anchor-offset: 8rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(248, 216, 107, 0.2), transparent 28rem),
    linear-gradient(180deg, #fffaf4 0%, #fffdf9 55%, #fff8f1 100%);
  line-height: 1.65;
}

a {
  color: #1b4d9b;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 244, 0.94);
  border-bottom: 1px solid rgba(24, 49, 83, 0.08);
  backdrop-filter: blur(10px);
}

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

.topbar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(5rem, 9vw, 7rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.nav,
.footer-links,
.home-actions {
  display: flex;
  flex-wrap: wrap;
}

.nav {
  gap: 0.9rem;
}

.nav-link,
.button,
h1,
h2,
h3,
h4,
h5,
h6,
th,
.toc-label {
  font-family: "Avenir Next Condensed", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
}

.nav-link {
  flex: 1 1 10rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 0.95rem 1.15rem;
  border-radius: 2.5rem 2.2rem 2.8rem 2.1rem / 2rem 2.4rem 1.9rem 2.3rem;
  text-decoration: none;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.55;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  opacity: 1;
  filter: saturate(1.05);
  transform: translateY(-1px);
  outline: none;
}

.nav-link.active {
  box-shadow: var(--shadow-soft);
}

.nav-sun {
  background: var(--cloud-sun);
}

.nav-pink {
  background: var(--cloud-pink);
}

.nav-mint {
  background: var(--cloud-mint);
}

.nav-sky {
  background: var(--cloud-sky);
}

.nav-peach {
  background: var(--cloud-peach);
}

.content {
  padding: 2rem 0 3.5rem;
}

.home-stack {
  display: grid;
  gap: 1.5rem;
}

.home-hero-card,
.article-card,
.toc-panel,
.shot-card,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.home-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.8rem);
}

.home-hero-copy {
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
}

h4,
h5,
h6 {
  font-size: 1.35rem;
}

.lede {
  max-width: 28rem;
  margin: 1rem auto 0;
  font-size: 1.12rem;
  color: var(--muted);
}

.home-actions {
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  background: var(--cloud-pink);
  color: var(--text);
  border-color: #e39ac2;
}

.button-secondary {
  background: var(--panel-soft);
  color: var(--text);
  border-color: #f2dcc0;
}

.owner-portrait-wrap {
  display: grid;
  place-items: center;
}

.owner-portrait {
  width: clamp(11rem, 24vw, 15rem);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 10px solid #fff;
  box-shadow: var(--shadow-soft);
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.shot-card {
  overflow: hidden;
  margin: 0;
}

.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-wide {
  aspect-ratio: 16 / 10;
}

.shot-square {
  aspect-ratio: 1 / 1;
}

.shot-portrait {
  aspect-ratio: 4 / 5;
}

.article-card {
  padding: clamp(1.5rem, 2.8vw, 2.6rem);
}

.article-card-home {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.article-card-centered {
  max-width: 980px;
  margin: 0 auto;
}

.article-card-offset {
  margin-left: auto;
}

.article-card p,
.article-card li {
  font-size: 1.04rem;
}

.article-card p,
.article-card ul,
.article-card ol {
  max-width: var(--content-width);
}

.article-card-home p,
.article-card-home ul,
.article-card-home ol {
  margin-left: auto;
  margin-right: auto;
}

.page-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.page-header p {
  margin: 0;
}

.section-block,
.section-block-centered {
  scroll-margin-top: var(--anchor-offset);
}

.section-block + .section-block,
.section-block-centered + .section-block-centered {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}

.section-block-centered {
  text-align: center;
}

.section-block h2,
.section-block-centered h2 {
  margin-bottom: 0.9rem;
}

.article-card h3,
.article-card h4,
.article-card h5,
.article-card h6 {
  margin-top: 1.4rem;
  margin-bottom: 0.7rem;
}

.eyebrow,
.toc-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1b4d9b;
}

.section-heading {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.table-wrap {
  margin: 1.2rem 0 1.5rem;
  overflow-x: auto;
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.content-table th,
.content-table td {
  padding: 1rem 1.05rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.content-table thead th {
  background: #fff8ef;
}

.content-table tbody tr:last-child th,
.content-table tbody tr:last-child td {
  border-bottom: 0;
}

.content-table th.align-center,
.content-table td.align-center {
  text-align: center;
}

.content-table th.align-right,
.content-table td.align-right {
  text-align: right;
}

.content-table.cols-3 {
  min-width: 32rem;
}

.content-table.cols-4 {
  min-width: 40rem;
}

.content-table.cols-5 {
  min-width: 48rem;
}

.content-table.cols-6 {
  min-width: 56rem;
}

.memberships-table th:first-child,
.memberships-table td:first-child {
  width: 22%;
  background: #fff8ef;
}

.memberships-table :is(th, td):nth-child(2) {
  background: #fff5cc;
}

.memberships-table :is(th, td):nth-child(3) {
  background: #ffe4f0;
}

.memberships-table :is(th, td):nth-child(4) {
  background: #e4faf4;
}

.memberships-table :is(th, td):nth-child(5) {
  background: #e6f1ff;
}

.memberships-table :is(th, td):nth-child(6) {
  background: #fff1e2;
}

.memberships-table thead th:not(:first-child) {
  font-size: 1.2rem;
}

.toc-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.toc-panel {
  position: sticky;
  top: 6.5rem;
  padding: 1.2rem 1.1rem;
}

.toc-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.toc-list a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: #fff8ef;
}

.toc-list a:hover,
.toc-list a:focus-visible {
  background: #ffecc7;
  outline: none;
}

.footer {
  padding: 0 0 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff4e9;
  border: 1px solid var(--line);
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  gap: 1rem;
}

@media (max-width: 980px) {
  .home-hero-card,
  .toc-layout,
  .footer-inner,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    order: 2;
  }

  .owner-portrait-wrap {
    order: 1;
  }

  .toc-panel {
    position: static;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 780px) {
  .topbar {
    position: static;
  }

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

  .brand {
    justify-content: center;
  }

  .content {
    padding-top: 1.4rem;
  }

}

@media (max-width: 640px) {
  .nav-link {
    flex-basis: 100%;
  }

  .article-card,
  .home-hero-card {
    padding: 1.3rem;
  }

  .content-table.cols-3 {
    min-width: 30rem;
  }

  .content-table.cols-4 {
    min-width: 36rem;
  }

  .content-table.cols-5 {
    min-width: 42rem;
  }

  .content-table.cols-6 {
    min-width: 48rem;
  }
}
