@font-face {
  font-family: "Fraunces";
  src: url("assets/Fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/DM-Sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --hero: #142f28;
  --hero-light: #244b3a;
  --hero-ink: #fff8e3;
  --hero-muted: #dfebcb;
  --hero-accent: #deefab;
  --action-ink: #172b1d;
  --paper: #f5eed8;
  --surface: #fff9e8;
  --ink: #17372d;
  --muted: #435648;
  --line: #bcc59d;
  --accent: #537a47;
  --tint: #dee4ba;
  --frame: 48% 48% 1.25rem 1.25rem / 42% 42% 1.25rem 1.25rem;
  --frame-clip: inset(0);
  --sans: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --gutter: clamp(1.05rem, 5vw, 4.5rem);
}

[data-theme="volcano"] {
  color-scheme: dark;
  --hero: #241719;
  --hero-light: #4e2725;
  --hero-ink: #fff3df;
  --hero-muted: #f4d3c1;
  --hero-accent: #ffac79;
  --action-ink: #311814;
  --paper: #2c1d1e;
  --surface: #392425;
  --ink: #fff1dc;
  --muted: #f3d0bb;
  --line: #82564b;
  --accent: #ffac79;
  --tint: #492b2b;
  --frame: 0;
  --frame-clip: polygon(8% 0, 89% 0, 100% 12%, 100% 88%, 93% 100%, 9% 100%, 0 88%, 0 10%);
}

[data-theme="savanna"] {
  --hero: #412e22;
  --hero-light: #6d4a2d;
  --hero-ink: #fff3d6;
  --hero-muted: #fae3b4;
  --hero-accent: #ffdd91;
  --action-ink: #382512;
  --paper: #f2e2b9;
  --surface: #fff1ce;
  --ink: #392717;
  --muted: #634a31;
  --line: #c9ac72;
  --accent: #865229;
  --tint: #ead29b;
  --frame: 32% 45% 2rem 2rem / 25% 34% 2rem 2rem;
}

[data-theme="iceberg"] {
  --hero: #172d50;
  --hero-light: #294c72;
  --hero-ink: #f4fbff;
  --hero-muted: #deedf8;
  --hero-accent: #c6edfa;
  --action-ink: #162e58;
  --paper: #e2f2f8;
  --surface: #f3fbff;
  --ink: #162e58;
  --muted: #375575;
  --line: #a6c7d8;
  --accent: #346297;
  --tint: #cee5f0;
  --frame: 0;
  --frame-clip: polygon(20% 0, 80% 0, 100% 20%, 100% 87%, 86% 100%, 10% 100%, 0 90%, 0 19%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: 1.75rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, input:focus-visible + .swatch {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
.skip-link {
  position: absolute;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .65rem 1rem;
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

h1, h2, h3, p, figure, dl, dd { margin: 0; }
h2, h3 { font-family: var(--display); font-weight: 700; }
h2 {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  line-height: 1.01;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h3 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.08; letter-spacing: -.02em; }

.wrap { width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto; }
.site-header, .hero, .site-footer { background: var(--hero); color: var(--hero-ink); }
.header-inner, .footer-inner { display: flex; align-items: center; gap: 1rem; }
.header-inner {
  justify-content: space-between;
  min-height: 5rem;
  border-block-end: 1px solid color-mix(in srgb, var(--hero-ink) 18%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; text-decoration: none; }
.brand img { border-radius: 28%; width: 2.625rem; height: 2.625rem; }
.header-nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2.15rem); }
.header-nav a, .back-top { font-size: .9375rem; font-weight: 650; color: var(--hero-muted); text-decoration: none; }
.header-nav a:hover, .back-top:hover { text-decoration: underline; }
.header-nav .language {
  display: inline-grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--hero-muted) 56%, transparent);
  border-radius: 50%;
}

.hero {
  background: radial-gradient(ellipse at 72% 34%, var(--hero-light), var(--hero) 74%);
  overflow: clip;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, .99fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.6rem, 6.8vw, 6.2rem) clamp(2.65rem, 5.2vw, 5rem);
}
.hero-art { position: relative; isolation: isolate; }
.hero-art::before, .hero-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14% -6% 6% -6%;
  border: 1px solid color-mix(in srgb, var(--hero-accent) 25%, transparent);
  border-radius: 50%;
  transform: rotate(-24deg);
}
.hero-art::after { inset: 9% -11% 11%; transform: rotate(24deg); }
.cover-frame {
  border-radius: var(--frame);
  clip-path: var(--frame-clip);
  overflow: hidden;
  background: var(--hero-light);
  box-shadow: 0 1.35rem 2.75rem #080e0b4f;
}
.cover-frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hero h1 { margin-block-end: clamp(.8rem, 2vw, 1.65rem); }
.hero h1 img { width: min(100%, 31rem); height: auto; aspect-ratio: 4.59; object-fit: contain; object-position: left center; }
.hero-tagline {
  max-width: 12em;
  font: 700 clamp(2.35rem, 4.65vw, 4.65rem)/1.01 var(--display);
  letter-spacing: -.05em;
  text-wrap: balance;
}
.hero-description { max-width: 33rem; margin-block: 1.45rem; font-size: clamp(1.025rem, 1.85vw, 1.275rem); color: var(--hero-muted); }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.1rem;
  padding: .63rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 100vmax;
  background: var(--hero-accent);
  color: var(--action-ink);
  font-weight: 800;
  text-decoration: none;
}
.button:hover { background: var(--hero-ink); }
.button:focus-visible { outline-color: var(--hero-accent); }
.release-status { margin-block-start: .7rem; font-size: .9rem; color: var(--hero-muted); }

