:root {
  --bg: #12121c;
  --accent: #3e7773;
  --accent2: #55466f;
  --text: #e7ded2;
  --muted: #c9bba8;
  --line: rgba(231, 222, 210, 0.14);
  --max: 720px;
  --wide: 1040px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

a:hover {
  color: #5a9e99;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent2);
  color: var(--text);
}

/* Hero — centered_stack, none_inline nav */
.hero {
  position: relative;
  padding: clamp(2rem, 8vw, 5rem) 1.5rem 3rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(62, 119, 115, 0.35), transparent 70%);
  pointer-events: none;
}

.hero__visual {
  margin: 0 auto 2rem;
  max-width: var(--wide);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.hero__visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero__stack {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.hero__kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero__tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero__links {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  margin: 0;
}

.hero__links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.hero__links a:hover {
  border-bottom-color: var(--accent);
}

.hero__links span {
  color: var(--line);
  margin: 0 0.35rem;
}

/* Gallery band */
.gallery-band {
  padding: 0 1.5rem 2rem;
}

.gallery-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: var(--wide);
  margin: 0 auto;
}

.gallery-band__grid img {
  border-radius: 12px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (max-width: 640px) {
  .gallery-band__grid {
    grid-template-columns: 1fr;
  }
}

/* Section intros — single_centered_band */
.section-intro {
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.section-intro--single_centered_band {
  text-align: center;
}

.section-intro h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.section-intro p {
  color: var(--muted);
  margin: 0;
}

/* Features — stripe_list */
.features {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
}

.feat-stripes {
  list-style: none;
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: var(--wide);
}

.feat-stripes__item {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 1.25rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.feat-stripes__code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 0.25rem;
}

.feat-stripes__body h3 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.feat-stripes__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 560px) {
  .feat-stripes__item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Screens — stacked_full */
.screens {
  padding: 2rem 0 4rem;
  background: linear-gradient(180deg, transparent, rgba(85, 70, 111, 0.12) 40%, transparent);
}

.screen-shot {
  margin: 0 auto 2.5rem;
  max-width: 390px;
  padding: 0 1.5rem;
  text-align: center;
}

.screen-shot img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.screen-shot figcaption {
  margin-top: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Legal — accordion */
.legal {
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--line);
}

.accordion {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.accordion__panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 1rem;
  background: rgba(85, 70, 111, 0.08);
  overflow: hidden;
}

.accordion__panel[open] {
  border-color: rgba(62, 119, 115, 0.45);
}

.accordion__trigger {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.35rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.accordion__trigger::-webkit-details-marker {
  display: none;
}

.accordion__trigger::after {
  content: "+";
  float: right;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  color: var(--accent);
}

.accordion__panel[open] .accordion__trigger::after {
  content: "−";
}

.accordion__content {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose p strong {
  color: var(--text);
}

/* Footer */
.site-foot {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-foot a {
  color: var(--text);
}

.site-foot__copy {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  opacity: 0.75;
}
