/* murmoon.com: the page is one night, from dusk to dawn. The sky behind every section takes the
   colour of its hour (main.js sets --sky-*), the night rail on the left follows the moon. */

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display.e0c764a8e9.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans.153fc85b70.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --night: #24161f;
  --plum: #43324a;
  --rose: #c89aa1;
  --clay: #98505e;
  --pearl: #f8e7dc;
  --blush: #f4d5c5;
  --ink: var(--pearl);
  --ink-quiet: #e6cdc5;
  --hairline: rgb(248 231 220 / 0.22);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 5vw, 80px);
  --gap: clamp(16px, 2.2vw, 32px);
  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.16vw, 1.1875rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
  --step-3: clamp(2.125rem, 1.55rem + 2.5vw, 3.875rem);
  --step-5: clamp(2.875rem, 1.6rem + 5.6vw, 6.75rem);
  --hour: clamp(3.75rem, 2.2rem + 6.6vw, 9rem);
  --radius-l: 28px;

  /* the sky of the hour in view; main.js blends them while scrolling */
  --sky-a: #3a2433;
  --sky-b: #4e3040;
  --sky-c: #6b4150;
  --stars: 0;
}

:lang(ja) {
  --serif: "Playfair Display", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", serif;
  --sans: "Plus Jakarta Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP", "Yu Gothic", sans-serif;
  word-break: auto-phrase;
  line-break: strict;
}

:lang(ko) {
  --serif: "Playfair Display", "Noto Serif CJK KR", "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
  --sans: "Plus Jakarta Sans", "Apple SD Gothic Neo", "Noto Sans CJK KR", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

:lang(ja) :is(h1, h2),
:lang(ko) :is(h1, h2) {
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 500;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:lang(ja) p,
:lang(ko) p {
  line-height: 1.85;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--pearl);
  outline-offset: 4px;
  border-radius: 8px;
}

::selection {
  background: var(--clay);
  color: var(--pearl);
}

.skip {
  position: absolute;
  z-index: 30;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--pearl);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

/* ---- the sky ---- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 52%, var(--sky-c) 100%);
}

.stars {
  position: absolute;
  inset: 0;
  opacity: var(--stars);
  background-image:
    radial-gradient(1.2px 1.2px at 8% 14%, rgb(248 231 220 / 0.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 23% 41%, rgb(248 231 220 / 0.7) 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 37% 9%, rgb(248 231 220 / 0.85) 50%, transparent 52%),
    radial-gradient(1px 1px at 52% 27%, rgb(248 231 220 / 0.6) 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 64% 58%, rgb(248 231 220 / 0.75) 50%, transparent 52%),
    radial-gradient(1px 1px at 78% 19%, rgb(248 231 220 / 0.8) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 89% 47%, rgb(248 231 220 / 0.7) 50%, transparent 52%),
    radial-gradient(1px 1px at 15% 72%, rgb(248 231 220 / 0.55) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 46% 83%, rgb(248 231 220 / 0.6) 50%, transparent 52%),
    radial-gradient(1px 1px at 71% 89%, rgb(248 231 220 / 0.5) 50%, transparent 52%);
  background-size: 520px 520px;
}

/* ---- masthead ---- */

.masthead {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-family: "Playfair Display", var(--serif);
  font-size: 1.5rem;
  text-decoration: none;
}

.wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.lang-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 999px;
  background: rgb(36 22 31 / 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lang-nav a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-quiet);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
}

.lang-nav a:hover {
  color: var(--ink);
}

.lang-nav a[aria-current="page"] {
  background: rgb(248 231 220 / 0.14);
  color: var(--ink);
}

.lang-nav .short {
  display: none;
}

@media (max-width: 599px) {
  .lang-nav .long {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .lang-nav .short {
    display: inline;
  }

  .lang-nav a {
    padding: 0 8px;
  }
}

/* ---- the night rail ---- */

.rail {
  display: none;
}

@media (min-width: 1240px) {
  .rail {
    position: fixed;
    z-index: 5;
    top: 50%;
    left: max(12px, calc(var(--gutter) / 2 - 30px));
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%);
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
  }

  .rail.is-on {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease;
  }

  .rail ol {
    position: relative;
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0 0 0 22px;
    list-style: none;
  }

  .rail ol::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 5px;
    width: 1px;
    background: var(--hairline);
  }

  .rail a {
    display: block;
    padding: 6px 0;
    color: rgb(248 231 220 / 0.62);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
  }

  .rail a:hover,
  .rail a[aria-current="true"] {
    color: var(--ink);
  }

  .rail-moon {
    position: absolute;
    top: 0;
    left: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fffaf4, #f3dcd0 60%, #d9b4ad);
    box-shadow: 0 0 14px 3px rgb(248 231 220 / 0.45);
    pointer-events: none;
  }
}

