:root {
  color-scheme: dark;
  --background: #201a17;
  --ink: #100d0b;
  --paper: #f5dfc2;
  --amber: #ffbf78;
  --muted: #d3bda7;
  --rule: #5b4539;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "DejaVu Sans Condensed", sans-serif;
  --text: "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

:is(input, textarea, [contenteditable]):read-write {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}

body {
  min-width: 16rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse at 50% 5%, #60413642, transparent 70%),
    radial-gradient(circle, #f8cc9f18 .55px, transparent .85px);
  background-size: auto, 5px 5px;
  color: var(--paper);
  font: 1rem/1.5 var(--text);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
img, video { -webkit-user-drag: none; }
figure, h1, h2, p { margin: 0; }

.page-loader {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .85rem;
  background: var(--background);
  color: var(--paper);
  font-weight: 700;
  pointer-events: none;
}

.loader {
  --color-1: #fff;
  --color-2: var(--amber);
  --size: 1.25px;

  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: calc(48 * var(--size));
  height: calc(48 * var(--size));
  border: calc(3 * var(--size)) dotted var(--color-1);
  border-style: solid solid dotted dotted;
  border-radius: 50%;
  animation: loader-rotation 2s linear infinite;
}

.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: calc(24 * var(--size));
  height: calc(24 * var(--size));
  border: calc(3 * var(--size)) dotted var(--color-2);
  border-style: solid solid dotted dotted;
  border-radius: 50%;
  animation: loader-rotation-back 1s linear infinite;
  transform-origin: center;
}

@keyframes loader-rotation {
  to { transform: rotate(360deg); }
}

@keyframes loader-rotation-back {
  to { transform: rotate(-360deg); }
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}

.page-width {
  width: min(91%, 82.5rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: .75rem auto auto .75rem;
  padding: .6rem 1rem;
  translate: 0 -160%;
  background: var(--amber);
  color: var(--ink);
}

.skip-link:focus { translate: 0; }

.site-header {
  min-height: 5.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: clamp(.7rem, 1.15vw, 1rem);
  text-decoration: none;
  font: 1.65rem/.95 var(--display);
  letter-spacing: .035em;
  text-transform: uppercase;
}

.brand-mark {
  flex: 0 0 auto;
  width: clamp(2.5rem, 4vw, 3rem);
  aspect-ratio: 1;
  border: 2px solid #d6996b;
  rotate: -5deg;
  background: #472823 url("assets/igniteer.gif") center / cover no-repeat;
  box-shadow: .2rem .25rem var(--ink), inset 0 0 0 1px #21150f99;
  transition: rotate 160ms ease, border-color 160ms ease;
}

.wordmark:is(:hover, :focus-visible) .brand-mark {
  border-color: var(--amber);
  rotate: 0deg;
}

.hero-spark {
  background: var(--amber);
  clip-path: polygon(55% 0, 62% 41%, 100% 24%, 75% 58%, 90% 94%, 53% 74%, 27% 100%, 30% 67%, 0 52%, 40% 43%);
}

.site-nav {
  display: flex;
  gap: clamp(.85rem, 2.4vw, 2.15rem);
}

.site-nav a {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 750;
  letter-spacing: .035em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-label="Home"] {
  min-width: 2.75rem;
  justify-content: center;
}

.home-icon {
  width: 1.2rem;
  height: 1.2rem;
  background: currentColor;
  clip-path: polygon(50% 4%, 100% 44%, 90% 44%, 90% 96%, 60% 96%, 60% 68%, 40% 68%, 40% 96%, 10% 96%, 10% 44%, 0 44%);
}

.site-nav a:hover,
.site-nav [aria-current] { color: var(--amber); }

.site-nav [aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 .19rem;
  height: .14rem;
  rotate: -3deg;
  background: currentColor;
}

.site-nav a[aria-label="Home"]::after { inset-inline: .65rem; }

main {
  flex: 1;
  padding-top: clamp(1.25rem, 2.15vw, 2rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  min-height: clamp(24rem, 33vw, 29rem);
  gap: .5rem;
  padding: .4rem;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--rule), 0 1rem 2rem #100d0b57;
}

.hero-copy {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  padding: 3rem clamp(1.55rem, 3.6vw, 3.5rem);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
  background:
    radial-gradient(ellipse at 9% 12%, #a34a3b, transparent 70%),
    linear-gradient(153deg, #783b33 4%, #633029 61%, #391f1c);
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero-copy::before {
  inset: 0;
  opacity: .43;
  background:
    radial-gradient(circle, #170e0a 1px, transparent 1.4px) 0 0 / 6px 6px,
    radial-gradient(circle, #170e0a .65px, transparent 1px) 3px 3px / 6px 6px;
  mask-image: radial-gradient(ellipse at 100% 98%, black, transparent 65%),
    radial-gradient(ellipse at 2% 2%, black, transparent 58%);
}

.hero-copy::after {
  inset: auto -6% 2% 4%;
  height: 29%;
  opacity: .42;
  rotate: -13deg;
  background: repeating-linear-gradient(176deg, transparent 0 8px, #211210 9px 10px, transparent 11px 15px);
  mask-image: linear-gradient(79deg, transparent 15%, black 70%), linear-gradient(transparent, black 80%);
  mask-composite: intersect;
}

.hero-content { position: relative; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #ffe2af;
  font-size: clamp(.74rem, 1.08vw, .93rem);
  font-weight: 780;
  letter-spacing: .155em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 clamp(1.15rem, 2.2vw, 2rem);
  height: .18rem;
  border-radius: 100% 25% 80% 10%;
  rotate: -5deg;
  background: var(--amber);
}

.hero h1 {
  margin: .13em 0 .21em;
  color: var(--paper);
  font: 400 clamp(4.6rem, 8.55vw, 8.15rem)/.97 var(--display);
  letter-spacing: -.025em;
  text-transform: uppercase;
  transform: skew(-6deg);
  transform-origin: left bottom;
  -webkit-text-stroke: .011em var(--ink);
  paint-order: stroke fill;
  text-shadow: .027em .046em var(--ink), .05em .079em #2e1816;
}

.intro {
  max-width: 23ch;
  color: #f6e2d5;
  font-size: clamp(1.06rem, 1.5vw, 1.38rem);
  line-height: 1.52;
}

.art-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 3.1rem;
  margin-top: clamp(1.4rem, 3.15vw, 2.6rem);
  padding: .65rem 1rem;
  border: 2px solid var(--ink);
  background: var(--amber);
  box-shadow: .29rem .3rem var(--ink);
  color: #21150f;
  font-family: inherit;
  font-size: .91rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms, translate 140ms, box-shadow 140ms;
}

.art-link:enabled:hover {
  translate: -2px -2px;
  background: #ffdcaa;
  box-shadow: .42rem .43rem var(--ink);
}

.expand-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  background:
    linear-gradient(currentColor, currentColor) top left / 38% 2px,
    linear-gradient(currentColor, currentColor) top left / 2px 38%,
    linear-gradient(currentColor, currentColor) top right / 38% 2px,
    linear-gradient(currentColor, currentColor) top right / 2px 38%,
    linear-gradient(currentColor, currentColor) bottom left / 38% 2px,
    linear-gradient(currentColor, currentColor) bottom left / 2px 38%,
    linear-gradient(currentColor, currentColor) bottom right / 38% 2px,
    linear-gradient(currentColor, currentColor) bottom right / 2px 38%;
  background-repeat: no-repeat;
}

.hero-spark {
  position: absolute;
  z-index: -1;
  right: 12%;
  bottom: 10%;
  width: clamp(1.7rem, 3vw, 2.5rem);
  aspect-ratio: 1;
  rotate: 14deg;
  opacity: .8;
}

.hero-art {
  position: relative;
  display: grid;
  min-width: 0;
  margin-left: -24px;
  overflow: hidden;
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%);
  background: #1a1513;
}

.hero-slides {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #3c2b26, #191513 80%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background: inherit;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide--road img {
  object-position: 58% 55%;
}

.hero-slide--coast img {
  object-position: 55% 55%;
}

.hero-slide img,
.viewer-art img { pointer-events: none; }

.hero-carousel-controls:not([hidden]) {
  position: absolute;
  z-index: 1;
  inset: auto 0 .45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-slide-marker {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  pointer-events: auto;
}

.hero-slide-marker::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border: 1px solid currentColor;
  box-shadow: 0 0 0 1px #100d0bbb;
}

.hero-slide-marker:hover,
.hero-slide-marker[aria-current="true"] { color: var(--amber); }
.hero-slide-marker[aria-current="true"]::before { background: currentColor; }
.hero-slide-marker:focus-visible { outline-offset: -3px; }
.art-link:disabled { cursor: default; }
.details { min-height: clamp(7rem, 15vw, 12rem); }

.site-footer {
  padding-block: 1rem 1.65rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  text-align: center;
}

.site-footer small { font-size: .8rem; }

.admin-login-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 1.75rem;
  margin-inline-start: max(.65rem, env(safe-area-inset-left));
  margin-block-end: max(.3rem, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: .8rem;
  text-underline-offset: .15em;
}

.admin-login-link:is(:hover, :focus-visible) { color: var(--amber); }

body:has(.viewer[open]) { overflow: hidden; }

.viewer {
  width: min(92vw, 64rem, 125dvh);
  max-height: 94dvh;
  padding: .4rem;
  overflow: auto;
  border: 1px solid #936a51;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1rem 4rem #000b;
}

.viewer::backdrop { background: #100c0aeb; }

.viewer-bar {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .1rem .25rem .4rem .8rem;
}

.viewer-bar h2 {
  font-size: .85rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.close-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--background);
  color: var(--paper);
  font: 1.6rem/1 var(--text);
  cursor: pointer;
}

.close-button:hover { color: var(--amber); }
.close-button:focus-visible { outline-offset: 2px; }

.viewer-art { overflow: hidden; }

.viewer-art img {
  width: 100%;
  max-height: 78dvh;
  object-fit: contain;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); }
  .hero h1 { font-size: clamp(4.25rem, 9.1vw, 6.2rem); }
}

@media (max-width: 680px) {
  .page-width { width: calc(100% - 2rem); }
  .site-header { min-height: 4.25rem; }
  .wordmark { font-size: 1.4rem; }
  .brand-mark { width: 2.35rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: .3rem; gap: .35rem; }
  .hero-copy { clip-path: none; padding: 2.25rem 1.75rem 2.45rem; }
  .hero h1 { font-size: clamp(3.65rem, 14.1vw, 6rem); }
  .hero-art { clip-path: none; margin-left: 0; }
  .hero-slides { aspect-ratio: 2.12; }
}

@media (max-width: 600px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .35rem;
    padding-block: .85rem .3rem;
  }

  .wordmark { justify-self: start; }
  .site-nav { justify-content: space-between; gap: .3rem; }
  .site-nav a { font-size: .84rem; }
}

@media (max-width: 370px) {
  .hero-copy { padding-inline: 1.18rem; }
  .eyebrow { letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art-link, .brand-mark { transition: none; }
  .loader, .loader::after { animation: none; }
}

@page { margin: 0; }

@media print {
  body { display: none !important; }
}
