:root {
  color-scheme: light;
  --paper: #fffdfa;
  --paper-deep: #f6f1e7;
  --panel: rgba(255, 252, 246, 0.78);
  --card: rgba(255, 255, 255, 0.62);
  --ink: #29241f;
  --muted: #71685d;
  --mist: #e7dfd3;
  --moss: #74846b;
  --cedar: #7a5f42;
  --maple: #b6633a;
  --gold: #d5ae6a;
  --moon: #dfe6ff;
  --moon-glow: rgba(225, 231, 255, 0.44);
  --shadow: 0 24px 70px rgba(64, 48, 32, 0.09);
  --line: rgba(78, 66, 49, 0.14);
  --radius: 34px;
  --max: 1080px;
  font-family: ui-serif, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #0f141a;
  --paper-deep: #141c24;
  --panel: rgba(20, 27, 36, 0.76);
  --card: rgba(24, 32, 42, 0.72);
  --ink: #edf1f8;
  --muted: #aab4c2;
  --mist: #22303d;
  --moss: #9ab89e;
  --cedar: #d9c0a5;
  --maple: #d89167;
  --gold: #e8c58a;
  --moon: #dce6ff;
  --moon-glow: rgba(166, 184, 240, 0.22);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --line: rgba(210, 222, 236, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 8%, rgba(215, 174, 106, 0.14), transparent 27rem),
    radial-gradient(circle at 88% 28%, rgba(116, 133, 106, 0.12), transparent 32rem),
    linear-gradient(180deg, var(--paper) 0%, #fffdf8 46%, #fbf6ee 100%);
  transition: background 280ms ease, color 280ms ease;
}

:root[data-theme='dark'] body {
  background:
    radial-gradient(circle at 18% 8%, var(--moon-glow), transparent 26rem),
    radial-gradient(circle at 84% 24%, rgba(107, 139, 180, 0.16), transparent 32rem),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 45rem),
    linear-gradient(180deg, #0d1319 0%, #101821 50%, #15202a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(70, 56, 37, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 56, 37, 0.018) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 82%, transparent);
  z-index: -4;
}

:root[data-theme='dark'] body::before {
  background-image:
    linear-gradient(rgba(225, 234, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 234, 255, 0.022) 1px, transparent 1px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.14), transparent 7rem),
    radial-gradient(circle at 74% 15%, rgba(255, 255, 255, 0.08), transparent 11rem),
    radial-gradient(circle at 54% 28%, rgba(255, 255, 255, 0.05), transparent 12rem);
  mix-blend-mode: screen;
  transition: opacity 280ms ease;
  z-index: -2;
}

:root[data-theme='dark'] body::after {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(122, 95, 66, 0.55);
  outline-offset: 7px;
  border-radius: 14px;
}

:root[data-theme='dark'] a:focus-visible,
:root[data-theme='dark'] button:focus-visible {
  outline-color: rgba(210, 222, 236, 0.45);
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(122, 95, 66, 0.05) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(116, 133, 106, 0.045) 0 1px, transparent 1px),
    radial-gradient(circle at 55% 18%, rgba(182, 99, 58, 0.035) 0 1px, transparent 1px);
  background-size: 33px 37px, 41px 43px, 53px 47px;
  z-index: -3;
}

:root[data-theme='dark'] .paper-grain {
  opacity: 0.32;
}

.leaf-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.leaf {
  --leaf-size: 16px;
  --leaf-x: 50vw;
  --leaf-delay: 0s;
  --leaf-duration: 18s;
  --leaf-drift: 14vw;
  position: absolute;
  top: -12vh;
  left: var(--leaf-x);
  width: var(--leaf-size);
  height: calc(var(--leaf-size) * 1.55);
  opacity: 0.42;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgba(182, 99, 58, 0.76), rgba(215, 170, 95, 0.65));
  transform-origin: 50% 0;
  animation: falling-leaf var(--leaf-duration) linear infinite;
  animation-delay: var(--leaf-delay);
}

