@font-face {
  font-family: 'Archivo Variable';
  src: url('fonts/archivo.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --floor: #1e6050; --floor-deep: #134539; --line: #f1c84b; --line-text: #f5d877;
  --acc: #f0652f; --acc-lift: #f58256; --paper: #f6f3e8; --white: #fff; --kraft: #ddd0b4;
  --ink: #0c2a21; --ink-soft: #3a574d; --on-green-soft: #c5ddd2;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 450 clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem)/1.5 'Archivo Variable', Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--line); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 660; font-stretch: 108%; letter-spacing: -0.027em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem); line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.08; }
h3 { font-weight: 660; font-stretch: 104%; font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem); line-height: 1.14; letter-spacing: -0.015em; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-green :focus-visible, .on-green:focus-visible { outline-color: var(--line); }
.wrap { width: min(76rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.lead { font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.25rem); line-height: 1.45; max-width: 44ch; }
.field { font-size: 0.8125rem; font-weight: 640; font-stretch: 88%; letter-spacing: 0.05em; text-transform: uppercase; }

/* header */
.head { display: flex; align-items: center; gap: 2rem; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-stretch: 108%; font-size: 1.35rem; letter-spacing: -0.03em; text-decoration: none; }
.brand svg { width: 1.7rem; height: 1.7rem; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; font-weight: 560; font-size: 0.975rem; }
.nav a { text-decoration: none; padding-block: 0.3rem; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--line); }
@media (max-width: 900px) { .nav { display: none; } .head .btn { margin-left: auto; } }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.2rem; border: 0; border-radius: 4px;
  background: var(--acc); color: var(--ink); font: inherit; font-weight: 660; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 18px -14px rgba(4, 30, 22, 0.7);
  transition: background 250ms var(--ease), transform 250ms var(--ease);
}
.btn:hover { background: var(--acc-lift); transform: translateY(-1px); }
.btn:hover svg { transform: translateX(3px); }
.btn svg { width: 0.9rem; height: 0.9rem; transition: transform 250ms var(--ease); }
.btn.small { padding: 0.62rem 0.95rem; font-size: 0.9375rem; }

/* the world */
.scene { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--floor) transparent; }
.world { display: block; width: 100%; min-width: 820px; height: auto; }
.world text { font: 620 12.5px/1 'Archivo Variable', Archivo, sans-serif; font-stretch: 88%; letter-spacing: 0.02em; }
.world image { image-rendering: auto; }

/* controls on green */
.seg { display: inline-flex; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; }
.seg button, .pill {
  border: 0; background: none; color: #fff; font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
  padding: 0.42rem 0.95rem; border-radius: 999px; transition: background 200ms var(--ease), color 200ms var(--ease);
}
.seg button:hover, .pill:hover { background: rgba(255, 255, 255, 0.1); }
.seg button[aria-pressed='true'], .pill[aria-pressed='true'] { background: var(--paper); color: var(--ink); }
.seg button:active, .pill:active { transform: translateY(1px); }
.pause {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); background: none; color: #fff;
  display: inline-grid; place-items: center; cursor: pointer;
}
.pause:hover { background: rgba(255, 255, 255, 0.1); }
.pause svg { width: 0.9rem; height: 0.9rem; }
.pause[aria-pressed='true'] .i-pause, .pause[aria-pressed='false'] .i-play { display: none; }
.note { font-size: 0.875rem; color: var(--on-green-soft); }

/* page-furniture Toms */
.tomfig { position: relative; display: inline-block; flex: none; }
.tomfig img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tomfig-head { animation: bobble 3.2s ease-in-out infinite; }
@keyframes bobble { 0%, 100% { transform: rotate(-0.8deg); } 50% { transform: rotate(0.8deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tomfig-head { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* closing */
.close { background: var(--floor-deep); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); }
.close .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.close p { color: var(--on-green-soft); margin-top: 0.9rem; max-width: 40ch; }
.close .who { display: flex; align-items: end; gap: 1.5rem; }
.back { display: inline-block; margin: 1.5rem 0; font-size: 0.875rem; }
