@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Oswald:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --paper-bg: #ece5ce;
  --paper-line: rgba(84, 92, 82, 0.08);
  --paper-shadow: rgba(48, 38, 24, 0.28);
  --ink: #1d1a14;
  --ink-soft: #3a3428;
  --tab-bg: #d8cebb;
  --tab-border: #8c7d65;
  --tab-active: #efdfbf;
  --accent-red: #b83c2b;
  --accent-orange: #ca7a2f;
  --card-bg: rgba(255, 251, 240, 0.88);
  --radius-soft: 12px;
  --radius-paper: 6px;
  --heading-font: 'Oswald', 'Arial Narrow', sans-serif;
  --body-font: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --typewriter-font: 'Special Elite', 'Courier New', monospace;
  --copy-measure: 80rem;
  --section-pad-y: 24px;
  --section-pad-x: 22px;
  --hairline: rgba(79, 63, 38, 0.22);
  --section-surface: rgba(255, 251, 240, 0.84);
  --soft-card-bg: rgba(255, 252, 244, 0.72);
  --utility-card-bg: rgba(255, 250, 238, 0.9);
  --nav-tab-width-simulator: 7rem;
  --nav-tab-width-historie: 6.25rem;
  --nav-tab-width-syntax: 9.25rem;
  --nav-tab-width-ebook: 6rem;
  --nav-tab-width-kontakt: 5.75rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.55;
  background-color: var(--paper-bg);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(210, 196, 158, 0.62), transparent 35%),
    radial-gradient(circle at 95% 100%, rgba(205, 178, 128, 0.44), transparent 30%),
    linear-gradient(to right, transparent 0, transparent 43px, var(--paper-line) 44px, transparent 45px),
    linear-gradient(to bottom, transparent 0, transparent 31px, var(--paper-line) 32px, transparent 33px);
  background-size: auto, auto, 44px 44px, 32px 32px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(63, 45, 18, 0.07), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(95, 72, 33, 0.05));
  mix-blend-mode: multiply;
  z-index: -1;
}

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

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

a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(to bottom, rgba(234, 216, 170, 0.98), rgba(214, 195, 148, 0.95));
  border-bottom: 1px solid rgba(71, 58, 37, 0.42);
  box-shadow: 0 8px 20px rgba(46, 34, 17, 0.2);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 18px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  text-decoration: none;
  color: rgba(24, 18, 12, 0.9);
  font-family: var(--typewriter-font);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  text-shadow: 0 1px 0 rgba(255, 247, 230, 0.45);
  box-shadow: inset 0 -1px 0 rgba(111, 95, 69, 0.16);
  transition: color 0.16s ease, transform 0.16s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.brand-link:hover,
.brand-link:focus,
.brand-link:focus-visible {
  color: #0d0a07;
  background-color: rgba(255, 248, 228, 0.56);
  transform: translateY(-1px);
  box-shadow: inset 0 -2px 0 rgba(111, 95, 69, 0.28), 0 4px 10px rgba(46, 34, 17, 0.16);
}

.brand-link:active {
  transform: translateY(0);
  box-shadow: inset 0 -1px 0 rgba(111, 95, 69, 0.24), 0 1px 4px rgba(46, 34, 17, 0.12);
}