:root[data-theme='dark'] .leaf {
  background: linear-gradient(135deg, rgba(143, 169, 175, 0.48), rgba(216, 224, 255, 0.42));
}

.leaf::after {
  content: "";
  position: absolute;
  inset: 15% 46% 8% 46%;
  border-radius: 999px;
  background: rgba(89, 72, 52, 0.32);
  transform: rotate(-10deg);
}

:root[data-theme='dark'] .leaf::after {
  background: rgba(226, 232, 246, 0.24);
}

@keyframes falling-leaf {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
  }
  32% {
    transform: translate3d(calc(var(--leaf-drift) * 0.55), 32vh, 0) rotate(150deg);
  }
  66% {
    transform: translate3d(calc(var(--leaf-drift) * -0.35), 68vh, 0) rotate(310deg);
  }
  100% {
    transform: translate3d(var(--leaf-drift), 115vh, 0) rotate(520deg);
  }
}

.theme-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 0.95rem 0.7rem 0.75rem;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 14px 32px rgba(44, 36, 27, 0.12);
  backdrop-filter: blur(14px);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, background 240ms ease, border-color 240ms ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

:root[data-theme='dark'] .theme-toggle {
  background: rgba(18, 25, 34, 0.84);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.theme-toggle__icon {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(242, 236, 226, 0.65));
  overflow: hidden;
}

:root[data-theme='dark'] .theme-toggle__icon {
  background: linear-gradient(145deg, rgba(215, 226, 255, 0.18), rgba(96, 122, 154, 0.22));
  box-shadow: inset 0 0 24px rgba(220, 230, 255, 0.12);
}

.theme-toggle svg {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 220ms ease, transform 220ms ease;
}

.icon-moon {
  opacity: 0;
  transform: translateY(10px) scale(0.7);
}

:root[data-theme='dark'] .icon-sun {
  opacity: 0;
  transform: translateY(-10px) scale(0.7);
}

:root[data-theme='dark'] .icon-moon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.theme-toggle__text {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.section-panel {
  position: relative;
  min-height: 74vh;
  margin: 0 0 4rem;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(122, 95, 66, 0.07);
  border-radius: calc(var(--radius) - 12px);
  pointer-events: none;
}

:root[data-theme='dark'] .section-panel::before {
  border-color: rgba(226, 235, 245, 0.06);
}

.hero {
  display: grid;
  align-content: center;
  min-height: 91vh;
}

.eyebrow,
.tag,
time {
  margin: 0 0 0.8rem;
  color: var(--moss);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.55rem, 7vw, 5.6rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
}

p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.85;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
}

.branch-note {
  width: fit-content;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  padding-top: 0.3rem;
  color: var(--cedar);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.12rem;
}

.branch-note a {
  text-decoration: none;
}

.branch-note a:hover,
.title-anchor:hover,
.photo-strip:hover strong {
  color: var(--maple);
}

.hero-visual {
  margin-top: clamp(2rem, 7vw, 5rem);
}

.forest-line {
  width: 100%;
  height: auto;
  overflow: visible;
}

.forest-line path,
.forest-line circle {
  vector-effect: non-scaling-stroke;
}

.forest-line .ground,
.forest-line .tree,
.forest-line .den,
.forest-line .den-door,
.forest-line .den-grass,
.forest-line .river {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-branch 2.6s ease forwards;
}

.forest-line .ground {
  stroke: rgba(102, 78, 56, 0.62);
  stroke-width: 4;
}

.forest-line .river {
  stroke: rgba(131, 170, 177, 0.8);
  stroke-width: 7;
}

.forest-line .trunk {
  stroke: rgba(96, 76, 54, 0.78);
  stroke-width: 5;
}

.forest-line .small {
  stroke-width: 4;
}

.forest-line .branch {
  stroke: rgba(116, 133, 106, 0.72);
  stroke-width: 4;
}

