:root {
  --ink: #eef0df;
  --muted: #aeb3a3;
  --dim: #7c8376;
  --night: #10130f;
  --night-soft: #151914;
  --panel: #1b211b;
  --panel-high: #222a21;
  --line: rgba(219, 184, 105, 0.17);
  --line-strong: rgba(219, 184, 105, 0.34);
  --gold: #dbb869;
  --gold-bright: #f1d99a;
  --moss: #879f66;
  --moss-dark: #2f4939;
  --moss-bright: #b8cf91;
  --paper: #e9dfc8;
  --paper-ink: #2a3027;
  --shadow: 0 28px 80px rgba(3, 8, 4, 0.34);
  --serif: 'Cinzel', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --container: 1180px;
  color-scheme: dark;
}

[data-theme='day'] {
  --ink: #263126;
  --muted: #586657;
  --dim: #707a6e;
  --night: #e8e4d5;
  --night-soft: #f0ecdf;
  --panel: #f7f2e5;
  --panel-high: #fffaf0;
  --line: rgba(77, 91, 61, 0.18);
  --line-strong: rgba(77, 91, 61, 0.36);
  --gold: #9f752e;
  --gold-bright: #76531e;
  --moss: #56734e;
  --moss-dark: #d6e0cb;
  --moss-bright: #3d653d;
  --paper: #fffaf0;
  --paper-ink: #263126;
  --shadow: 0 28px 80px rgba(58, 64, 45, 0.13);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(78, 113, 73, 0.18), transparent 27rem),
    radial-gradient(circle at 88% 42%, rgba(166, 123, 48, 0.08), transparent 30rem),
    var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  transition: color 240ms ease, background-color 240ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: '';
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { 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;
}

:focus-visible {
  outline: 3px solid var(--moss-bright);
  outline-offset: 4px;
}

::selection { background: var(--moss); color: #10130f; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 0.45rem;
  background: var(--gold-bright);
  color: #151914;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.section-shell {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 2.5rem), 1280px);
  min-height: 4.65rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 2.15rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  background: var(--panel);
  clip-path: polygon(50% 0, 94% 24%, 84% 78%, 50% 100%, 16% 78%, 6% 24%);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav-links a, .site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 180ms ease;
}

.nav-links a:hover, .site-footer a:hover { color: var(--gold-bright); }
.nav-links a[aria-current='true'] { color: var(--gold-bright); }

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

.audio-control { display: flex; align-items: center; gap: 0.35rem; }
.volume-wrap {
  width: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: width 220ms ease, opacity 180ms ease;
}
.audio-control:hover .volume-wrap,
.audio-control:focus-within .volume-wrap,
.audio-control.is-open .volume-wrap { width: 4.8rem; opacity: 1; visibility: visible; }
#sound-volume { width: 4.6rem; accent-color: var(--moss-bright); cursor: pointer; }
#sound-toggle[data-state='error'] { color: #d99d8f; border-color: currentColor; }

