:root {
  --bg: #f4efe4;
  --paper: #fffaf0;
  --ink: #1f1c18;
  --muted: #665f56;
  --line: #d9ccb8;
  --accent: #8c3b2a;
  --accent-soft: #efe0d0;
  --shadow: 0 22px 50px rgba(58, 39, 23, 0.12);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(201, 158, 119, 0.15), transparent 28%),
    linear-gradient(180deg, #f7f0e5 0%, var(--bg) 100%);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.hero,
.page-header,
.page-block,
.note,
.card-link {
  background: color-mix(in srgb, var(--paper) 94%, white 6%);
  border: 1px solid rgba(140, 59, 42, 0.1);
  box-shadow: var(--shadow);
}

.hero,
.page-header {
  padding: 2rem;
  border-radius: 28px;
}

.eyebrow,
.page-label,
.meta {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
}

.hero h1,
.page-header h1 {
  margin: 0.4rem 0 0.75rem;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  text-wrap: balance;
}

.home-title-line {
  display: block;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.lede,
.page-header p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--accent);
}

.top-nav a:hover,
.card-link:hover {
  text-decoration: underline;
}

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

.card-link {
  display: grid;
  gap: 0.5rem;
  padding: 1.35rem;
  border-radius: 24px;
  text-decoration: none;
}

.card-link strong {
  font-size: 1.45rem;
}

.card-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-content {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.group-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
}

.group-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-block,
.note {
  border-radius: 24px;
  padding: 1.5rem;
}

.page-divider {
  display: inline-block;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

.entry-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry-list li,
.plain-list li,
.source-links li {
  padding: 0.2rem 0;
}

.award-category {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.award-category:last-child {
  border-bottom: 0;
}

.award-category h2,
.section-block h2 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.rank {
  display: inline-block;
  min-width: 4.7rem;
  color: var(--accent);
  font-weight: 700;
}

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

.filter-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.65rem;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
}

.filter-panel {
  margin-top: 1.1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(239, 224, 208, 0.65);
}

.filter-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0;
}

.filter-toggle input {
  margin: 0;
}

.page-filter {
  margin-top: 0;
}

.filter-toggle span {
  line-height: 1.2;
}

.island-filter select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding-right: 0.2rem;
}

.place-name {
  font-weight: 700;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  text-decoration: none;
  font-size: 0.9em;
  vertical-align: text-top;
}

.map-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.place-type {
  color: var(--muted);
  font-style: italic;
}

.tight-list li {
  line-height: 1.45;
}

.uncertain {
  color: var(--accent);
  font-style: italic;
}

.source-links {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
}

.source-links a {
  color: #5a4fdf;
}

@media (max-width: 820px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .site-shell,
  .page-shell {
    width: min(calc(100% - 1rem), var(--max));
    padding-top: 1rem;
  }

  .hero,
  .page-header,
  .page-block,
  .note,
  .card-link {
    border-radius: 20px;
  }

  .filter-toggle {
    width: 100%;
    margin-bottom: 0;
    align-items: start;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(1.7rem, 8.4vw, 2.35rem);
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .filter-stack {
    gap: 0.6rem;
  }

  .filter-toggle {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .filter-panel {
    padding: 0.9rem;
    border-radius: 18px;
  }
}
