/* Self-hosted webfonts (was a render-blocking @import from fonts.googleapis.com) */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/space-mono-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/space-mono-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/space-mono-normal-latin-ext-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/space-mono-normal-latin-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Colour tones mirror Assets/Scripts/UI/Theme/HexfellPalette.cs */
:root {
  --bg: #16110a;
  --bg-2: #1d160d;
  --panel: #211a10;
  --panel-2: #2a2114;
  --line: rgba(120, 100, 60, 0.22);
  --line-strong: rgba(120, 100, 60, 0.42);

  --ink: #e8d6bd;
  --ink-soft: #c8bea0;
  --ink-bright: #fff5d2;
  --ink-muted: #8f8264;

  --gold: #c8b464;
  --gold-bright: #ffe6a0;
  --gold-warm: #ffbf26;
  --earthy: #b38c4c;
  --green: #8cdc64;
  --green-grid: rgba(70, 200, 95, 0.5);
  --clay: #dc785a;
  --mana: #64a0ff;

  /* In-game tile inventory tones */
  --t-grass: #335933;
  --t-grass-alt: #335940;
  --t-grass-sel: #40734d;
  --t-forest: #264d26;
  --t-water: #334066;
  --t-mountain: #4d4740;
  --t-building: #594033;
  --t-building-sel: #734d40;

  --hex-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,2 95,26 95,74 50,98 5,74 5,26' fill='none' stroke='%23c8b464' stroke-width='1.4'/%3E%3C/svg%3E");

  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body);
  color: var(--ink-soft);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 90% 60% at 70% -5%, #271d10 0%, transparent 60%);
  background-repeat: no-repeat;
}

/* Volcanic ash wordmark canvas */
#ash-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.serif-italic {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
}

.accent-warm {
  color: var(--clay);
}

/* Shared typography */
h1, h2, h3 {
  color: var(--ink-bright);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-social-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 5vw, 3rem);
}

.hero-social-row a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-social-row a:hover {
  color: var(--gold-bright);
  transform: translateY(-3px);
}

.hero-social-row svg {
  display: block;
  height: 30px;
  width: auto;
  fill: currentColor;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.6));
}

.wishlist-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.35rem;
  border: 1px solid rgba(255, 230, 160, 0.55);
  border-radius: 999px;
  background:
    radial-gradient(120% 160% at 50% 118%, rgba(220, 120, 90, 0.85), rgba(220, 120, 90, 0) 62%),
    linear-gradient(160deg, var(--gold-bright) 0%, var(--gold-warm) 46%, var(--earthy) 100%);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #241703;
  text-shadow: 0 1px 0 rgba(255, 245, 210, 0.45);
  text-decoration: none;
  box-shadow:
    0 0 0 4px rgba(255, 191, 38, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 250, 225, 0.7);
  animation: wishlist-ember 3.4s var(--ease) infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.wishlist-pill svg,
.wishlist-pill span {
  position: relative;
  z-index: 1;
}

.wishlist-pill svg {
  display: block;
  height: 22px;
  width: auto;
  fill: currentColor;
}

.wishlist-pill::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 245, 0.75), transparent);
  transform: skewX(-18deg);
  animation: wishlist-sheen 3.4s var(--ease) infinite;
}

.wishlist-pill:hover {
  transform: translateY(-3px);
  filter: saturate(1.12) brightness(1.06);
  box-shadow:
    0 0 0 5px rgba(255, 191, 38, 0.16),
    0 14px 34px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 250, 225, 0.8);
}

@keyframes wishlist-ember {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 191, 38, 0.08), 0 10px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 250, 225, 0.7); }
  50% { box-shadow: 0 0 0 9px rgba(255, 191, 38, 0.02), 0 10px 34px rgba(255, 138, 61, 0.28), inset 0 1px 0 rgba(255, 250, 225, 0.7); }
}

@keyframes wishlist-sheen {
  0%, 62% { left: -60%; }
  100% { left: 130%; }
}

.chapter-title .serif-italic {
  color: var(--gold-bright);
}

/* Studio identity line */
.studio-line {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: clamp(1.1rem, 3vh, 1.9rem) 1.5rem clamp(0.5rem, 1.5vh, 0.9rem);
  text-align: center;
}

.studio-mark {
  width: 26px;
  height: 26px;
  display: block;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.6));
}

.studio-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink-bright);
}

.studio-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.65;
}

.studio-meta {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.studio-tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* Primary call to action */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.35rem;
}


/* Chapters */
.chapter {
  position: relative;
  padding: clamp(1.25rem, 3vh, 2.25rem) clamp(1.5rem, 8vw, 8rem) clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}

.chapter-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

.chapter-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.prose {
  max-width: 40rem;
}

.prose p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: 1.1rem;
}

/* Hexfell showcase */
.showcase {
  margin: 1.5rem 0 0;
  perspective: 1200px;
}

.showcase-card {
  max-width: min(100%, max(30rem, (100vh - 25rem) * 16 / 9));
  margin-inline: auto;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.75);
  transform-style: preserve-3d;
  will-change: transform;
}

.showcase-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.win-dot:nth-child(1) { background: #c5683f; }

.win-dot:nth-child(2) { background: #c8b464; }

.win-dot:nth-child(3) { background: #6f9e58; }

.win-file {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.showcase-image {
  position: relative;
  line-height: 0;
  background: var(--bg);
}

.showcase-image img,
.showcase-video-player {
  width: 100%;
  height: auto;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.showcase figcaption {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-align: center;
}

.chapter-center .chapter-title,
.chapter-center .prose {
  text-align: center;
}

.chapter-center .prose {
  margin-left: auto;
  margin-right: auto;
}

.chapter-center .journey-socials {
  text-align: center;
}

/* Hexfell head — title left, pitch right, divided by a vertical rule */
.hexfell-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1.1rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
}

.chapter-center .hexfell-head .chapter-title {
  align-self: center;
  text-align: left;
  margin-bottom: 0;
  white-space: nowrap;
}

.chapter-center .hexfell-head .prose {
  display: flex;
  align-items: center;
  max-width: none;
  margin: 0;
  padding-left: clamp(1.1rem, 3vw, 2.25rem);
  border-left: 1px solid var(--line-strong);
  text-align: left;
}

.hexfell-head .prose p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Journey Socials */
.journey-socials {
  margin-top: 4.5rem;
  text-align: center;
}

.journey-socials h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem clamp(1.5rem, 5vw, 3.5rem) 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Reveal on scroll (only when JS is active, so no-JS still shows content) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 880px) {
  .chapter {
    padding: clamp(2.5rem, 7vh, 4rem) clamp(1.25rem, 6vw, 2.5rem);
  }
}

@media (max-width: 700px) {
  .hexfell-head {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .chapter-center .hexfell-head .chapter-title,
  .chapter-center .hexfell-head .prose {
    text-align: center;
  }

  .chapter-center .hexfell-head .chapter-title {
    white-space: normal;
  }

  .chapter-center .hexfell-head .prose {
    display: block;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 520px) {

  .hero-social-row {
    gap: 1.1rem;
  }

  .studio-line {
    gap: 0.4rem 0.6rem;
  }

  .studio-dot {
    display: none;
  }

  .studio-tagline {
    flex-basis: 100%;
  }

  .cta-block {
    align-items: stretch;
  }

  .wishlist-pill {
    width: 100%;
    justify-content: center;
    padding-inline: 1rem;
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  .js [data-reveal] {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

