:root {
  color-scheme: light dark;
  --bg: #f7f2ea;
  --surface: rgba(255, 253, 248, .92);
  --surface-solid: #fffdf8;
  --text: #2f2842;
  --muted: #746d82;
  --accent: #7261a8;
  --accent-dark: #55427f;
  --accent-soft: #e8e0f3;
  --gold: #c39552;
  --wash: #f1e8dc;
  --line: rgba(72, 54, 99, .16);
  --shadow: 0 18px 55px rgba(55, 39, 81, .09);
}

html[data-theme="dark"] {
  --bg: #171421;
  --surface: rgba(34, 29, 47, .94);
  --surface-solid: #221d2f;
  --text: #f8f0ff;
  --muted: #c2b8cc;
  --accent: #b9a8ea;
  --accent-dark: #d9ccff;
  --accent-soft: #322943;
  --gold: #dfb36f;
  --wash: #292331;
  --line: rgba(231, 216, 255, .14);
  --shadow: 0 18px 55px rgba(0, 0, 0, .22);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #171421;
    --surface: rgba(34, 29, 47, .94);
    --surface-solid: #221d2f;
    --text: #f8f0ff;
    --muted: #c2b8cc;
    --accent: #b9a8ea;
    --accent-dark: #d9ccff;
    --accent-soft: #322943;
    --gold: #dfb36f;
    --wash: #292331;
    --line: rgba(231, 216, 255, .14);
    --shadow: 0 18px 55px rgba(0, 0, 0, .22);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(196, 168, 225, .18), transparent 34rem),
    radial-gradient(circle at 92% 28%, rgba(224, 190, 132, .16), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, select { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: .8rem;
  left: .8rem;
  padding: .7rem 1rem;
  border-radius: .6rem;
  color: white;
  background: var(--accent-dark);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
  padding: .75rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}
.brand > span:last-child > span { color: var(--accent); }
.brand-mark {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--gold));
  box-shadow: 0 5px 14px rgba(90, 67, 128, .22);
}
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.site-header nav a:hover { color: var(--accent-dark); }
.header-tools { display: flex; gap: .55rem; }
select {
  max-width: 9.5rem;
  padding: .58rem 2rem .58rem .72rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  color: var(--text);
  background: var(--surface-solid);
}