/* ---- shared pieces ---- */

.button,
.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
}

.button {
  background: var(--clay);
  color: var(--pearl);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: #a85b69;
}

.store-soon {
  border: 1px solid rgb(248 231 220 / 0.3);
  background: rgb(36 22 31 / 0.35);
}

.store-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 12px 2px rgb(200 154 161 / 0.8);
}

.device {
  position: relative;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(155deg, #4a333f, #1d1218 60%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 50px 90px -30px rgb(10 5 8 / 0.85),
    0 0 0 1px rgb(248 231 220 / 0.14);
}

.device img {
  width: 100%;
  border-radius: 36px;
}

.still {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-l);
  background: var(--plum);
}

.still > img,
.still > video,
.band > img,
.band > video,
.hero-media > img,
.hero-media > video,
.dawn-media > img,
.dawn-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the loop fades in over its still once it really plays (main.js) */
video[data-src] {
  opacity: 0;
  transition: opacity 1.4s ease;
}

video.is-playing {
  opacity: 1;
}

.hour {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
  align-items: center;
  padding: clamp(96px, 15vh, 180px) var(--gutter);
}

.hour-time {
  margin-bottom: 20px;
  color: var(--rose);
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--hour);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.hour h2 {
  max-width: 18ch;
  font-size: var(--step-3);
}

:lang(ja) .hour h2,
:lang(ko) .hour h2 {
  max-width: 15em;
}

.hour-copy > p:not(.hour-time) {
  max-width: 32em;
  margin-top: 22px;
}

.hour-copy > .aside {
  margin-top: 14px;
  color: var(--ink-quiet);
  font-size: var(--step--1);
}

/* ---- hero ---- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  min-height: max(660px, 100svh);
  padding: 120px var(--gutter) clamp(56px, 10vh, 120px);
}

.hero-media {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 74%, transparent);
  mask-image: linear-gradient(#000 74%, transparent);
}

.hero-media > img,
.hero-media > video {
  object-position: 62% 40%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(30 17 25 / 0.88) 0%, rgb(30 17 25 / 0.62) 34%, rgb(30 17 25 / 0.12) 62%, rgb(30 17 25 / 0) 80%),
    linear-gradient(0deg, rgb(30 17 25 / 0.55) 0%, rgb(30 17 25 / 0) 45%),
    linear-gradient(180deg, rgb(30 17 25 / 0.5) 0%, rgb(30 17 25 / 0) 22%);
}

.hero-copy {
  grid-column: 1 / span 7;
}

.hero h1 {
  max-width: 11ch;
  font-size: var(--step-5);
}

:lang(ja) .hero h1,
:lang(ko) .hero h1 {
  max-width: 11em;
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5.25rem);
}

.hero-lede {
  max-width: 31em;
  margin-top: 28px;
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 40px;
}

.device-hero {
  grid-column: 9 / span 3;
  justify-self: end;
  width: min(100%, 320px);
  margin-bottom: -9vh;
}

/* ---- 21:00, wind down ---- */

.hour-21 .hour-copy {
  grid-row: 1;
  grid-column: 1 / span 4;
}

.still-candle {
  grid-row: 1;
  grid-column: 6 / -1;
  margin-right: calc(var(--gutter) * -1);
  border-radius: var(--radius-l) 0 0 var(--radius-l);
}

.device-routine {
  z-index: 2;
  grid-row: 1;
  grid-column: 5 / span 3;
  width: min(100%, 300px);
  margin-top: 18vh;
}

/* ---- 22:00, textures ---- */

.hour-22 {
  padding-top: 0;
  row-gap: 0;
}

.band {
  position: relative;
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
  margin: 0 calc(var(--gutter) * -1);
  overflow: hidden;
  background: var(--plum);
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 62%, transparent);
  mask-image: linear-gradient(transparent, #000 16%, #000 62%, transparent);
}

.hour-22 .hour-copy {
  position: relative;
  grid-column: 1 / span 7;
  margin-top: -9vw;
}