.icon-button {
  width: 2.35rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.icon-button:hover { color: var(--gold-bright); border-color: var(--line-strong); transform: translateY(-2px); }
.icon-button[aria-pressed='true'] { color: var(--moss-bright); border-color: var(--moss); }

.hero {
  min-height: min(820px, calc(100dvh - 4.65rem));
  padding-block: clamp(4rem, 8vw, 7.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(19rem, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--moss-bright);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.85rem, 6.5vw, 6.1rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero h1 > span {
  display: block;
  margin-top: 0.55rem;
  color: var(--gold);
  font-size: 0.38em;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero-lead {
  max-width: 63ch;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.button {
  min-height: 2.9rem;
  padding: 0.68rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.985); }
.button-primary { background: var(--moss); color: #10150f; border-color: color-mix(in srgb, var(--moss) 78%, white); }
.button-primary:hover { background: var(--moss-bright); }
.button-secondary { background: var(--panel-high); color: var(--gold-bright); border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--gold); }
.button-text { padding-inline: 0.7rem; color: var(--muted); }
.button-text:hover { color: var(--gold-bright); }
.button-light { align-self: flex-start; background: rgba(239, 226, 190, 0.92); color: #1e281f; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold-bright);
  font-size: 0.87rem;
  font-weight: 600;
  text-underline-offset: 0.28rem;
  text-decoration-color: color-mix(in srgb, var(--gold) 45%, transparent);
}

.text-link:hover { text-decoration-color: var(--gold-bright); }

.hero-compass {
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  padding-top: 1.35rem;
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.hero-compass div { display: grid; gap: 0.1rem; }
.hero-compass dt { color: var(--gold-bright); font-family: var(--serif); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.hero-compass dd { margin: 0; color: var(--dim); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 34rem;
  border: 1px solid var(--line);
  border-radius: 46% 46% 1.2rem 1.2rem;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-art::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(to top, rgba(11, 15, 11, 0.82), transparent 52%), linear-gradient(110deg, rgba(19, 47, 36, 0.22), transparent 45%);
}

.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.map-label {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(232, 217, 172, 0.25);
  border-radius: 0.7rem;
  background: rgba(14, 20, 15, 0.72);
  color: #eef0df;
  backdrop-filter: blur(12px);
}

.map-label span { color: #adb5a5; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.map-label strong { font-family: var(--serif); font-size: 0.82rem; font-weight: 600; }

main > .section-shell:not(.hero), .workshop-section, .tools-section { margin-top: clamp(7rem, 13vw, 12rem); }

.camp-compass {
  margin-top: 0 !important;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(15rem, 0.9fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  border-block: 1px solid var(--line);
}
.camp-compass-intro h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.camp-compass-intro > p:last-child { max-width: 58ch; margin: 1rem 0 0; color: var(--muted); font-size: 0.93rem; text-wrap: pretty; }
.camp-routes { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 0.75rem; background: color-mix(in srgb, var(--panel) 76%, transparent); }
.camp-routes a { min-width: 0; padding: 1rem; display: grid; grid-template-columns: auto 1fr; gap: 0 0.75rem; color: var(--ink); text-decoration: none; transition: background 180ms ease, color 180ms ease; }
.camp-routes a:nth-child(odd) { border-right: 1px solid var(--line); }
.camp-routes a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.camp-routes a:hover { background: var(--panel-high); color: var(--gold-bright); }
.camp-routes a > span { grid-row: 1 / 3; color: var(--gold); font-family: var(--serif); font-size: 0.72rem; }
.camp-routes strong { font-size: 0.86rem; font-weight: 600; }
.camp-routes small { color: var(--dim); font-size: 0.71rem; }

.section-heading {
  margin-bottom: clamp(2.3rem, 5vw, 4.2rem);
  padding-bottom: 1.45rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.section-heading h2, .contact-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.section-heading > div > p:last-child {
  max-width: 62ch;
  margin: 0.8rem 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

.section-rune { color: var(--line-strong); font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; }

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

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(4, 8, 5, 0.18);
  transition: transform 260ms ease, border-color 260ms ease;
}

.project-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.project-card h3, .workshop-card h3, .tool-card h3, .note-card h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.18; text-wrap: balance; }
.project-card h3 { font-size: clamp(1.35rem, 2.4vw, 2.25rem); }
.project-card p, .workshop-card p { margin: 0.8rem 0 0; color: var(--muted); text-wrap: pretty; }
.project-copy { position: relative; z-index: 3; padding: clamp(1.25rem, 3vw, 2rem); }

.project-meta {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--dim);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status { max-width: 15rem; padding: 0.28rem 0.48rem; border: 1px solid currentColor; border-radius: 0.24rem; font-size: 0.61rem; letter-spacing: 0.06em; line-height: 1.35; text-align: right; }
.status-live { color: var(--gold); }
.status-active { color: #afd29b; }
.status-developing { color: #9eb8a4; }
.status-paused { color: #b5a58b; }

.project-card-featured {
  grid-column: span 7;
  grid-row: span 2;
  display: grid;
  grid-template-columns: minmax(13rem, 0.82fr) 1fr;
  min-height: 37rem;
}

.project-image { min-height: 100%; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.8,.2,1); }
.project-card-featured:hover .project-image img { transform: scale(1.035); }
.project-card-featured .project-copy { display: flex; flex-direction: column; justify-content: center; }
.card-actions { margin-top: 1.7rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.project-card-radio { grid-column: span 5; min-height: 29rem; display: flex; flex-direction: column; color: #f5f1df; background: #111712; }
.radio-preview-viewport { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #080c09; }
.radio-preview-viewport > img, .radio-preview-viewport > iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.radio-preview-viewport > img { object-fit: cover; }
.radio-preview-viewport > iframe { z-index: 3; border: 0; background: #080c09; }
.radio-preview-signal { position: absolute; right: 1rem; bottom: 0.9rem; z-index: 2; display: flex; align-items: flex-end; gap: 0.2rem; height: 1.25rem; padding: 0.3rem 0.4rem; border-radius: 0.3rem; background: rgba(8, 12, 9, 0.72); }
.radio-preview-signal span { width: 0.18rem; height: 35%; border-radius: 1rem; background: #d8edbd; }
.radio-preview-signal span:nth-child(2) { height: 80%; }
.radio-preview-signal span:nth-child(3) { height: 55%; }
.radio-preview-signal span:nth-child(4) { height: 100%; }
.project-card-radio.is-playing .radio-preview-signal span { animation: radioPulse 760ms ease-in-out infinite alternate; }
.project-card-radio.is-playing .radio-preview-signal span:nth-child(2) { animation-delay: -220ms; }
.project-card-radio.is-playing .radio-preview-signal span:nth-child(3) { animation-delay: -430ms; }
@keyframes radioPulse { to { height: 100%; } }
.project-card-radio .project-copy { position: relative; flex: 1; padding: 1.45rem; background: linear-gradient(145deg, #151d16, #0e140f); }
.project-card-radio .project-meta { color: #e7e1cf; }
.project-card-radio .project-meta > span:first-child { color: #f2e9d0; text-shadow: 0 1px 2px #000; }
.project-card-radio .status-active { color: #d9efbd; background: rgba(92, 124, 74, 0.32); border-color: #aacb8a; }
.project-card-radio h3 { color: #fff8e7; font-size: 1.45rem; }
.project-card-radio p { color: #d6d9cc; font-size: 0.9rem; }
.radio-preview-controls { margin-top: 1.1rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; }
.radio-play-button, .radio-playlist-chip { min-height: 2.65rem; border: 1px solid rgba(218, 235, 192, 0.3); border-radius: 0.5rem; }
.radio-play-button { padding: 0.55rem 0.75rem; display: inline-flex; align-items: center; gap: 0.45rem; background: #d9efbd; color: #142016; font-size: 0.76rem; font-weight: 700; cursor: pointer; }
.radio-play-button:hover { background: #ecf8dc; }
.radio-play-button[aria-pressed='true'] { background: #f1d99a; }
.radio-playlist-chip { padding: 0.45rem 0.7rem; display: flex; align-items: center; gap: 0.5rem; background: #222b23; color: #f3f0e5; font-size: 0.75rem; line-height: 1.25; }
.radio-playlist-chip > span:first-child { color: #d9efbd; font-size: 1.15rem; }
.radio-preview-footer { margin-top: 0.8rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.radio-preview-footer p { margin: 0; color: #aebaa8; font-size: 0.7rem; }
.radio-preview-footer .text-link { flex-shrink: 0; color: #f1d99a; font-size: 0.74rem; }

.project-card-compact { grid-column: span 5; min-height: 15rem; display: grid; grid-template-columns: 0.44fr 1fr; }
.project-card-diary { background: linear-gradient(130deg, var(--panel-high), var(--panel)); }
.project-icon { display: grid; place-items: center; color: var(--gold); font-family: var(--serif); font-size: 4rem; background: radial-gradient(circle, rgba(219, 184, 105, 0.12), transparent 62%); }
.project-card-chibi img { width: 100%; height: 100%; object-fit: cover; }
.project-card-compact h3 { font-size: 1.28rem; }
.project-card-compact p { font-size: 0.9rem; }

.workshop-section, .tools-section {
  padding-block: clamp(5.5rem, 10vw, 9rem);
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--night-soft) 90%, var(--moss-dark));
}

.workshop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.workshop-card { min-height: 29rem; padding: clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: space-between; border-radius: 1rem; background: linear-gradient(145deg, var(--panel-high), var(--panel)); border: 1px solid var(--line); }
.workshop-card-warm { background: linear-gradient(145deg, color-mix(in srgb, var(--panel-high) 86%, #60491f), var(--panel)); }
.workshop-card-musecalendar { background: linear-gradient(145deg, color-mix(in srgb, var(--panel-high) 82%, #45315c), var(--panel)); }
.workshop-card-timenest { background: linear-gradient(145deg, color-mix(in srgb, var(--panel-high) 82%, #8d684f), var(--panel)); }
.workshop-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.workshop-glyph { font-size: 3rem; filter: saturate(0.78); }
.workshop-app-icon { width: 5rem; aspect-ratio: 1; border: 1px solid var(--line-strong); border-radius: 1rem; object-fit: cover; box-shadow: 0 12px 30px rgba(4, 8, 5, 0.24); }
.workshop-number { align-self: flex-end; color: var(--line-strong); font-family: var(--serif); font-size: 4rem; line-height: 1; }
.workshop-card h3 { font-size: clamp(1.7rem, 3.5vw, 3.2rem); }
.workshop-card p { max-width: 52ch; }
.quiet-note { margin-top: 1.5rem; display: inline-block; color: var(--dim); font-size: 0.77rem; letter-spacing: 0.08em; text-transform: uppercase; }
.workshop-card .button { margin-top: 1.7rem; }
.workshop-store-link { align-self: flex-start; }
.workshop-store-link + .quiet-note { display: block; margin-top: 0.9rem; }

.section-heading-notes { align-items: center; }
.filter-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem; }
.filter-button { padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 0.4rem; background: transparent; color: var(--muted); font-size: 0.78rem; cursor: pointer; transition: color 180ms ease, background 180ms ease, border-color 180ms ease; }
.filter-button:hover { color: var(--gold-bright); border-color: var(--line-strong); }
.filter-button.is-active { color: #10150f; background: var(--moss); border-color: var(--moss); }

.notes-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.notes-loading, .notes-error { grid-column: 1 / -1; color: var(--muted); }
.note-card { grid-column: span 4; min-height: 19rem; padding: 1.5rem; display: flex; flex-direction: column; border: 1px solid rgba(67, 57, 39, 0.18); border-radius: 0.45rem 0.9rem 0.5rem 1rem; background: var(--paper); color: var(--paper-ink); box-shadow: 0 18px 42px rgba(4, 8, 5, 0.18); transform: rotate(var(--rotation, 0deg)); transition: transform 220ms ease, box-shadow 220ms ease; }
.note-card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 24px 54px rgba(4, 8, 5, 0.26); }
.note-card:nth-child(2n) { --rotation: 0.35deg; }
.note-card:nth-child(3n) { --rotation: -0.3deg; }
.note-card img { width: 100%; height: auto; max-height: 24rem; margin-bottom: 1.15rem; border-radius: 0.35rem; object-fit: contain; background: rgba(66, 73, 61, 0.08); }
.note-category { color: #52705a; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.note-card h3 { margin-top: 0.65rem; font-size: 1.15rem; }
.note-card p { display: -webkit-box; margin: 0.75rem 0 1.5rem; overflow: hidden; color: #5c6359; font-size: 0.89rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.note-card button, .note-card summary { margin-top: auto; align-self: flex-start; padding: 0; border: 0; border-bottom: 1px solid rgba(48, 72, 54, 0.4); background: transparent; color: #334d3b; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.note-card button:hover, .note-card summary:hover { border-color: #334d3b; }
.note-card details { margin-top: auto; }
.note-card details p { display: block; margin: 0.75rem 0 0; -webkit-line-clamp: unset; }

.camp-note { margin-top: clamp(4rem, 8vw, 7rem) !important; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.8rem; border: 1px solid var(--line); border-radius: 0.6rem; background: color-mix(in srgb, var(--panel) 76%, transparent); }
.camp-note > span { color: var(--gold); }
.camp-note p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.camp-note strong { margin-right: 0.45rem; color: var(--ink); }

.affiliate-note { max-width: 72ch; margin: -2.2rem 0 2rem; color: var(--dim); font-size: 0.8rem; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--panel); }
.tool-card img { width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.tool-card > div { height: 100%; padding: 1.35rem; display: flex; flex-direction: column; }
.tool-card span { color: var(--moss-bright); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.tool-card h3 { margin-top: 0.45rem; font-size: 1.15rem; }
.tool-card p { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.88rem; }
.tool-card .affiliate-link { width: 100%; margin-top: auto; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.tool-card .affiliate-link span { color: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; }

.contact-section { margin-bottom: clamp(7rem, 13vw, 12rem); }
.contact-card { position: relative; overflow: hidden; padding: clamp(2rem, 7vw, 6rem); border: 1px solid var(--line-strong); border-radius: 1rem; background: linear-gradient(125deg, color-mix(in srgb, var(--panel) 85%, var(--moss-dark)), var(--panel)); text-align: center; box-shadow: var(--shadow); }
.contact-card::before { position: absolute; top: -7rem; left: 50%; width: 28rem; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; content: ''; transform: translateX(-50%); box-shadow: 0 0 0 3rem rgba(219, 184, 105, 0.015), 0 0 0 6rem rgba(219, 184, 105, 0.015); }
.contact-card > * { position: relative; }
.contact-card p:not(.eyebrow) { max-width: 54ch; margin: 1.25rem auto 1.7rem; color: var(--muted); }
.contact-address { margin-top: 0.8rem; display: block; color: var(--dim); font-size: 0.76rem; }

.site-footer { padding-block: 2.2rem; border-top: 1px solid var(--line); background: var(--night-soft); }
.footer-shell { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.8rem 2rem; }
.footer-shell p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.footer-shell strong { color: var(--gold-bright); font-family: var(--serif); }
.footer-shell > div { display: flex; gap: 1.4rem; }
.footer-shell .copyright { grid-column: 1 / -1; color: var(--dim); font-size: 0.7rem; }

.note-dialog {
  width: min(calc(100% - 2rem), 820px);
  max-height: min(88dvh, 860px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(67, 57, 39, 0.25);
  border-radius: 0.8rem;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
}

.note-dialog::backdrop { background: rgba(5, 8, 5, 0.78); backdrop-filter: blur(8px); }
.dialog-shell { position: relative; max-height: inherit; overflow-y: auto; }
.dialog-close { position: sticky; top: 0.8rem; z-index: 2; float: right; width: 2.5rem; aspect-ratio: 1; margin: 0.8rem 0.8rem -3.3rem 0; border: 1px solid rgba(42, 48, 39, 0.18); border-radius: 50%; background: rgba(242, 235, 218, 0.9); color: #293127; font-size: 1.35rem; cursor: pointer; }
.dialog-image { background: rgba(66, 73, 61, 0.08); }
.dialog-image img { width: 100%; max-height: min(72dvh, 44rem); object-fit: contain; }
.dialog-copy { padding: clamp(1.5rem, 5vw, 3.4rem); }
.dialog-copy h2 { margin: 0.65rem 0 1.5rem; font-family: var(--serif); font-size: clamp(1.55rem, 4vw, 2.7rem); line-height: 1.15; }
.dialog-content { color: #4e574d; line-height: 1.78; white-space: pre-line; }
.dialog-content p { margin: 0 0 1em; }

@media (max-width: 980px) {
  .nav-shell { grid-template-columns: auto 1fr auto; }
  .nav-links { order: 3; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding: 0 0 0.7rem; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-actions { justify-self: end; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding-top: 2rem; }
  .hero-art { min-height: 31rem; max-height: 42rem; border-radius: 16rem 16rem 1rem 1rem; }
  .camp-compass { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: 1 / -1; }
  .project-card-radio, .project-card-compact { grid-column: span 6; }
  .project-card-compact { grid-template-columns: 1fr; }
  .project-card-compact > img { height: 14rem; }
  .project-card-diary { grid-template-columns: 0.35fr 1fr; }
  .note-card { grid-column: span 6; }
}

@media (max-width: 720px) {
  .section-shell, .nav-shell { width: min(calc(100% - 1.25rem), var(--container)); }
  .nav-shell { gap: 0.8rem; }
  .brand { font-size: 0.86rem; }
  .brand-mark { width: 1.9rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { white-space: nowrap; }
  .audio-control:hover .volume-wrap { width: 0; opacity: 0; visibility: hidden; }
  .audio-control:focus-within .volume-wrap,
  .audio-control.is-open .volume-wrap { width: 4rem; opacity: 1; visibility: visible; }
  #sound-volume { width: 3.8rem; }
  .hero { padding-block: 3.5rem 5rem; gap: 3rem; }
  .hero h1 { font-size: clamp(2.55rem, 14vw, 4.5rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-compass { justify-content: space-between; gap: 0.8rem; }
  .hero-compass dd { max-width: 8ch; }
  .hero-art { min-height: 26rem; }
  .camp-compass { margin-top: 1.5rem !important; padding-inline: 0; }
  .map-label { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  main > .section-shell:not(.hero), .workshop-section, .tools-section { margin-top: 6.5rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .section-rune { display: none; }
  .featured-grid, .notes-grid { display: flex; flex-direction: column; }
  .project-card-featured { display: flex; flex-direction: column; min-height: auto; }
  .project-card-featured .project-image { height: 21rem; }
  .project-card-radio { min-height: 28rem; }
  .project-card-compact, .project-card-diary { display: grid; grid-template-columns: 0.36fr 1fr; }
  .project-card-compact > img { height: 100%; min-height: 16rem; }
  .project-icon { min-height: 16rem; }
  .workshop-grid, .tools-grid { grid-template-columns: 1fr; }
  .workshop-card { min-height: 25rem; }
  .radio-preview-controls { grid-template-columns: 1fr; }
  .radio-play-button { justify-content: center; }
  .radio-preview-footer { align-items: flex-start; flex-direction: column; }
  .section-heading-notes .filter-group { justify-content: flex-start; }
  .note-card { min-height: 17rem; transform: none; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-shell > div { flex-wrap: wrap; }
  .footer-shell .copyright { grid-column: auto; }
}

@media (max-width: 480px) {
  .brand > span:last-child { display: none; }
  .camp-routes { grid-template-columns: 1fr; }
  .camp-routes a:nth-child(odd) { border-right: 0; }
  .camp-routes a:not(:last-child) { border-bottom: 1px solid var(--line); }
  .project-card-compact, .project-card-diary { grid-template-columns: 1fr; }
  .project-card-compact > img, .project-icon { height: 13rem; min-height: 0; }
  .hero-art { min-height: 23rem; }
  .hero-compass dt { font-size: 1.05rem; }
  .hero-compass dd { font-size: 0.6rem; }
}

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