.forest-line .leaf-dot {
  fill: rgba(197, 133, 87, 0.72);
  stroke: rgba(197, 133, 87, 0.28);
  stroke-width: 2;
  opacity: 0;
  animation: leaf-pop 1s ease forwards 1.8s;
}

.forest-line .den {
  fill: rgba(122, 95, 66, 0.08);
  stroke: rgba(122, 95, 66, 0.58);
  stroke-width: 4;
}

.forest-line .den-door {
  stroke: rgba(40, 36, 31, 0.55);
  stroke-width: 4;
}

.forest-line .den-grass {
  stroke: rgba(116, 133, 106, 0.68);
  stroke-width: 3;
}

:root[data-theme='dark'] .forest-line .ground {
  stroke: rgba(205, 212, 224, 0.42);
}

:root[data-theme='dark'] .forest-line .river {
  stroke: rgba(171, 196, 230, 0.68);
}

:root[data-theme='dark'] .forest-line .trunk {
  stroke: rgba(220, 203, 183, 0.72);
}

:root[data-theme='dark'] .forest-line .branch,
:root[data-theme='dark'] .forest-line .den-grass {
  stroke: rgba(155, 184, 160, 0.74);
}

:root[data-theme='dark'] .forest-line .leaf-dot {
  fill: rgba(225, 232, 255, 0.36);
  stroke: rgba(225, 232, 255, 0.18);
}

:root[data-theme='dark'] .forest-line .den {
  fill: rgba(26, 34, 44, 0.38);
  stroke: rgba(220, 227, 237, 0.42);
}

:root[data-theme='dark'] .forest-line .den-door {
  stroke: rgba(235, 241, 248, 0.38);
}

@keyframes draw-branch {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes leaf-pop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(2rem, 5vw, 4.4rem);
}

.title-anchor {
  text-decoration: none;
}

.title-anchor::after {
  content: " #";
  opacity: 0;
  color: var(--gold);
  transition: opacity 180ms ease;
}

.title-anchor:hover::after {
  opacity: 1;
}

.character-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.75fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1rem;
}

.character-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, var(--card), rgba(248, 243, 235, 0.4)),
    radial-gradient(circle at 100% 0%, rgba(215, 170, 95, 0.1), transparent 16rem);
  overflow: hidden;
}

:root[data-theme='dark'] .character-card {
  background:
    linear-gradient(145deg, rgba(24, 32, 42, 0.75), rgba(18, 26, 36, 0.66)),
    radial-gradient(circle at 100% 0%, rgba(180, 197, 230, 0.11), transparent 16rem);
}

.primary-card {
  display: grid;
  grid-row: span 2;
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.brush-frame {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(122, 95, 66, 0.14);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82) 0%, rgba(248, 243, 235, 0.76) 68%, transparent 69%);
}

:root[data-theme='dark'] .brush-frame {
  border-color: rgba(224, 232, 245, 0.12);
  background: radial-gradient(circle, rgba(34, 43, 57, 0.76) 0%, rgba(21, 28, 37, 0.72) 68%, transparent 69%);
}

.fox-glow {
  box-shadow: inset 0 0 0 22px rgba(255, 253, 248, 0.6), 0 24px 60px rgba(182, 99, 58, 0.08);
}

:root[data-theme='dark'] .fox-glow {
  box-shadow: inset 0 0 0 22px rgba(17, 24, 33, 0.66), 0 24px 70px rgba(116, 146, 190, 0.12);
}

.fox-mark {
  width: 64%;
}

.fox-mark path {
  fill: none;
  stroke: rgba(122, 95, 66, 0.82);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme='dark'] .fox-mark path {
  stroke: rgba(224, 233, 246, 0.74);
}

.quiet-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 0;
}

.quiet-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(122, 95, 66, 0.12);
}

:root[data-theme='dark'] .quiet-list div {
  border-top-color: rgba(226, 235, 245, 0.09);
}