.nav-links {
  display: grid;
  grid-template-columns:
    var(--nav-tab-width-simulator)
    var(--nav-tab-width-historie)
    var(--nav-tab-width-syntax)
    var(--nav-tab-width-ebook)
    var(--nav-tab-width-kontakt);
  align-items: center;
  gap: 8px;
  justify-content: end;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid var(--tab-border);
  border-bottom-color: rgba(58, 46, 27, 0.6);
  color: var(--ink-soft);
  background: linear-gradient(to bottom, #e4d9c4, #d0c2a7);
  text-decoration: none;
  font-family: var(--typewriter-font);
  font-size: 0.95rem;
  line-height: 1;
  padding: 1px 12px 0;
  min-height: 34px;
  border-radius: var(--radius-paper) var(--radius-paper) 2px 2px;
  box-shadow: 0 2px 0 rgba(61, 48, 31, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
}

.nav-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(61, 48, 31, 0.45);
  background: linear-gradient(to bottom, #efe4cf, #d8cab0);
}

.nav-links a:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(61, 48, 31, 0.5);
}

.nav-links a.is-active {
  color: #15110c;
  background: linear-gradient(to bottom, #f3e6ca, #dfcfb0);
  border-color: #6f5f45;
  border-bottom-color: #4e3f2b;
  box-shadow: inset 0 1px 0 rgba(255, 252, 242, 0.65), 0 1px 0 rgba(61, 48, 31, 0.5);
  transform: translateY(1px);
}

.nav-links a.is-active:hover,
.nav-links a.is-active:active {
  color: #15110c;
  background: linear-gradient(to bottom, #f3e6ca, #dfcfb0);
  box-shadow: inset 0 1px 0 rgba(255, 252, 242, 0.65), 0 1px 0 rgba(61, 48, 31, 0.5);
  transform: translateY(1px);
}

main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px 18px;
}

.section {
  margin: 18px 0;
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--section-surface);
  border: 1px solid rgba(71, 57, 35, 0.24);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(68, 52, 32, 0.08);
  position: relative;
}

#simulator-section {
  scroll-margin-top: 58px;
}

.section.striped {
  background:
    linear-gradient(transparent 0 31px, rgba(112, 100, 83, 0.04) 31px 32px),
    var(--section-surface);
  background-size: 100% 32px;
}

.section--document {
  background: linear-gradient(180deg, rgba(255, 251, 240, 0.88), rgba(246, 239, 220, 0.76));
  border-color: rgba(75, 59, 36, 0.2);
  box-shadow: 0 4px 10px rgba(68, 52, 32, 0.08);
}

.section--editorial {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.section--editorial.striped {
  background: transparent;
}

.section--hairline {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.section h1,
.section h2,
.section h3 {
  font-family: var(--heading-font);
  font-weight: 500;
  letter-spacing: 0.012em;
  color: #18130f;
  margin: 0 0 12px;
}

.section h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.12;
}

.section h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.section h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

.section p,
.section li,
.section td,
.section th {
  font-size: 1.02rem;
}

.hero {
  overflow: visible;
  background:
    linear-gradient(104deg, rgba(247, 236, 201, 0.94), rgba(229, 214, 176, 0.78));
  border-color: rgba(86, 66, 36, 0.22);
  box-shadow: 0 5px 12px rgba(68, 52, 32, 0.08);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 2.08fr) minmax(228px, 0.6fr);
  gap: 24px;
  align-items: start;
}

.hero-text {
  display: grid;
  gap: 0;
  max-width: none;
  padding-right: 10px;
}

.eyebrow {
  margin: 0 0 6px;
  color: rgba(58, 43, 24, 0.72);
  font-family: var(--typewriter-font);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
}

.hero-perex {
  margin: 12px 0 0;
  font-size: clamp(1.04rem, 1.75vw, 1.18rem);
  line-height: 1.58;
  max-width: var(--copy-measure);
}

.hero:not(.hero-shell) p,
.hero > .hero-text > p,
.hero .hero-text > p {
  max-width: var(--copy-measure);
}

.hero-document {
  padding-top: 18px;
  padding-bottom: 18px;
  background: linear-gradient(180deg, rgba(248, 239, 212, 0.76), rgba(244, 236, 218, 0.62));
  border-color: rgba(86, 66, 36, 0.18);
  box-shadow: 0 3px 8px rgba(68, 52, 32, 0.06);
}

.hero-document .hero-text {
  max-width: var(--copy-measure);
  padding-right: 0;
}

.hero-document .hero-text > p:not(.hero-perex) {
  margin: 8px 0 0;
  max-width: var(--copy-measure);
}

.hero-document .hero-actions {
  margin-top: 12px;
}

.section-intro {
  margin: 0 0 16px;
  max-width: var(--copy-measure);
  color: rgba(45, 34, 21, 0.9);
}

.simulator-intro {
  margin-top: 2px;
  max-width: 56rem;
}

.section-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  justify-content: space-between;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.section-heading-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  white-space: nowrap;
  color: rgba(57, 43, 24, 0.82);
  text-decoration-thickness: 1px;
}

.section-heading-link:hover {
  color: var(--accent-red);
}

