:root {
  --bg: #f6f1e8;
  --paper: #fffdfa;
  --paper-2: #fbf7f0;
  --text: #2e2923;
  --muted: #766a5c;
  --line: rgba(92, 67, 43, 0.16);
  --accent: #6d1f1d;
  --accent-soft: #a97b52;
  --shadow: 0 18px 42px rgba(58, 40, 24, 0.08);
  --radius: 20px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-size: 16px;
  background:
    radial-gradient(circle at top left, rgba(169, 123, 82, 0.08), transparent 34%),
    linear-gradient(180deg, #f8f3eb 0%, #f4eee5 100%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(248, 243, 235, 0.88);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
  min-width: 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.home-badge {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

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

.brand-block h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}

.subtitle {
  margin: 0.35rem 0 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav .active a {
  background: #efe5d7;
  color: var(--accent);
}

.main-content {
  flex: 1;
  padding: 2rem 0 3rem;
}

.hero-card,
.links-panel {
  background: rgba(255, 253, 250, 0.92);
  border: 1px solid rgba(92, 67, 43, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  margin-bottom: 30px;
}

.section-kicker {
  margin: 0 0 0.5rem 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  font-weight: 600;
}

.hero-copy p:last-child {
  max-width: 62ch;
  margin: 0.9rem 0 0 0;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #f2e7d8;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.links-panel {
  padding: clamp(1.15rem, 2.4vw, 2rem);
  margin-bottom: 30px;
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
}

.links-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links-list li {
  margin: 0;
  min-width: 0;
}

.links-list a {
  display: block;
  height: 100%;
  min-width: 0;
  padding: 14px 1.15rem;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border: 1px solid rgba(92, 67, 43, 0.12);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: break-word;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.links-list a:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 31, 29, 0.28);
  background: linear-gradient(180deg, var(--paper-2) 0%, #f5efe6 100%);
  box-shadow: 0 12px 30px rgba(58, 40, 24, 0.08);
}

.link-title {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  min-width: 0;
}

.link-meta {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
  min-width: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.8);
}

.footer-inner {
  padding: 1.1rem 0 1.5rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .links-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-card,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
  }

  .brand-block h1 {
    font-size: 22px;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(90%, calc(100% - 1.2rem));
  }

  .topbar-inner {
    padding: 0.85rem 0;
  }

  .home-badge {
    width: 48px;
    height: 48px;
  }

  .main-content {
    padding-top: 1.15rem;
  }

  .main-nav ul {
    gap: 0.45rem;
  }

  .main-nav a {
    padding: 0.65rem 0.9rem;
    font-size: 0.94rem;
  }

  .back-link {
    width: 100%;
  }
}