.quiet-list dt {
  color: var(--cedar);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiet-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.photo-stack {
  display: grid;
  gap: 0.9rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid rgba(122, 95, 66, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

:root[data-theme='dark'] .photo-strip,
:root[data-theme='dark'] .event-river article {
  background: rgba(24, 32, 42, 0.64);
}

.photo-strip:hover {
  transform: translateX(8px);
  border-color: rgba(182, 99, 58, 0.24);
  background: rgba(255, 253, 248, 0.86);
}

:root[data-theme='dark'] .photo-strip:hover {
  background: rgba(31, 41, 53, 0.9);
  border-color: rgba(178, 196, 228, 0.24);
}

.photo-strip span,
.photo-strip em {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-style: normal;
}

.photo-strip strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 500;
  transition: color 180ms ease;
}

.event-river {
  display: grid;
  gap: 1rem;
  position: relative;
}

.event-river::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 1px;
  background: linear-gradient(var(--mist), rgba(116, 133, 106, 0.5), var(--mist));
}

.event-river article {
  position: relative;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.3rem;
  padding: 1.4rem 1.4rem 1.4rem 3rem;
  border: 1px solid rgba(122, 95, 66, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
}

.event-river article::before {
  content: "";
  position: absolute;
  left: 0.68rem;
  top: 1.8rem;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgba(116, 133, 106, 0.65);
}

.event-river h3 {
  margin-bottom: 0.4rem;
}

.event-river p {
  margin-bottom: 0;
}

.closing {
  max-width: 760px;
  margin: 0 auto 1rem;
  text-align: center;
  padding: clamp(2rem, 7vw, 5rem) 1rem;
}

.closing p:first-child {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 1rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .section-panel {
    min-height: auto;
  }

  .character-grid,
  .primary-card,
  .split-section {
    grid-template-columns: 1fr;
  }

  .brush-frame {
    max-width: 250px;
  }

  .photo-strip {
    grid-template-columns: 38px 1fr;
  }

  .photo-strip em {
    grid-column: 2;
  }

  .event-river article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max));
    padding-top: 1rem;
  }

  .section-panel {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .section-panel::before {
    display: none;
  }

  .hero {
    min-height: 96vh;
  }

  .quiet-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .site-footer {
    width: min(calc(100% - 24px), var(--max));
    flex-direction: column;
  }

  .theme-toggle {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .theme-toggle__text {
    display: none;
  }
}

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

  .leaf-field {
    display: none;
  }
}


.branch-stats {
  gap: 0.85rem;
  margin-top: 0.35rem;
  padding: 0.8rem 1.05rem;
  border: 1px solid rgba(122, 95, 66, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  letter-spacing: 0.03em;
}

:root[data-theme='dark'] .branch-stats {
  background: rgba(24, 32, 42, 0.58);
  border-color: rgba(226, 235, 245, 0.11);
}

.sona-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.sona-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: start;
  min-height: 100%;
}

.sona-card .brush-frame {
  margin-top: 0.2rem;
}

.coyote-glow {
  box-shadow: inset 0 0 0 22px rgba(255, 253, 248, 0.6), 0 24px 60px rgba(131, 170, 177, 0.1);
}

:root[data-theme='dark'] .coyote-glow {
  box-shadow: inset 0 0 0 22px rgba(17, 24, 33, 0.66), 0 24px 70px rgba(156, 199, 215, 0.12);
}

.coyote-mark {
  width: 64%;
}

.coyote-mark path {
  fill: none;
  stroke: rgba(96, 87, 73, 0.82);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme='dark'] .coyote-mark path {
  stroke: rgba(224, 233, 246, 0.74);
}

.text-link {
  display: inline-flex;
  margin-top: 1.35rem;
  color: var(--cedar);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  margin-left: 0.45rem;
  transition: transform 180ms ease;
}

.text-link:hover {
  color: var(--maple);
}