.triggers {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 0.05em 0.55em;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 0.9rem + 3.4vw, 4.5rem);
  line-height: 1.18;
}

.triggers li:nth-child(even) {
  color: var(--rose);
}

/* ---- 23:00, the mixer ---- */

.still-orbs {
  grid-row: 1 / span 2;
  grid-column: 1 / span 6;
  margin-left: calc(var(--gutter) * -1);
  border-radius: 0 var(--radius-l) var(--radius-l) 0;
}

.hour-23 .hour-copy {
  grid-row: 1;
  grid-column: 8 / -1;
  align-self: end;
}

.panel-mixer {
  grid-row: 2;
  grid-column: 8 / -1;
  align-self: start;
  width: min(100%, 380px);
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 40px 80px -30px rgb(10 5 8 / 0.8), 0 0 0 1px rgb(248 231 220 / 0.14);
}

/* ---- 23:30, the sleep timer ---- */

.hour-2330 .hour-copy {
  grid-column: 1 / span 5;
}

.timer {
  grid-column: 7 / -1;
  justify-self: center;
  width: min(100%, 460px);
}

.timer-fallback {
  font-family: var(--serif);
  font-size: var(--step-1);
}

.dial {
  position: relative;
  width: min(100%, 400px);
  margin: 0 auto;
  aspect-ratio: 1;
}

.dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dial circle {
  fill: none;
  stroke-width: 6;
}

.dial-track {
  stroke: rgb(248 231 220 / 0.14);
}

.dial-fill {
  stroke: var(--rose);
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 67;
  filter: drop-shadow(0 0 6px rgb(200 154 161 / 0.7));
}

@media (prefers-reduced-motion: no-preference) {
  .dial-fill {
    transition: stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.dial-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  font-variant-numeric: lining-nums tabular-nums;
}

.timer-label {
  display: block;
  margin-top: 28px;
  font-weight: 600;
  text-align: center;
}

.timer-range {
  width: 100%;
  height: 48px;
  margin: 8px 0 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.timer-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: rgb(248 231 220 / 0.22);
}

.timer-range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: rgb(248 231 220 / 0.22);
}

.timer-range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -12px;
  border: 0;
  border-radius: 50%;
  background: var(--pearl);
  box-shadow: 0 0 0 6px rgb(200 154 161 / 0.35);
  -webkit-appearance: none;
  appearance: none;
}

.timer-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--pearl);
  box-shadow: 0 0 0 6px rgb(200 154 161 / 0.35);
}

.timer-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 0;
}

.timer-times div {
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
}

.timer-times dt {
  color: var(--ink-quiet);
  font-size: var(--step--1);
}

.timer-times dd {
  margin: 4px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--step-3);
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.1;
}

/* ---- 00:00, offline ---- */

.hour-2330 {
  padding-bottom: clamp(48px, 8vh, 96px);
}

.hour-00 {
  row-gap: 0;
  padding-top: 0;
}

.still-pillow {
  grid-row: 1;
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
  margin: 0 calc(var(--gutter) * -1);
  border-radius: 0;
}

.still-pillow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(26 15 22 / 0) 30%, rgb(26 15 22 / 0.78) 78%);
}

.hour-00 .hour-copy {
  z-index: 1;
  grid-row: 1;
  grid-column: 8 / -1;
}

.device-player {
  z-index: 2;
  grid-row: 1 / span 2;
  grid-column: 3 / span 3;
  align-self: end;
  width: min(100%, 300px);
  margin-bottom: -12vh;
}

/* ---- languages ---- */

.langs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
  align-items: center;
  padding: clamp(136px, 18vh, 200px) var(--gutter) clamp(96px, 15vh, 180px);
}

.langs-copy {
  grid-column: 1 / span 5;
}

.langs h2 {
  max-width: 12ch;
  font-size: var(--step-3);
}

:lang(ja) .langs h2,
:lang(ko) .langs h2 {
  max-width: 14em;
}

.langs-copy p {
  max-width: 32em;
  margin-top: 22px;
}

.lang-wall {
  grid-column: 7 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-wall a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.75rem);
  line-height: 1.1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-wall a:lang(en),
.lang-wall a:lang(uz) {
  font-family: "Playfair Display", Georgia, serif;
}

.lang-wall a:lang(ja) {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", serif;
}

.lang-wall a:lang(ko) {
  font-family: "Noto Serif CJK KR", "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
}

.lang-wall a:hover {
  color: var(--rose);
}

