/* Miso: one drive, morning to night. Cocoa and cream from the brand, pixel
   type for the big lines, Barlow (DIN-ish, like the gauge numerals) for
   reading. Every picture is round because the product is. */
@font-face { font-family: "Pixelify Sans"; font-weight: 500; font-display: swap; src: url(fonts/pixelify-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-weight: 700; font-display: swap; src: url(fonts/pixelify-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); }

:root {
  --cocoa: #22150d;
  --cocoa-2: #2c1b10;
  --bark: #3b2616;
  --edge: #6d4320;
  --cream: #ffd9a3;
  --cream-hi: #ffe6c2;
  --latte: #c9a27a;
  --red: #ff4a3d;
  --paper: #f4e3c8;
  --ink: #3b2616;
  /* the road colour at the foot of each horizon, so chapters run on from it */
  --c-day: #2b2320;
  --c-cruise: #2a2023;
  --c-dusk: #1a1020;
  --c-night: #0a0d1c;
  --pixel: "Pixelify Sans", ui-monospace, monospace;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--cocoa); color: var(--cream);
  font: 400 1.125rem/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--pixel); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: 0; text-wrap: balance; }
/* Pixelify's fi ligature reads as "At" at heading sizes */
h1, h2, h3, .clock, .sign { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }
h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--cream); color: var(--cocoa); padding: .6rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.section-lede, .chapter-lede { color: var(--latte); max-width: 36rem; margin: 1.1rem 0 2.2rem; font-size: 1.2rem; }
.chapter-lede { color: #f1d6b0; }
.fine { color: var(--latte); font-size: .95rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: 0 1.5rem; border: 2px solid var(--cream); border-radius: 6px;
  background: var(--cream); color: var(--cocoa); font: 600 1.05rem/1 var(--body);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 #b8803f;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { background: var(--cream-hi); border-color: var(--cream-hi); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #b8803f; }
.btn-quiet { background: transparent; color: var(--cream); box-shadow: none; }
.btn-quiet:hover { background: var(--bark); border-color: var(--cream); }
.btn-small { min-height: 2.5rem; padding: 0 1rem; font-size: .95rem; box-shadow: 0 3px 0 #b8803f; }

/* header */
.top { max-width: var(--wrap); margin: 0 auto; padding: 1.4rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--cream); }
.wordmark { height: 30px; width: auto; }
.top nav { display: flex; align-items: center; gap: 1.5rem; font-weight: 500; }
.top nav a:not(.btn) { text-decoration: none; color: var(--latte); }
.top nav a:not(.btn):hover { color: var(--cream); }
@media (max-width: 820px) { .top nav a:not(.btn) { display: none; } }

/* hero */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 2rem 1.5rem 3.5rem; display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 3rem; align-items: center; }
.lede { font-size: 1.35rem; color: #f3cf9d; max-width: 31rem; margin: 1.4rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--latte); font-size: .98rem; }
.facts li { display: flex; align-items: center; gap: .5rem; }
.facts li::before { content: ""; width: 6px; height: 6px; background: var(--cream); flex: none; }
.hero-gauge { margin: 0; position: relative; }
.bezel { border-radius: 50%; padding: 14px; background: #140c07; border: 1px solid var(--edge); aspect-ratio: 1; box-shadow: 0 0 0 10px #1a100a, 0 30px 80px -20px #000; }
.screen { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #000; }
.play { position: absolute; right: 2%; bottom: 2%; min-height: 2.3rem; padding: 0 .95rem; border: 1px solid var(--edge); border-radius: 999px; background: var(--cocoa-2); color: var(--cream); font: 500 .9rem/1 var(--body); cursor: pointer; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: .5rem; }
  .hero-gauge { max-width: 460px; width: 100%; margin: 0 auto; }
}

/* pixel horizons between the parts of the day */
.horizon { width: 100%; height: clamp(90px, 15vw, 190px); object-fit: cover; object-position: center bottom; image-rendering: pixelated; }

/* chapters */
.chapter { padding: 3.5rem 0 5.5rem; position: relative; }
.c-morning { background: var(--cocoa); }
.c-day { background: var(--c-day); }
.c-cruise { background: var(--c-cruise); overflow: hidden; }
.c-music { background: var(--c-dusk); }
.c-night { background: var(--c-night); padding-bottom: 6.5rem; }
.clock { font: 500 1.05rem/1 var(--pixel); color: var(--latte); margin: 0 0 .9rem; }

/* round clips */
.clips { display: grid; gap: 2rem; }
.clips.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clips.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clips.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.clip { margin: 0; }
.ring { border-radius: 50%; padding: 8px; background: #140c07; border: 1px solid #3a2a22; aspect-ratio: 1; position: relative; }
.ring video, .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #000; }
.ring video { cursor: pointer; }
.clip figcaption { margin-top: 1rem; color: #d9c2a4; font-size: 1rem; }
.clip figcaption b { display: block; color: var(--cream); font-weight: 600; font-size: 1.15rem; }
.more { color: #d9c2a4; max-width: 46rem; margin: 2.6rem 0 0; }
@media (max-width: 900px) {
  .clips.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clips.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 560px) {
  .clips.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .clips.three .clip:last-child { grid-column: 1 / -1; width: 60%; justify-self: center; }
  .clips { gap: 1.4rem 1rem; }
  .clip figcaption { font-size: .95rem; }
}

/* cruise: a road keeps rolling under the reel */
.road { position: absolute; left: 0; right: 0; bottom: 3.4rem; height: 3px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--cream) 0 34px, transparent 34px 90px); }
@media (prefers-reduced-motion: no-preference) {
  .road { animation: roll 1.1s linear infinite; }
  @keyframes roll { to { background-position: -90px 0; } }
}
.reel {
  max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem 2rem;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem;
}
@media (max-width: 900px) {
  .reel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.2rem; padding-bottom: 2.4rem; scrollbar-width: none; }
  .reel::-webkit-scrollbar { display: none; }
  .reel .clip { flex: 0 0 62%; scroll-snap-align: center; }
}

/* music */
.music-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.c-music p { color: #e9cdb4; }
.c-music .fine { color: #c7a2a8; }
@media (max-width: 900px) { .music-grid { grid-template-columns: 1fr; } }

/* night */
.night-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.c-night .chapter-lede { color: #cfd5ee; }
.c-night .clock { color: #8f9bc8; }
.c-night .ring { border-color: #1d2650; background: #05070f; }
@media (max-width: 760px) { .night-grid { grid-template-columns: 1fr; gap: 2rem; } .night-grid .clip { max-width: 320px; } }

/* yours: the one light room in the house */
.yours { background: var(--paper); color: var(--ink); padding: 6rem 0; }
.yours h2 { max-width: 18ch; }
.yours-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 300px); gap: 3rem; align-items: center; margin: 2.6rem 0 3rem; }
.bond { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.bond li { padding-left: 1.6rem; position: relative; color: #5b3d23; }
.bond li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: var(--edge); }
.bond b { color: var(--ink); font-weight: 600; }
.yours .ring { background: #1b100a; border-color: #d2b48c; }
.looks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(10, 96px); justify-content: space-between; gap: .75rem; }
.looks img { width: 96px; height: 96px; image-rendering: pixelated; }
@media (prefers-reduced-motion: no-preference) {
  .looks img { transition: transform .15s steps(3); }
  .looks li:hover img { transform: translateY(-8px); }
}
@media (max-width: 1100px) { .looks { grid-template-columns: repeat(5, 96px); justify-content: start; gap: 1rem 1.5rem; } }
@media (max-width: 760px) { .yours-grid { grid-template-columns: 1fr; } .yours-grid .clip { max-width: 280px; } }
@media (max-width: 600px) { .looks { grid-template-columns: repeat(5, 1fr); gap: .75rem .25rem; } .looks img { width: 64px; height: 64px; margin: 0 auto; } }

/* the gauge */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-top: 6rem; padding-bottom: 6rem; }
.screens-list { margin: 0; }
.screens-list dt { font-weight: 600; font-size: 1.15rem; margin-top: 1.3rem; }
.screens-list dd { margin: .25rem 0 0; color: var(--latte); }
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.screens figure { margin: 0; }
.screens figure:last-child { grid-column: 1 / -1; width: 58%; justify-self: center; }
.round { width: 100%; height: auto; border-radius: 50%; border: 1px solid var(--bark); }
.screens figcaption { text-align: center; color: var(--latte); margin-top: .5rem; font-size: .95rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; padding-top: 4rem; padding-bottom: 4rem; } }

/* why: six plain reasons, two columns, a pixel square for each */
.why { padding-top: 6rem; padding-bottom: 2rem; }
.why-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3.5rem; }
.why-list > div { padding-left: 1.6rem; position: relative; }
.why-list > div::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 9px; background: var(--cream); }
.why-list dt { font-weight: 600; font-size: 1.2rem; }
.why-list dd { margin: .35rem 0 0; color: var(--latte); }
@media (max-width: 760px) { .why-list { grid-template-columns: 1fr; gap: 1.6rem; } }

/* compatibility */
.checker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; padding-top: 3rem; padding-bottom: 6rem; align-items: start; }
.car-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.car-form label { display: grid; gap: .4rem; align-content: start; font-weight: 500; font-size: 1rem; }
.car-form label:first-child { grid-column: 1 / -1; }
.car-form select, .car-form input, .notify-form input[type=email] {
  width: 100%; min-height: 3rem; padding: 0 .9rem; border-radius: 8px;
  border: 1px solid var(--edge); background: #170e08; color: var(--cream); font: 400 1.05rem var(--body);
}
.car-form select {
  appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23c9a27a'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.car-form select:disabled { opacity: .5; }
.hint { color: var(--latte); font-size: .9rem; font-weight: 400; }
.hint:empty { display: none; }
.result { background: var(--cocoa-2); border: 1px solid var(--bark); border-radius: 14px; padding: 2rem; min-height: 22rem; }
.result-empty { display: grid; place-items: center; text-align: center; gap: 1.2rem; min-height: 18rem; color: var(--latte); }
.result-empty .mascot { width: 84px; color: var(--edge); }
.verdict { margin-bottom: .8rem; }
.verdict h3 { font: 700 1.8rem/1.1 var(--pixel); margin: 0; }
.result .summary { color: #f3cf9d; }
.rows { list-style: none; margin: 1.4rem 0 0; padding: 0; border-top: 1px solid var(--bark); }
.rows li { display: grid; grid-template-columns: 5.5rem 1fr; gap: .2rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--bark); }
.rows .st { font-weight: 600; font-size: .95rem; padding-top: .1rem; }
.rows .st.yes { color: var(--cream); }
.rows .st.varies { color: var(--latte); }
.rows .st.no { color: var(--red); }
.rows .lbl { font-weight: 600; }
.rows .note { grid-column: 2; color: var(--latte); font-size: .98rem; }
.tips { margin: 1.2rem 0 0; padding: 0; list-style: none; color: var(--latte); font-size: .98rem; }
.tips li + li { margin-top: .4rem; }
@media (max-width: 900px) { .checker { grid-template-columns: 1fr; padding-bottom: 4rem; } }
@media (max-width: 520px) { .car-form { grid-template-columns: 1fr; } .result { padding: 1.4rem; } }

/* updates */
.band { background: #120b07; padding: 5rem 0; }
.split-narrow { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .split-narrow { grid-template-columns: 1fr; gap: 1.5rem; } }

/* what's next, inside the updates band */
.next-h { font: 700 1.25rem/1.2 var(--pixel); font-variant-ligatures: none; margin: 2.2rem 0 1rem; }
.next { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.next li { padding-left: 1.6rem; position: relative; color: var(--latte); }
.next li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border: 2px solid var(--cream); }
.next b { color: var(--cream); font-weight: 600; }

/* our story: the one personal page, a letter on cocoa */
.story { background: var(--cocoa-2); border-top: 1px solid var(--bark); border-bottom: 1px solid var(--bark); padding: 6rem 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 4rem; align-items: start; }
.story-pic { margin: 0; position: sticky; top: 2rem; }
.story-pic img { width: 100%; height: auto; image-rendering: pixelated; background: var(--paper); border: 6px solid var(--bark); }
.story-pic figcaption { margin-top: .8rem; color: var(--latte); font: 500 .95rem/1.3 var(--pixel); }
.story-copy { max-width: 38rem; }
.story-copy h2 { margin-bottom: 1.6rem; }
.story-copy p { color: #f1d6b0; }
.sign { margin-top: 2rem; font: 700 1.6rem/1 var(--pixel); color: var(--cream) !important; }
.sign span { display: block; margin-top: .5rem; font: 400 .95rem var(--body); color: var(--latte); }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; gap: 2rem; } .story-pic { position: static; max-width: 200px; } }

/* notify */
.notify { padding-top: 6rem; padding-bottom: 5rem; max-width: 760px; }
.notify-mascot { width: 64px; color: var(--cream); margin-bottom: 1.6rem; }
@media (prefers-reduced-motion: no-preference) {
  .notify-mascot { animation: bob 1.6s steps(2) infinite; }
  @keyframes bob { 50% { transform: translateY(-4px); } }
}
.notify-form { display: flex; gap: .8rem; flex-wrap: wrap; }
.notify-form input[type=email] { flex: 1 1 16rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.6em; margin-top: 1rem; font-weight: 500; }
.form-msg.err { color: var(--red); }

/* footer */
.foot { border-top: 1px solid var(--bark); padding: 2.5rem 1.5rem 3rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; color: var(--latte); font-size: .95rem; }
.foot .mascot { width: 40px; color: var(--cream); }
.foot p { margin: 0; }

/* 404 */
.lost { min-height: 80vh; display: grid; place-content: center; justify-items: start; gap: 1rem; }
.lost .mascot { width: 72px; color: var(--cream); }
.lost h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
