:root {
  color-scheme: dark;
  background: #000;
  color: #e8e8e3;
  font-family: "DIN Alternate", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 56px 64px;
}
h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.6px;
}
.description {
  align-self: center;
  margin: 64px 0;
  color: #b5b5ad;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 2.2;
  white-space: nowrap;
  text-shadow: 0 2px 8px #000, 0 0 20px #000;
  font-weight: 400;
  letter-spacing: -.4px;
}
.visual {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 50%;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, #000 18%);
}
.visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
/* The fire is drawn with the same crop as the photograph and replaces it. */
.visual canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
html[data-site="v2"] .visual img,
html[data-site="v3"] .visual img,
html[data-site="v4"] .visual img {
  visibility: hidden;
}
address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
}
a {
  color: #b5b5ad;
  text-decoration: underline;
  text-decoration-color: #53534e;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
a:hover { color: #fff; text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid #e8e8e3; outline-offset: 6px; }
.contact {
  position: absolute;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  font-size: 11px;
}
.contact a {
  color: #383835;
  text-decoration: none;
}
.contact a:hover,
.contact a:focus-visible {
  color: #62625e;
  text-decoration: none;
}
::selection { color: #000; background: #e8e8e3; }

/* v4: the text takes a little of the fire's light. src/v4/index.js sets
   --firelight from the model: 0 when the fire is out, 1 at its brightest.
   With the fire out the text keeps a dim, cool ambient colour. */
/* A finger dragged across the page is the poker, so it must not pan the
   page. The page does not scroll in any case. Pinch zoom still works. */
html[data-site="v4"] .page {
  touch-action: pinch-zoom;
}
html[data-site="v4"] h1 {
  color: color-mix(in srgb, #6b6b68, #f6e6d2 calc(var(--firelight, 0.5) * 100%));
}
html[data-site="v4"] .description {
  color: color-mix(in srgb, #4f4f4c, #cfb9a0 calc(var(--firelight, 0.5) * 100%));
}
/* Each word has its own light, by where it sits (src/v4/text.js sets --lit). */
html[data-site="v4"] h1 .lit {
  color: color-mix(in srgb, #5c5c5a, #fbeedd calc(var(--lit, 0.5) * 100%));
}
html[data-site="v4"] .description .lit {
  color: color-mix(in srgb, #454543, #dcc5a8 calc(var(--lit, 0.5) * 100%));
}

/* Wind model readout, shown with ?debug. */
.debug {
  position: fixed;
  left: 16px;
  bottom: 16px;
  margin: 0;
  color: #7a7a72;
  font: 11px/1.5 ui-monospace, Menlo, monospace;
  pointer-events: none;
}

@media (max-width: 700px) {
  .page { padding: 32px 26px; }
  h1 { font-size: 28px; }
  .visual { left: 25%; }
}