.lang-wall a[aria-current="page"]::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  align-self: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffaf4, #f3dcd0 60%, #d9b4ad);
  box-shadow: 0 0 16px 3px rgb(248 231 220 / 0.45);
}

/* ---- dawn ---- */

.dawn {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: max(620px, 100svh);
  padding: 120px var(--gutter);
  text-align: center;
}

.dawn-media {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 18%);
  mask-image: linear-gradient(transparent, #000 18%);
}

.dawn-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, rgb(34 20 29 / 0.66), rgb(34 20 29 / 0.25) 70%, rgb(34 20 29 / 0.1));
}

.dawn-copy {
  display: grid;
  justify-items: center;
  max-width: 40rem;
}

.dawn h2 {
  max-width: 14ch;
  font-size: var(--step-5);
}

:lang(ja) .dawn h2,
:lang(ko) .dawn h2 {
  max-width: 15em;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
}

.dawn-copy p:not(.store-soon) {
  max-width: 30em;
  margin-top: 24px;
  font-size: var(--step-1);
  line-height: 1.55;
}

.dawn .store-soon {
  margin-top: 36px;
}

/* ---- footer: morning ---- */

.foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px var(--gap);
  align-items: center;
  padding: 56px var(--gutter) max(40px, env(safe-area-inset-bottom));
  background: var(--blush);
  color: var(--plum);
}

.foot .wordmark {
  color: var(--plum);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.foot-links a:hover {
  background: rgb(67 50 74 / 0.08);
}

.foot :focus-visible {
  outline-color: var(--plum);
}

.foot-legal {
  grid-column: 1 / -1;
  font-size: var(--step--1);
}

.foot-legal + .foot-legal {
  margin-top: -12px;
}

/* ---- tablets and phones ---- */

@media (max-width: 899px) {
  .hero,
  .hour,
  .langs {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    align-items: start;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 72px;
  }

  .hero-media {
    position: relative;
    z-index: 0;
    grid-row: 1;
    aspect-ratio: 4 / 5;
    max-height: 72svh;
    margin: 0 calc(var(--gutter) * -1);
    -webkit-mask-image: linear-gradient(#000 70%, transparent);
    mask-image: linear-gradient(#000 70%, transparent);
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgb(30 17 25 / 0.55) 0%, rgb(30 17 25 / 0) 26%);
  }

  .hero-copy,
  .device-hero {
    grid-column: 1;
  }

  .hero-copy {
    position: relative;
    grid-row: 2;
    margin-top: -18vw;
  }

  .device-hero {
    grid-row: 3;
    justify-self: center;
    width: min(72%, 300px);
    margin: 64px 0 0;
  }

  .hour {
    row-gap: 40px;
    padding-block: 96px;
  }

  .hour > * {
    grid-column: 1;
    grid-row: auto;
  }

  .hour-21 .hour-copy,
  .still-candle,
  .device-routine,
  .still-orbs,
  .hour-23 .hour-copy,
  .panel-mixer,
  .hour-2330 .hour-copy,
  .timer,
  .still-pillow,
  .hour-00 .hour-copy,
  .device-player,
  .langs-copy,
  .lang-wall {
    grid-column: 1;
    grid-row: auto;
  }

  .still-candle {
    margin-right: calc(var(--gutter) * -1);
  }

  .device-routine {
    justify-self: end;
    width: min(58%, 260px);
    margin: -30vw 4vw 0 0;
  }

  .still-orbs {
    margin-left: calc(var(--gutter) * -1);
  }

  .hour-23 .hour-copy {
    align-self: start;
  }

  .panel-mixer {
    justify-self: center;
    width: min(100%, 420px);
  }

  .hour-22 .hour-copy {
    margin-top: -14vw;
  }

  .band {
    aspect-ratio: 4 / 3;
  }

  .triggers {
    margin-top: 48px;
  }

  .timer {
    justify-self: stretch;
  }

  .hour-00 {
    row-gap: 40px;
    padding-top: 0;
  }

  .still-pillow {
    aspect-ratio: 4 / 3;
  }

  .still-pillow::after {
    background: linear-gradient(180deg, rgb(26 15 22 / 0) 55%, rgb(26 15 22 / 0.45));
  }

  .device-player {
    justify-self: center;
    width: min(66%, 280px);
    margin: 0;
  }

  .langs {
    padding-top: 120px;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-links {
    justify-content: flex-start;
    margin-left: -12px;
  }
}