.section-heading-badge {
  padding: 5px 10px 6px;
  border-radius: 999px;
  border: 1px solid rgba(59, 48, 33, 0.28);
  background: rgba(255, 252, 243, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.52) inset;
  color: rgba(47, 36, 22, 0.86);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.section-heading-badge:hover {
  background: rgba(236, 224, 198, 0.92);
  border-color: rgba(128, 70, 44, 0.34);
  color: rgba(108, 48, 33, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  display: inline-block;
  width: fit-content;
  background: rgba(46, 35, 19, 0.12);
  border: 1px solid rgba(59, 48, 33, 0.42);
  color: #2d2318;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.support-callout {
  width: min(100%, 228px);
  padding: 14px 14px 13px;
  border-radius: 10px;
  border: 1px solid rgba(94, 74, 46, 0.24);
  background:
    linear-gradient(180deg, rgba(252, 249, 239, 0.97), rgba(243, 235, 216, 0.9));
  box-shadow:
    0 6px 14px rgba(66, 49, 27, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: grid;
  gap: 10px;
  justify-self: end;
}

.section .support-callout-title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.04em;
  color: #2a1f14;
}

.support-callout-copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.46;
  color: rgba(41, 32, 22, 0.9);
}

.support-callout-action {
  display: flex;
  align-items: center;
}

.support-callout-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.support-callout-link img {
  display: block;
  width: min(100%, 170px);
  height: auto;
  border-radius: 10px;
}

.benefit-section,
.timeline-section,
.legal-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.simulator-section {
  padding-top: 12px;
}

.simulator-heading-row {
  margin-bottom: 2px;
}

.simulator-heading-link {
  margin-left: auto;
  font-size: 0.9rem;
}

.benefit-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(79, 63, 38, 0.26);
}

.benefit-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
}

.benefit-column {
  padding: 0 20px 0 0;
}

.benefit-column + .benefit-column {
  padding-left: 20px;
  border-left: 1px solid rgba(88, 69, 43, 0.18);
}

.benefit-column h3 {
  margin-bottom: 6px;
  font-size: clamp(1.08rem, 1.9vw, 1.26rem);
  line-height: 1.18;
}

.benefit-column p {
  margin: 0;
  line-height: 1.5;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--typewriter-font);
  font-size: 0.94rem;
  line-height: 1;
  border-radius: 6px;
  border: 1px solid #5a4730;
  color: #221b13;
  background: linear-gradient(to bottom, #efd8aa, #cbaf7b);
  min-height: 36px;
  padding: 1px 15px 0;
  box-shadow: 0 2px 0 rgba(63, 48, 28, 0.45);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
}

