/* Octobar landing: shared styles.
   Palette sampled from assets/img/hero-background.jpg (main menu art): walnut and amber wood,
   with cream ink and the coral used for the patience meter in the game. */

:root {
  --c-bg: #1b1410;
  --c-surface: #2a1f18;
  --c-surface-2: #3a2b20;
  --c-wood: #4c3d2d;
  --c-ink: #f4e8d2;
  --c-muted: #d2bf9f;
  --c-amber: #e9a24b;
  --c-amber-soft: #f3c57f;
  --c-coral: #fe8b71;
  --c-line: rgba(233, 162, 75, 0.28);
  --c-focus: #ffd27a;

  --f-serif: "Old Standard TT", Georgia, "Times New Roman", serif;
  --f-type: "Courier Prime", "Courier New", monospace;

  --radius: 6px;
  --gutter: 16px;
  --section-gap: clamp(48px, 8vw, 96px);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  min-width: 0;
}

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

a {
  color: var(--c-amber-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--c-amber);
}

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

h1,
h2,
h3 {
  font-family: var(--f-serif);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(3.4rem, 13vw, 8rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
h3 { font-size: 1.3rem; }

p {
  margin: 0 0 1em;
}

.container {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--c-line);
}

.section__lead {
  color: var(--c-muted);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--f-type);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin: 0 0 0.6em;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--c-amber);
  color: var(--c-bg);
  padding: 0.5em 1em;
  z-index: 10;
}

.skip-link:focus {
  top: var(--gutter);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.5em;
  border-radius: var(--radius);
  font-family: var(--f-type);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  background: var(--c-amber);
  color: var(--c-bg);
  border: 2px solid var(--c-amber);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--c-amber-soft);
  border-color: var(--c-amber-soft);
  color: var(--c-bg);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}

.btn--ghost:hover {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(27, 20, 16, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 12px;
}

.brand {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--c-ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-family: var(--f-type);
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--c-muted);
  text-decoration: none;
  padding: 4px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--c-ink);
  text-decoration: underline;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(27, 20, 16, 0.55) 0%, rgba(27, 20, 16, 0.78) 60%, var(--c-bg) 100%);
}

.hero__content {
  padding-block: 80px 96px;
}

.hero__title {
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.15em;
}

.hero__tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--c-amber-soft);
  max-width: 30ch;
  margin-bottom: 1.6em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* About */
.facts {
  list-style: none;
  padding: 0;
  margin: 2em 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.facts li {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px;
}

.facts strong {
  display: block;
  font-family: var(--f-serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--c-amber-soft);
  margin-bottom: 6px;
}

.facts span {
  font-family: var(--f-type);
  font-size: 0.95rem;
  color: var(--c-muted);
}

.about__text {
  max-width: 70ch;
}

/* Gallery and grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  margin: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: radial-gradient(circle at 50% 35%, var(--c-surface-2), var(--c-surface));
  padding: 8px;
}

.card--patron img {
  aspect-ratio: 674 / 700;
}

.card figcaption {
  font-family: var(--f-type);
  font-size: 0.9rem;
  padding: 10px 12px 12px;
  color: var(--c-muted);
}

.card figcaption strong {
  display: block;
  color: var(--c-ink);
  font-family: var(--f-serif);
  font-size: 1.1rem;
}

.subhead {
  font-family: var(--f-type);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--c-amber);
  margin: 2.2em 0 0.9em;
}

/* Tutorial */
.controls {
  font-family: var(--f-type);
  background: var(--c-surface);
  border-left: 3px solid var(--c-amber);
  padding: 14px 18px;
  margin: 1.4em 0 2em;
  max-width: 70ch;
  color: var(--c-muted);
  font-size: 0.98rem;
}

.controls kbd {
  font-family: var(--f-type);
  font-weight: 700;
  color: var(--c-ink);
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 0 6px;
}

.slides {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .slides {
    grid-template-columns: 1fr 1fr;
  }
}

.slides figure {
  margin: 0;
}

.slides img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}

.slides figcaption {
  font-family: var(--f-type);
  font-size: 0.95rem;
  color: var(--c-muted);
  margin-top: 8px;
}

.split {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 820px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.split figure {
  margin: 0;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}

.split figcaption {
  font-family: var(--f-type);
  font-size: 0.95rem;
  color: var(--c-muted);
  margin-top: 8px;
}

/* Video placeholder */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background:
    radial-gradient(ellipse at 50% 40%, var(--c-wood) 0%, var(--c-surface) 55%, var(--c-bg) 100%);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__card {
  max-width: 36ch;
}

/* Screenshots gallery (game images, 16:9) */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}

.video__card h3 {
  color: var(--c-amber-soft);
  font-size: 1.8rem;
  margin-bottom: 0.3em;
}

.video__card p {
  color: var(--c-muted);
  font-family: var(--f-type);
  font-size: 0.98rem;
  margin: 0;
}

/* Startups teaser */
.teaser {
  background: linear-gradient(135deg, var(--c-surface) 0%, var(--c-wood) 100%);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--c-line);
  padding-block: 40px 48px;
  background: var(--c-surface);
  font-family: var(--f-type);
  font-size: 0.95rem;
  color: var(--c-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

/* Long-form pages (startups, privacy) */
.prose {
  max-width: 74ch;
  padding-block: 56px 72px;
}

.prose h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin-bottom: 0.4em;
}

.prose h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-top: 1.6em;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 0.25em;
}

.prose h3 {
  margin-top: 1.4em;
  color: var(--c-amber-soft);
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose code {
  font-family: var(--f-type);
  font-size: 0.92em;
  background: var(--c-surface);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.note {
  font-family: var(--f-type);
  font-size: 0.95rem;
  color: var(--c-muted);
  background: var(--c-surface);
  border-left: 3px solid var(--c-coral);
  padding: 12px 16px;
  margin: 1.4em 0;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}

.checklist .box {
  width: 16px;
  height: 16px;
  margin-top: 6px;
  border: 2px solid var(--c-amber);
  border-radius: 3px;
}

.tag {
  display: inline-block;
  font-family: var(--f-type);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid var(--c-line);
  color: var(--c-muted);
}

.tag--done {
  color: var(--c-bg);
  background: var(--c-amber-soft);
  border-color: var(--c-amber-soft);
}

.table-wrap {
  overflow-x: auto;
  margin: 1em 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}

th {
  color: var(--c-amber-soft);
  font-family: var(--f-type);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 380px) {
  body {
    font-size: 1.02rem;
  }
  .hero__content {
    padding-block: 56px 72px;
  }
}

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