.theme-bar { border-block-start: 1px solid color-mix(in srgb, var(--hero-muted) 24%, transparent); padding-block: 1.1rem 1.7rem; }
.theme-bar fieldset {
  position: relative;
  display: grid;
  grid-template-columns: minmax(11.75rem, 1fr) auto;
  align-items: end;
  gap: .65rem 1.4rem;
  min-width: 0;
  margin: 0;
  padding: .2rem 0 0;
  border: 0;
}
.theme-bar legend { padding: 0; font-family: var(--display); font-size: 1.36rem; font-weight: 700; }
.theme-bar p { align-self: center; color: var(--hero-muted); font-size: .9rem; }
.theme-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.theme-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: .52rem;
  min-height: 2.8rem;
  border: 1px solid color-mix(in srgb, var(--hero-muted) 43%, transparent);
  border-radius: .85rem;
  padding: .45rem .7rem;
  color: var(--hero-ink);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 750;
}
.theme-choice:hover { background: color-mix(in srgb, var(--hero-ink) 11%, transparent); }
.theme-choice:has(input:checked) { background: var(--hero-accent); color: var(--action-ink); border-color: var(--hero-accent); }
.theme-choice:has(input:focus-visible) { outline: 2px solid var(--hero-accent); outline-offset: 3px; }
.theme-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme-choice input:focus-visible + .swatch { outline: 0; }
.swatch {
  flex: 0 0 1.15rem;
  height: 1.15rem;
  border: 1px solid #ffffff65;
  border-radius: 50%;
  background: var(--swatch);
}
.garden { --swatch: linear-gradient(135deg, #a9c46b 50%, #236353 50%); }
.volcano { --swatch: linear-gradient(135deg, #f89463 50%, #71303d 50%); }
.savanna { --swatch: linear-gradient(135deg, #f1bd68 50%, #9a602d 50%); }
.iceberg { --swatch: linear-gradient(135deg, #d7f5fc 50%, #4c82a5 50%); }

.section { padding-block: clamp(3.25rem, 8vw, 7rem); }
.section-intro { max-width: 36rem; margin-block-start: 1.15rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.play-section, .pace-section { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(1.9rem, 7vw, 7rem); align-items: center; }
.play-steps { margin-block-start: 1.8rem; }
.play-steps div, .pace-list div { padding-block: .95rem; border-block-start: 1px solid var(--line); }
.play-steps div { display: grid; grid-template-columns: minmax(7.5rem, .7fr) minmax(0, 1.3fr); gap: .3rem 1rem; }
.play-steps dt, .pace-list dt { font-weight: 800; }
.play-steps dd, .pace-list dd { color: var(--muted); }
.play-preview {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  background: var(--surface);
}
.screenshot-mat {
  display: grid;
  place-items: center;
  padding: clamp(.7rem, 2.1vw, 1.5rem);
  background: repeating-linear-gradient(135deg, transparent 0 .75rem, color-mix(in srgb, var(--accent) 10%, transparent) .75rem calc(.75rem + 1px)), var(--tint);
}
.screenshot-mat img {
  width: min(100%, 17.5rem);
  height: auto;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: .74rem;
  box-shadow: 0 .45rem 1.35rem #17162145;
}
.play-preview figcaption { display: grid; gap: .24rem; min-height: 9.5rem; padding: 1rem 1.25rem; color: var(--muted); }
.preview-theme { font: 700 1.5rem/1.15 var(--display); color: var(--ink); }
.preview-music { color: var(--accent); font-size: .9rem; font-weight: 750; }
.preview-music span:first-child { margin-inline-end: .18rem; }

.modes { border-block: 1px solid var(--line); background: var(--tint); }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.7rem, 2.5vw, 1.5rem); margin-block-start: 2rem; }
.mode-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1.4rem; padding: clamp(1rem, 3vw, 2.4rem); background: var(--surface); }
.mode-card p { margin-block-start: .8rem; color: var(--muted); }
.journal-card, .day-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(5.5rem, .56fr); align-items: center; gap: .95rem; }
.mode-card img { width: 100%; height: auto; aspect-ratio: 3 / 5; object-fit: cover; border-radius: .6rem; box-shadow: 0 .25rem .8rem #221f232e; }
.night-card { background: #1f314c; color: #f7f3df; border-color: transparent; }
.night-card p { color: #e0eaf7; }
.pace-section { align-items: start; }
.pace-list { margin-block-start: .35rem; }
.pace-list dt { margin-block-end: .17rem; }

.site-footer { border-block-start: 1px solid color-mix(in srgb, var(--hero-accent) 30%, transparent); }
.footer-inner { justify-content: space-between; padding-block: 2rem; }
.publisher { display: grid; justify-items: end; gap: .17rem; text-decoration: none; }
.publisher span { color: var(--hero-muted); font-size: .78rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.publisher img { width: clamp(7rem, 14vw, 11rem); height: auto; }
.publisher:hover span { text-decoration: underline; }

@media (max-width: 52rem) {
  .wrap { width: calc(100% - 2 * var(--gutter)); }
  .hero-inner { gap: 2.25rem; }
  .theme-bar fieldset { grid-template-columns: 1fr; }
  .theme-choices { width: min(100%, 34rem); }
  .play-section { gap: 1.35rem; }
  .play-steps div { grid-template-columns: 1fr; }
  .journal-card, .day-card { grid-template-columns: 1fr; align-items: start; }
  .mode-card img { width: min(56%, 10rem); margin-inline: auto; }
}
@media (max-width: 39rem) {
  .header-inner { min-height: 4.1rem; }
  .header-inner .brand img { width: 2rem; height: 2rem; }
  .header-nav a:not(.language, [data-theme-nav]) { display: none; }
  .hero-inner, .play-section, .pace-section { grid-template-columns: 1fr; }
  .hero-inner { padding-block-start: 2.3rem; }
  .hero h1 img { width: min(95%, 24rem); }
  .hero-tagline { font-size: clamp(2.55rem, 8vw, 3.85rem); }
  .hero-art { width: min(92%, 24rem); margin-inline: auto; }
  .hero-art::after { inset-inline: -7%; }
  .hero-description { margin-block: 1rem 1.2rem; }
  .screenshot-mat img { width: min(85%, 17.5rem); }
  .play-preview { width: min(100%, 28rem); margin-inline: auto; }
  .mode-grid { grid-template-columns: 1fr; }
  .journal-card, .day-card { grid-template-columns: minmax(0, 1fr) minmax(4.5rem, .45fr); align-items: center; }
  .mode-card img { width: 100%; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; }
  .footer-inner .back-top { grid-row: 2; grid-column: 1; }
  .footer-inner .publisher { grid-row: 1 / 3; grid-column: 2; align-self: end; }
}
@media (max-width: 25rem) {
  .theme-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner .brand img { display: none; }
}

@media (forced-colors: active) {
  .theme-choice:has(input:checked) { border: 2px solid SelectedItem; }
  .button { border-color: ButtonText; }
}