button.secondary,
.button.secondary {
  background: linear-gradient(to bottom, #e5c183, #be8744);
}

button.ghost,
.button.ghost {
  background: linear-gradient(to bottom, #f6f2e5, #d9cdb6);
}

button:hover,
.button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(63, 48, 28, 0.46);
}

button:active,
.button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(63, 48, 28, 0.5);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cgs-grid {
  display: grid;
  gap: 16px;
}

.cgs-grid.columns-2 {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.cgs-grid.columns-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cgs-card {
  background: var(--soft-card-bg);
  border: 1px solid rgba(65, 50, 30, 0.22);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(64, 50, 31, 0.06);
}

.cgs-card img {
  max-width: 100%;
  display: block;
}

.card--soft {
  background: rgba(255, 252, 245, 0.62);
  border-color: rgba(65, 50, 30, 0.18);
  box-shadow: 0 1px 4px rgba(64, 50, 31, 0.05);
}

.card--utility {
  background: var(--utility-card-bg);
  border-color: rgba(65, 50, 30, 0.24);
  box-shadow: 0 3px 8px rgba(64, 50, 31, 0.07);
}

.document-block {
  max-width: var(--copy-measure);
}

.document-block h2,
.document-block h3 {
  margin-bottom: 8px;
}

.document-block p:last-child {
  margin-bottom: 0;
}

.history-open-grid {
  align-items: start;
  gap: 18px 30px;
}

.history-gallery-section {
  padding: 18px;
}

.history-gallery-section h2 {
  margin-bottom: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.gallery-card {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
  text-align: inherit;
  transition: none;
}

.gallery-trigger:hover,
.gallery-trigger:active {
  transform: none;
  box-shadow: none;
  filter: none;
}

.gallery-trigger:focus-visible {
  outline: 2px solid rgba(137, 38, 34, 0.55);
  outline-offset: 3px;
}

.gallery-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
}

.gallery-card figcaption {
  margin-top: auto;
  padding: 12px 14px 14px;
  line-height: 1.45;
}

.gallery-lightbox {
  width: min(96vw, 1400px);
  max-width: 1400px;
  border: 1px solid rgba(65, 50, 30, 0.3);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 252, 245, 0.98);
  box-shadow: 0 24px 56px rgba(23, 15, 6, 0.28);
}

.gallery-lightbox::backdrop {
  background: rgba(20, 14, 7, 0.72);
}

.gallery-lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.gallery-lightbox-nav,
.gallery-lightbox-close {
  padding: 6px 10px;
  border: 1px solid rgba(65, 50, 30, 0.24);
  background: rgba(255, 251, 243, 0.94);
  color: var(--ink);
}

.gallery-lightbox-nav {
  min-width: 104px;
}

.gallery-lightbox-figure {
  margin: 0;
  display: grid;
  gap: 10px;
}

.gallery-lightbox-image {
  width: 100%;
  max-height: min(84vh, 1080px);
  object-fit: contain;
  border-radius: 10px;
  background: rgba(220, 210, 189, 0.4);
}

.gallery-lightbox-caption {
  margin: 0;
  max-width: none;
}

.ebook-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 30px 40px;
  align-items: start;
}

.ebook-layout-book {
  display: grid;
  justify-items: center;
}

.book-mockup-scene {
  --book-width: 340px;
  --book-spine-width: 22px;
  --book-page-width: 12px;
  --book-rotate-y: -28deg;
  --book-rotate-x: 8deg;
  --book-shadow-opacity: 0.22;
  --book-height: calc(var(--book-width) * 1.42);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--book-width) + 80px);
  height: calc(var(--book-height) + 80px);
  perspective: 1400px;
  perspective-origin: 50% 42%;
}

.ebook-book-scene {
  --book-width: 360px;
  --book-spine-width: 24px;
  --book-rotate-y: -24deg;
  --book-rotate-x: 7deg;
  --book-shadow-opacity: 0.2;
  width: min(100%, 440px);
  max-width: 100%;
}

.book-shadow {
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: calc(var(--book-width) * 0.76);
  height: calc(var(--book-height) * 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 1);
  opacity: var(--book-shadow-opacity);
  filter: blur(26px);
  transform: translateX(-34%) rotate(-7deg);
  pointer-events: none;
}

.book-mockup {
  margin: 0;
  position: relative;
  width: var(--book-width);
  height: var(--book-height);
  transform-style: preserve-3d;
  transform: translateX(18px) rotateX(var(--book-rotate-x)) rotateY(var(--book-rotate-y));
  will-change: transform;
  user-select: none;
}

.book-mockup::after {
  content: '';
  position: absolute;
  top: 6px;
  right: calc(var(--book-page-width) * -1);
  width: var(--book-page-width);
  height: calc(100% - 12px);
  border-radius: 0 8px 8px 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(250, 245, 233, 0.98) 0 3px,
      rgba(226, 214, 191, 0.96) 3px 4px
    );
  transform-origin: left center;
  transform: rotateY(90deg);
  box-shadow: inset 1px 0 0 rgba(126, 101, 67, 0.14);
}

.book-cover {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px 6px 6px 10px;
  background: #f3eadb;
  border: 1px solid rgba(79, 59, 33, 0.18);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.14),
    0 8px 14px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(80, 55, 30, 0.08);
  transform: translateZ(12px);
  backface-visibility: hidden;
}

.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--book-spine-width);
  height: var(--book-height);
  transform-origin: left center;
  transform: rotateY(-90deg) translateX(calc(var(--book-spine-width) * -1));
  border-radius: 8px 0 0 8px;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0.06) 18%,
      rgba(0, 0, 0, 0.08) 100%
    ),
    linear-gradient(
      to right,
      #e4d9c8 0%,
      #cbbfae 35%,
      #ad9c86 100%
    );
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.25),
    inset 1px 0 0 rgba(0, 0, 0, 0.08);
}

