:root {
  --bg: #e8fff5;
  --paper: #fffef5;
  --text: #1c3657;
  --muted: #6b7b8d;
  --accent: #e63845;
  --accent2: #219ebd;
  --amber: #ffb803;
  --shadow: rgba(28, 54, 87, 0.12);
  --rail: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f7fffb 0%, var(--bg) 45%, #d4f2f5 100%);
  line-height: 1.55;
}

.shell {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--paper);
  border-right: 3px solid var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  z-index: 10;
}

.rail-brand {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  display: grid;
  place-items: center;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.rail-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.rail-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
}

.rail-tab:hover,
.rail-tab.is-active {
  background: rgba(33, 158, 189, 0.12);
  color: var(--text);
}

.rail-icon { font-size: 1.1rem; line-height: 1; }

.main {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  max-width: 980px;
}

.section {
  padding: 3rem 0;
  border-bottom: 2px dashed rgba(28, 54, 87, 0.12);
}

.intro { max-width: 34rem; margin-bottom: 2rem; }
.intro-left { text-align: left; margin-right: auto; }
.intro-right { text-align: right; margin-left: auto; }
.intro-center { text-align: center; margin-inline: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent2);
}

h1, h2, h3 {
  font-family: ui-rounded, system-ui, sans-serif;
  line-height: 1.08;
  margin: 0.4rem 0 0.75rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 38ch; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-art img {
  width: 100%;
  border-radius: 18px;
  border: 3px solid var(--text);
  box-shadow: 8px 8px 0 var(--shadow);
}

.window-frame {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: center;
  background: var(--paper);
  border: 3px solid var(--text);
  border-radius: 22px;
  padding: 0.75rem;
  box-shadow: 12px 12px 0 rgba(230, 56, 69, 0.18);
  max-width: 320px;
}

.window-chrome {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.window-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.window-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 2px solid rgba(28, 54, 87, 0.15);
}

.cork-board {
  position: relative;
  min-height: 420px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35), transparent 40%),
    linear-gradient(145deg, #c9a46d, #b8894f);
  border: 3px solid var(--text);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: inset 0 0 0 8px rgba(90, 58, 24, 0.15);
}

.note {
  position: absolute;
  width: min(280px, 42vw);
  background: var(--paper);
  padding: 1rem 1.1rem;
  border: 2.5px solid var(--text);
  box-shadow: 4px 4px 0 var(--shadow);
  transform: rotate(var(--rot, 0deg));
}

.note h3 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--accent); }
.note p { margin: 0; font-size: 0.92rem; }
.note-1 { top: 8%; left: 6%; --rot: -3deg; }
.note-2 { top: 34%; right: 8%; --rot: 2deg; background: #f3fbff; }
.note-3 { bottom: 10%; left: 18%; --rot: -1.5deg; width: min(300px, 48vw); }

.pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--text);
}
.pin-a { top: 6%; left: 28%; }
.pin-b { top: 32%; right: 22%; }
.pin-c { bottom: 28%; left: 40%; }

.stacked-shots {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stacked-shots figure {
  margin: 0;
  text-align: center;
}

.stacked-shots img {
  width: min(100%, 420px);
  border-radius: 16px;
  border: 3px solid var(--text);
  box-shadow: 0 18px 40px var(--shadow);
}

.stacked-shots figcaption {
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.legal-expand {
  background: var(--paper);
  border: 2.5px solid var(--text);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  max-width: 52rem;
}

.legal-summary { font-size: 1.05rem; margin: 0 0 1rem; }

details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent2);
}

.legal-body {
  margin-top: 1rem;
  color: var(--muted);
}

.legal-body a { color: var(--accent); }

.site-footer {
  padding: 2rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: fixed;
    bottom: 0;
    top: auto;
    height: auto;
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-top: 3px solid var(--text);
    padding: 0.5rem;
    justify-content: center;
  }
  .rail-brand { display: none; }
  .rail-tabs { flex-direction: row; justify-content: space-around; }
  .rail-tab span:last-child { display: none; }
  .main { padding-bottom: 5rem; }
  .hero { grid-template-columns: 1fr; }
  .window-frame { grid-column: 1; grid-row: auto; max-width: 280px; margin-inline: auto; }
  .note { position: relative; width: 100%; margin-bottom: 1rem; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; transform: none; }
  .cork-board { min-height: auto; padding: 1rem; }
  .pin { display: none; }
}