main { min-height: calc(100vh - 240px); }
.page {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(300px, .97fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  min-height: 520px;
  margin-bottom: 3.5rem;
}
.hero h1, .guide-hero h1, .page-heading h1, .legal h1, .empty-state h1 {
  max-width: 13ch;
  margin: .25rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 6.7vw, 6.4rem);
  font-weight: 500;
  line-height: .97;
  letter-spacing: -.045em;
}
.hero > p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  padding: 1rem;
  transform: rotate(1.5deg);
}
.hero-gallery picture {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 42% 58% 48% 52% / 52% 43% 57% 48%;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-gallery picture:nth-child(2),
.hero-gallery picture:nth-child(3) { transform: translateY(1.2rem); }
.hero-gallery img { aspect-ratio: 1; object-fit: cover; }

.species-card, .sign-entry, .daily-panel, .guide-grid > section, .legal, .empty-state {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.species-card {
  overflow: hidden;
  margin: 0 0 2rem;
  border-radius: 1.5rem;
}
.species-card > header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, var(--wash), transparent);
}
.species-card h2 {
  margin: .15rem 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.species-card h2 a { text-decoration: none; }
.species-card header p:last-child { max-width: 64ch; margin: .3rem 0 0; color: var(--muted); }
.species-mark {
  width: 86px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
.header-star { align-self: start; color: var(--gold); font-size: 1.5rem; }
.sign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.sign-entry {
  min-width: 0;
  padding: 1.25rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.sign-entry h2, .sign-entry h3 { margin: 0 0 .8rem; font-family: Georgia, serif; line-height: 1.1; }
.sign-entry h2 a, .sign-entry h3 a {
  --sign-art-size: 48px;
  display: grid;
  grid-template-columns: var(--sign-art-size) minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}
.sign-entry h2 a {
  --sign-art-size: 58px;
}
.sign-entry .sign-art {
  display: grid;
  place-items: center;
  align-self: center;
  width: var(--sign-art-size);
  height: var(--sign-art-size);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}
.sign-entry .sign-art img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.sign-entry .sign-name {
  min-width: 0;
  line-height: 1.05;
}
.sign-entry p { color: var(--muted); }
.text-link {
  color: var(--accent-dark);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.content-status {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border-left: 4px solid var(--gold);
  border-radius: .4rem;
  color: var(--muted);
  background: var(--wash);
}

.page-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.page-heading h1 { font-size: clamp(3.2rem, 7vw, 6.8rem); }
.page-heading p:last-child { max-width: 65ch; color: var(--muted); font-size: 1.15rem; }
.species-heading img { width: min(220px, 30vw); border-radius: 50%; }
.hub-grid { gap: 1rem; background: transparent; }
.hub-grid .sign-entry { border: 1px solid var(--line); border-radius: 1.1rem; box-shadow: var(--shadow); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: .9rem;
}
.breadcrumbs a { color: var(--accent-dark); }
.guide-hero {
  display: grid;
  grid-template-columns: minmax(230px, 360px) 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: 2rem;
}
.guide-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.guide-hero h1 { max-width: 12ch; }
.guide-hero p:last-child { max-width: 62ch; color: var(--muted); font-size: 1.15rem; }
.daily-panel {
  padding: clamp(1.5rem, 4vw, 2.7rem);
  border-radius: 1.35rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
}
.daily-copy {
  margin: .75rem 0 0;
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.3;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.guide-grid > section { padding: 1.5rem; border-radius: 1rem; }
.guide-grid > section:only-child { grid-column: 1 / -1; }
.guide-grid h2 { font-family: Georgia, serif; font-size: 1.7rem; }
.guide-grid p, .disclaimer { color: var(--muted); }
.disclaimer { max-width: 72ch; margin: 1.5rem 0; }
.button-link {
  display: inline-flex;
  padding: .75rem 1rem;
  border-radius: .8rem;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
}

.legal { max-width: 850px; padding-inline: clamp(1.25rem, 5vw, 4rem); border-radius: 1.4rem; }
.legal h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
.legal h2 { margin: 2.2rem 0 .6rem; font-family: Georgia, serif; font-size: 1.7rem; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent-dark); font-weight: 700; }
.legal-warning, .legal-note {
  padding: .8rem 1rem;
  border-left: 4px solid var(--gold);
  background: var(--wash);
}
.legal-effective { font-size: .85rem; }
.preserve-lines { white-space: pre-line; }
.empty-state { max-width: 760px; padding: 3rem; border-radius: 1.3rem; text-align: center; }
.empty-state h1 { max-width: none; }

footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}
footer p { max-width: 72ch; }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
footer a { color: var(--accent-dark); font-weight: 700; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-header nav { display: none; }
  .header-tools { justify-self: end; }
  .hero-layout { grid-template-columns: 1fr; min-height: auto; }
  .hero-gallery { width: min(560px, 100%); margin-inline: auto; }
  .sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-hero { grid-template-columns: minmax(180px, 280px) 1fr; }
}

@media (max-width: 620px) {
  .site-header { position: static; gap: .7rem; padding: .75rem; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 1.7rem; }
  .header-tools select { width: 6.3rem; padding-right: 1.2rem; }
  .page { width: min(100% - 1rem, 1180px); padding-block: 2rem; }
  .hero-layout { gap: 1rem; margin-bottom: 2rem; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .hero-gallery { padding: .4rem; }
  .species-card > header { grid-template-columns: auto 1fr; }
  .header-star { display: none; }
  .species-mark { width: 62px; }
  .sign-grid { grid-template-columns: 1fr; }
  .page-heading { grid-template-columns: 1fr; }
  .species-heading picture { order: -1; }
  .guide-hero { grid-template-columns: 1fr; }
  .guide-hero picture { width: min(280px, 75vw); margin-inline: auto; }
  .guide-grid { grid-template-columns: 1fr; }
  .legal { padding-inline: 1rem; }
  footer { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