.ebook-layout-copy {
  display: grid;
  align-self: stretch;
  min-height: 100%;
}

.ebook-copy-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.ebook-copy-block {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(88, 69, 43, 0.16);
}

.ebook-copy-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ebook-copy-block h2 {
  margin-bottom: 8px;
}

.ebook-copy-block p:last-child,
.ebook-copy-block ul:last-child,
.ebook-copy-block ol:last-child {
  margin-bottom: 0;
}

.cgs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(66, 51, 31, 0.42);
  background: rgba(255, 253, 247, 0.95);
}

.cgs-table thead {
  background: rgba(65, 51, 31, 0.9);
  color: #f2e8d0;
}

.cgs-table th,
.cgs-table td {
  padding: 11px 12px;
  border: 1px solid rgba(83, 65, 41, 0.3);
  text-align: left;
  vertical-align: top;
}

.cgs-table tbody tr:nth-child(even) {
  background: rgba(97, 78, 49, 0.05);
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.compact-timeline {
  position: relative;
  gap: 6px;
  padding-left: 18px;
}

.compact-timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 1px;
  background: rgba(87, 67, 39, 0.22);
}

.changelog-table {
  table-layout: fixed;
}

.changelog-table th,
.changelog-table td {
  padding: 8px 10px;
}

.changelog-table thead th:nth-child(1) {
  width: 13rem;
}

.changelog-table thead th:nth-child(2) {
  width: 10rem;
}

.changelog-version {
  font-family: var(--typewriter-font);
  font-size: 0.94rem;
  white-space: nowrap;
}

.changelog-date {
  white-space: nowrap;
  font-size: 0.94rem;
}

.changelog-summary {
  font-size: 0.98rem;
  line-height: 1.45;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.92rem;
}

.pager-pages {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0 8px;
  border-radius: 6px;
  text-decoration: none;
  color: rgba(39, 29, 20, 0.9);
}

.pager-link:hover {
  background: rgba(97, 78, 49, 0.08);
}

.pager-link.is-active {
  background: rgba(97, 78, 49, 0.16);
  font-weight: 700;
}

.pager-link[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.timeline-item {
  position: relative;
  padding: 10px 0 10px 16px;
  border-left: 0;
  background: transparent;
  box-shadow: none;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(97, 67, 31, 0.62);
}

.compact-timeline-item {
  display: grid;
  grid-template-columns: minmax(92px, 120px) minmax(0, 1fr);
  gap: 8px 16px;
  align-items: start;
  padding-top: 8px;
  padding-bottom: 8px;
}

.compact-timeline-item h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.compact-timeline-item p {
  margin: 0;
}

.timeline-year {
  margin: 0;
  font-family: var(--typewriter-font);
  font-size: 0.9rem;
  color: rgba(63, 46, 25, 0.82);
}

.timeline-section {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(79, 63, 38, 0.22);
}

.legal-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(79, 63, 38, 0.18);
}

.legal-section p {
  max-width: var(--copy-measure);
  line-height: 1.64;
}

.code-block {
  overflow-x: auto;
  background: #1f1b16;
  color: #f5deab;
  border: 1px solid #5e4930;
  border-radius: 7px;
  padding: 10px 12px;
  font-family: 'Courier New', monospace;
}

.code-block pre {
  margin: 0;
  white-space: pre;
}

.code-block code {
  display: block;
  min-width: max-content;
  line-height: 1.5;
  font-family: "Fira Code", "Courier New", monospace;
}