.text-link:hover::after {
  transform: translateX(4px);
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.32fr);
  gap: 1rem;
  align-items: start;
}

.event-card {
  border: 1px solid rgba(122, 95, 66, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

:root[data-theme='dark'] .event-card {
  background: rgba(24, 32, 42, 0.64);
  border-color: rgba(226, 235, 245, 0.1);
}

.event-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.event-list li {
  position: relative;
  padding-left: 1.4rem;
}

.event-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--moss);
  opacity: 0.78;
}

.previous-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.2rem;
}

.upcoming-list {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink);
}

@media (max-width: 860px) {
  .sona-grid,
  .sona-card,
  .events-layout,
  .previous-list {
    grid-template-columns: 1fr;
  }

  .sona-card .brush-frame {
    max-width: 210px;
  }
}

@media (max-width: 560px) {
  .branch-stats {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 4.1rem);
  }
}

/* Link hub overrides */
.link-shell {
  --max: 880px;
  min-height: calc(100vh - 6rem);
  display: grid;
  align-items: center;
  padding: clamp(1.25rem, 5vw, 4rem) 0 2rem;
}

.linktree-panel {
  position: relative;
  padding: clamp(1.35rem, 4.2vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.linktree-panel::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(122, 95, 66, 0.07);
  border-radius: calc(var(--radius) - 12px);
  pointer-events: none;
}

:root[data-theme='dark'] .linktree-panel::before {
  border-color: rgba(226, 235, 245, 0.06);
}

.profile-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-bottom: clamp(1.25rem, 4vw, 2.35rem);
}

.profile-mark {
  width: clamp(88px, 16vw, 132px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(122, 95, 66, 0.14);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82) 0%, rgba(248, 243, 235, 0.76) 68%, transparent 69%);
  box-shadow: inset 0 0 0 14px rgba(255, 253, 248, 0.6), 0 24px 60px rgba(182, 99, 58, 0.08);
}

:root[data-theme='dark'] .profile-mark {
  border-color: rgba(224, 232, 245, 0.12);
  background: radial-gradient(circle, rgba(34, 43, 57, 0.76) 0%, rgba(21, 28, 37, 0.72) 68%, transparent 69%);
  box-shadow: inset 0 0 0 14px rgba(17, 24, 33, 0.66), 0 24px 70px rgba(116, 146, 190, 0.12);
}

.photo-mark {
  overflow: hidden;
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 999px;
}

.compact-fox {
  width: 68%;
}

.profile-copy h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
}

.link-subtitle {
  max-width: 34rem;
  margin-bottom: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.65;
}

.forest-divider {
  position: relative;
  z-index: 1;
  margin: -0.75rem 0 clamp(1.3rem, 4vw, 2.4rem);
  opacity: 0.92;
}

.compact-forest {
  max-height: 180px;
}

.link-groups {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
}

.link-group {
  display: grid;
  gap: 0.85rem;
}

