/* Adapted from Weehawken Recreation Guide styles.css with owner permission.
   Portable shared components only; no third-party UI code. */
:root {
  color-scheme: light dark;
  --paper: #f4f1ea;
  --ink: #555555;
  --muted: #3b3b3b;
  --panel: #f8f6f0;
  --line: #525252;
  --surface: #ffffff;
  --radius: 14px;
  --shadow-low: 2px 2px 0 #5a5a5a;
  --shadow-high: 4px 4px 0 #5a5a5a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #191919;
    --ink: #dfdfdf;
    --muted: #b8b8b8;
    --panel: #242424;
    --line: #b0b0b0;
    --surface: #2c2c2c;
    --shadow-low: 2px 2px 0 #3b3b3b;
    --shadow-high: 4px 4px 0 #3b3b3b;
  }
}

:root[data-theme="light"] {
  --paper: #f4f1ea;
  --ink: #555555;
  --muted: #3b3b3b;
  --panel: #f8f6f0;
  --line: #525252;
  --surface: #ffffff;
  --shadow-low: 2px 2px 0 #5a5a5a;
  --shadow-high: 4px 4px 0 #5a5a5a;
}

:root[data-theme="dark"] {
  --paper: #191919;
  --ink: #dfdfdf;
  --muted: #b8b8b8;
  --panel: #242424;
  --line: #b0b0b0;
  --surface: #2c2c2c;
  --shadow-low: 2px 2px 0 #3b3b3b;
  --shadow-high: 4px 4px 0 #3b3b3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
  overflow-x: clip;
}

a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-style: wavy;
}

.container {
  width: min(1080px, calc(100vw - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 2.5rem 0 1.6rem;
}

.hero .container {
  border: 2px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow-high);
  padding: 1.2rem 1.2rem 1.1rem;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0.35rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

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

.theme-toggle {
  --theme-index: 0;
}

.theme-toggle__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-low);
  padding: 2px;
  min-width: 138px;
}

.theme-toggle__indicator {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc((100% - 4px) / 3);
  height: calc(100% - 4px);
  border-radius: 999px;
  background: var(--panel);
  border: 2px solid var(--line);
  transform: translateX(calc(var(--theme-index) * 100%));
  transition: transform 160ms ease;
}

.theme-toggle__button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0.35rem 0.48rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__button.active {
  color: var(--ink);
}

.theme-toggle__button:focus-visible {
  outline: 2px solid var(--line);
  outline-offset: 2px;
}

.theme-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-block;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-low);
  font-weight: 700;
}

.btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--line);
}

.btn:active,
.btn-ghost {
  background: repeating-linear-gradient(
    -45deg,
    #ece8de,
    #ece8de 4px,
    #f8f6f0 4px,
    #f8f6f0 8px
  );
}

:root[data-theme="dark"] .btn:active,
:root[data-theme="dark"] .btn-ghost {
  background: repeating-linear-gradient(
    -45deg,
    #2a2a2a,
    #2a2a2a 4px,
    #343434 4px,
    #343434 8px
  );
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn:active,
  :root:not([data-theme="light"]) .btn-ghost {
    background: repeating-linear-gradient(
      -45deg,
      #2a2a2a,
      #2a2a2a 4px,
      #343434 4px,
      #343434 8px
    );
  }
}

.card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-low);
}

.card {
  padding: 1rem;
}

.card h2 {
  margin-bottom: 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px dashed #666;
}

.card h3 {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.muted {
  color: var(--muted);
}

.note {
  margin-top: 0.8rem;
  border-left: 3px solid var(--line);
  padding-left: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

details {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0.4rem 0.6rem;
}

summary {
  font-weight: 700;
  cursor: pointer;
}

summary::marker {
  content: "⊕  ";
}

details[open] summary::marker {
  content: "⊖  ";
}

