/*
 * Second Nature Games — quiet personal-page styling with a few small quirks:
 *  - roman-numeral section prefixes (CSS counter)
 *  - asterism dividers between sections
 *  - mixed serif body + monospace asides (roles, status, button)
 */

:root {
  --bg: #fbf7ef;
  --ink: #1a1614;
  --ink-dim: #7a6b5d;
  --rule: #e7dfd0;
  --link: #1a1614;

  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
  --font-display: "Alfa Slab One", var(--font-serif);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --ink: #e8e1d3;
    --ink-dim: #8a8175;
    --rule: #2a2620;
    --link: #e8e1d3;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  counter-reset: section;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

em {
  font-style: italic;
}

/* ----- headings ----- */
h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

/* Alfa Slab One — heavy chunky slab serif, for the game title only.
   Single-weight font, so we use positive letter-spacing to lighten its visual
   density rather than reach for a lighter cut that doesn't exist. */
.game-title {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  line-height: 1.05;
}

.game-title-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    emoji, sans-serif;
  font-size: 0.75em;
  vertical-align: 0.05em;
  margin-left: 0.1em;
}

/* small imprint above the title — studio name, dim and quiet */
.imprint {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
}

/* attribution line under the title */
.byline {
  font-style: italic;
  color: var(--ink-dim);
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  counter-increment: section;
}

h2::before {
  content: counter(section, lower-roman) ". ";
  color: var(--ink-dim);
  font-style: italic;
  font-weight: 400;
  margin-right: 0.15rem;
}

/* ----- asterism dividers ----- */
.rule {
  text-align: center;
  color: var(--ink-dim);
  letter-spacing: 0.6em;
  font-size: 0.85rem;
  margin: 2.5rem 0 2rem;
  user-select: none;
}

/* ----- video clip ----- */
.clip {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0 1.75rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--rule);
}

@media (prefers-color-scheme: dark) {
  .clip {
    background: rgba(255, 255, 255, 0.03);
  }
}

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

.clip-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ----- people ----- */
.people {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.people li {
  margin: 0 0 0.9rem;
}

.people .role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-top: 0.15rem;
  letter-spacing: 0.01em;
}

.people .role a {
  color: var(--ink-dim);
  text-decoration-color: var(--rule);
}

.people .role a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

/* ----- contact form ----- */
form {
  margin-top: 0.5rem;
}

form p {
  margin: 0 0 0.9rem;
}

form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

form input,
form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.35rem 0;
  border-radius: 0;
}

form textarea {
  resize: vertical;
  min-height: 6rem;
  border: 1px solid var(--rule);
  padding: 0.5rem;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

/* bracketed text-link button — [ send → ] */
form button {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0.25rem 0;
  cursor: pointer;
  text-decoration: none;
}

form button::before {
  content: "[ ";
  color: var(--ink-dim);
}

form button::after {
  content: " ]";
  color: var(--ink-dim);
}

form button span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

form button:hover span {
  text-decoration-thickness: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----- colophon ----- */
.colophon {
  margin-top: 3rem;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.colophon p {
  margin: 0 0 0.25rem;
}

.colophon .now {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
