:root {
  --bg: #0E1613;
  --bg-panel: #172420;
  --ink: #F3EFE6;
  --ink-muted: #9CA9A0;
  --green: #2F5C43;
  --green-soft: #24402E;
  --green-line: rgba(79, 128, 100, 0.55);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Brand is intentionally dark regardless of system theme — tokens still
   redefined per-scheme so the page participates correctly in the host. */
:root:not([data-theme="light"]) {
  --bg: #0E1613;
  --ink: #F3EFE6;
}
:root[data-theme="dark"] {
  --bg: #0E1613;
  --ink: #F3EFE6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}

body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle center lighting, not a decorative gradient wash */
.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%,
      rgba(23, 36, 32, 0.55) 0%,
      rgba(14, 22, 19, 0) 60%),
    radial-gradient(ellipse 120% 90% at 50% 100%,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

.reeds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}
.reeds svg { width: 100%; height: 100%; display: block; }
.reeds path {
  fill: none;
  stroke-linecap: round;
}

.reeds .cluster-left { transform-origin: 4% 100%; }
.reeds .cluster-right { transform-origin: 96% 100%; }

@keyframes sway-left {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(0.6deg); }
}
@keyframes sway-right {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-0.6deg); }
}

.reeds .cluster-left { animation: sway-left 11s ease-in-out infinite; }
.reeds .cluster-right { animation: sway-right 13s ease-in-out infinite; }

main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 34rem;
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 420;
  font-style: normal;
  font-size: clamp(3.25rem, 11vw, 6rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.wordmark em {
  font-style: italic;
  font-weight: 420;
  color: inherit;
}

.rule {
  width: 34px;
  height: 1px;
  margin: 1.6rem 0 1.5rem;
  background: var(--green-line);
  border: none;
}

.subhead {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.6;
  color: var(--ink-muted);
  font-weight: 400;
}

.detail {
  margin: 2.25rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--green);
  font-weight: 500;
}

.detail::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 0.55em;
  vertical-align: middle;
}

.image-container {
  display: flex;
  justify-content: center; 
  align-items: center;   
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .reeds .cluster-left,
  .reeds .cluster-right {
    animation: none;
  }
}

@media (max-width: 420px) {
  .rule { margin: 1.3rem 0 1.2rem; }
  .detail { margin-top: 1.75rem; }
}

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