.tok-keyword { color: #ff8da1; font-weight: 600; }
.tok-string { color: #c3e88d; }
.tok-register { color: #82aaff; font-weight: 600; }
.tok-number { color: #f8c275; }
.tok-comment { color: #76839b; font-style: italic; }
.tok-title {
  color: #b71c1c;
  background: #ffe88a;
  padding: 0 6px;
  border-radius: 3px;
  font-weight: 700;
}
.tok-operator { color: #7fc8ff; font-weight: 500; }
.tok-input { color: #8be9fd; font-weight: 600; }
.tok-print { color: #c3e88d; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #3b2f20;
  color: #f0e2c6;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.82rem;
}

.contact-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-panel {
  display: grid;
  gap: 14px;
}

.contact-panel p {
  margin: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
  color: #2c2217;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(81, 63, 38, 0.45);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.98);
  box-shadow: inset 0 1px 2px rgba(37, 28, 17, 0.08);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(62, 48, 31, 0.65);
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(120, 51, 31, 0.72);
  box-shadow: 0 0 0 3px rgba(184, 60, 43, 0.16);
  outline: none;
}

.field input:invalid,
.field select:invalid,
.field textarea:invalid {
  border-color: rgba(139, 41, 31, 0.52);
}

.field-hint,
.status-message {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(49, 38, 24, 0.88);
}

.status-message {
  min-height: 1.4em;
}

.status-message[data-state="error"] {
  color: #8a281f;
}

.status-message[data-state="success"] {
  color: #2d5f36;
}

.contact-tips {
  display: grid;
  gap: 12px;
}

.contact-tips ul {
  margin: 0;
}

.note-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.note-list li {
  padding-left: 1.2rem;
  position: relative;
}

.note-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-red);
}

.footer {
  margin: 18px auto 0;
  max-width: 1140px;
  border-top: 1px solid rgba(80, 62, 37, 0.35);
  text-align: center;
  color: rgba(42, 33, 23, 0.85);
  padding: 17px 10px 26px;
  font-family: var(--typewriter-font);
  font-size: 0.94rem;
}

@media (max-width: 920px) {
  #simulator-section {
    scroll-margin-top: 88px;
  }

  .nav-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    order: 2;
  }

  .section {
    padding: 20px 14px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-text {
    max-width: none;
    padding-right: 0;
  }

  .support-callout {
    width: min(100%, 236px);
    max-width: 236px;
  }

  .hero-actions {
    gap: 10px;
  }

  .benefit-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .benefit-column,
  .benefit-column + .benefit-column {
    padding: 0;
    border-left: 0;
  }

  .benefit-column + .benefit-column {
    padding-top: 14px;
    border-top: 1px solid rgba(88, 69, 43, 0.18);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .ebook-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ebook-book-scene {
    --book-width: 280px;
    --book-spine-width: 20px;
    --book-page-width: 10px;
    margin: 0 auto;
  }

  .section--editorial {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  main {
    padding: 0 10px 14px;
  }

  .nav-inner {
    padding: 10px;
  }

  .brand-link {
    font-size: 0.96rem;
    min-height: 34px;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 4px 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  button,
  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .contact-actions {
    display: grid;
  }

  .ebook-layout-book {
    min-width: 0;
  }

  .ebook-book-scene {
    --book-width: min(250px, calc(100vw - 92px));
    --book-spine-width: 18px;
    --book-page-width: 8px;
    width: min(100%, calc(var(--book-width) + 60px));
    height: calc(var(--book-height) + 56px);
  }

  .ebook-book-scene .book-mockup {
    transform: translateX(8px) rotateX(var(--book-rotate-x)) rotateY(var(--book-rotate-y));
  }

  .timeline-item {
    padding: 10px;
  }

  .compact-timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .simulator-heading-row {
    gap: 6px 12px;
  }

  .simulator-heading-link {
    font-size: 0.86rem;
  }

  .gallery-lightbox-controls {
    flex-wrap: wrap;
  }
  .changelog-table,
  .changelog-table thead,
  .changelog-table tbody,
  .changelog-table tr,
  .changelog-table th,
  .changelog-table td {
    display: block;
    width: 100%;
  }

  .changelog-table thead {
    display: none;
  }

  .changelog-table tbody tr + tr {
    margin-top: 10px;
  }

  .changelog-table tbody tr {
    border: 1px solid rgba(83, 65, 41, 0.3);
    background: rgba(255, 253, 247, 0.95);
  }

  .changelog-table .changelog-version,
  .changelog-table .changelog-date,
  .changelog-table .changelog-summary {
    white-space: normal;
  }

  .pager {
    gap: 6px;
    font-size: 0.88rem;
  }

  .footer {
    padding-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
