/* ── The Disagreement Lasted a Long Time ───────────────── */
/* No rounds, no score, no "begin" gate — you land on the page already
   able to touch the one thing there is to touch. Nothing here is
   trying to be won. */

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

:root {
  --bg-deep: #120d10;
  --text-primary: #c9bdb2;
  --text-dim: #9c8f85;
  --text-faint: #857a71;
  --text-bright: #e8dcd0;
  --accent-ember: #c98a52;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
}

body {
  font-family: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grain-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift 0.5s steps(1) infinite;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, -1%); }
  50% { transform: translate(1%, 2%); }
  75% { transform: translate(-1%, -2%); }
}

.stone-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.stone-title {
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  font-weight: 400;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  max-width: 500px;
}

.stone-instruction {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  max-width: 340px;
}

.hill-stage {
  width: min(90vw, 480px);
  height: min(65vw, 320px);
}

#hillCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
  cursor: grab;
  touch-action: none;
}

#hillCanvas:active {
  cursor: grabbing;
}

#hillCanvas:focus-visible {
  outline: 2px solid var(--text-bright);
  outline-offset: 4px;
}

.stone-line {
  min-height: 1.6em;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color 0.6s ease;
  max-width: 380px;
}

.stone-line.grace {
  color: var(--accent-ember);
  text-shadow: 0 0 20px rgba(201, 138, 82, 0.3);
}

.stone-epigraph {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-faint);
  line-height: 1.7;
  max-width: 340px;
  margin-top: 0.6rem;
}

.stone-attribution {
  display: block;
  margin-top: 0.5em;
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.stone-return {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 138, 82, 0.25);
  transition: color 300ms ease, border-color 300ms ease;
}

.stone-return:hover {
  color: var(--text-bright);
  border-bottom-color: var(--accent-ember);
}

.stone-return:focus-visible {
  outline: 2px solid var(--text-bright);
  outline-offset: 4px;
}

.noscript {
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.noscript a {
  color: var(--text-primary);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .grain-overlay { animation: none; }
  .stone-line { transition: none; }
}

::selection {
  background: rgba(201, 138, 82, 0.22);
  color: var(--text-bright);
}