.link-group h2 {
  margin: 0;
  color: var(--cedar);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  min-height: 76px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(122, 95, 66, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(248, 243, 235, 0.46)),
    radial-gradient(circle at 100% 0%, rgba(215, 170, 95, 0.11), transparent 12rem);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.link-card::after {
  content: "↗";
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  transition: color 180ms ease, transform 180ms ease;
}

:root[data-theme='dark'] .link-card {
  background:
    linear-gradient(145deg, rgba(24, 32, 42, 0.78), rgba(18, 26, 36, 0.68)),
    radial-gradient(circle at 100% 0%, rgba(180, 197, 230, 0.1), transparent 12rem);
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(182, 99, 58, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(250, 246, 239, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(215, 170, 95, 0.16), transparent 12rem);
  box-shadow: 0 18px 42px rgba(64, 48, 32, 0.08);
}

:root[data-theme='dark'] .link-card:hover {
  border-color: rgba(178, 196, 228, 0.28);
  background:
    linear-gradient(145deg, rgba(31, 41, 53, 0.94), rgba(22, 31, 42, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(180, 197, 230, 0.15), transparent 12rem);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.link-card:hover::after {
  color: var(--maple);
  transform: translate(2px, -2px);
}

.link-icon {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(122, 95, 66, 0.14);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--cedar);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

:root[data-theme='dark'] .link-icon {
  border-color: rgba(224, 232, 245, 0.12);
  background: rgba(18, 26, 36, 0.7);
}

.link-card strong,
.link-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card strong {
  margin-bottom: 0.18rem;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.link-card small {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
}

.link-footer {
  --max: 880px;
}

@media (max-width: 720px) {
  .profile-card,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    text-align: center;
    justify-items: center;
  }

  .link-card {
    min-height: 72px;
  }
}

@media (max-width: 560px) {
  .link-shell {
    padding-top: 1rem;
  }

  .linktree-panel {
    padding: 1.2rem;
    border-radius: 24px;
  }

  .linktree-panel::before {
    display: none;
  }

  .forest-divider {
    margin-top: 0;
  }

  .link-card {
    border-radius: 20px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

/* Categorized link hub refinements */
.theme-toggle {
  width: 3.8rem;
  height: 3.8rem;
  justify-content: center;
  gap: 0;
  padding: 0.45rem;
}

.theme-toggle__icon {
  width: 2.65rem;
  height: 2.65rem;
}

.theme-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

.linktree-panel {
  background: rgba(255, 252, 246, 0.9);
}

:root[data-theme='dark'] .linktree-panel {
  background: rgba(17, 24, 33, 0.88);
}

.profile-copy h1 {
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.link-groups {
  gap: clamp(1.35rem, 3.5vw, 2rem);
}

.link-group {
  gap: 0.72rem;
}

.link-group h2 {
  width: fit-content;
  padding: 0.42rem 0.74rem;
  border: 1px solid rgba(122, 95, 66, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
  color: #5f4a34;
  box-shadow: 0 10px 24px rgba(64, 48, 32, 0.05);
}

:root[data-theme='dark'] .link-group h2 {
  border-color: rgba(224, 232, 245, 0.15);
  background: rgba(28, 38, 49, 0.78);
  color: #e8d2b9;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.link-card {
  border-color: rgba(92, 70, 49, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(250, 245, 237, 0.84)),
    radial-gradient(circle at 100% 0%, rgba(215, 170, 95, 0.16), transparent 12rem);
  box-shadow: 0 10px 30px rgba(64, 48, 32, 0.055);
}

:root[data-theme='dark'] .link-card {
  border-color: rgba(222, 232, 245, 0.2);
  background:
    linear-gradient(145deg, rgba(37, 48, 61, 0.96), rgba(23, 32, 43, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(180, 197, 230, 0.15), transparent 12rem);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

.link-card strong {
  color: #211c17;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 750;
}

.link-card small {
  color: #62584e;
  font-weight: 500;
}

:root[data-theme='dark'] .link-card strong {
  color: #f5f7fb;
}

:root[data-theme='dark'] .link-card small {
  color: #c3cedc;
}

.link-icon {
  border-color: rgba(92, 70, 49, 0.2);
  background: rgba(255, 253, 248, 0.96);
  color: #684b2f;
}

:root[data-theme='dark'] .link-icon {
  border-color: rgba(224, 232, 245, 0.18);
  background: rgba(12, 19, 27, 0.72);
  color: #ead0ae;
}

.single-link-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 721px) {
  .single-link-grid .link-card {
    max-width: calc(50% - 0.39rem);
  }
}

@media (max-width: 720px) {
  .theme-toggle {
    width: 3.35rem;
    height: 3.35rem;
  }

  .theme-toggle__icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .link-group h2 {
    margin-inline: auto;
  }
}


/* Consistent link icon system */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.link-icon {
  font-size: 0;
}

.link-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
