/* Talk with Mike, Sleepy Planet's page. The SP look from sleepy-planet/assets/grid.css:
   night ground, JetBrains Mono only, amber labels, blue-grey text, thin rules. */
:root {
  --night: #05060a; --hi: #e6edf5; --text: #9fb0c2; --soft: #7d8ea0; --rule: #1e2732; --line: #2a3644;
  --amber: #e8943a; --amber-hi: #f0a44c; --signal: #e8943a; --dust1: #171e27; --dust2: #2a3644;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace; --pad: clamp(20px, 3.4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--night); color: var(--text); font-family: var(--mono); font-weight: 400; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
#ground { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.top, .frame { position: relative; z-index: 1; }
p, dd, h1, label { text-wrap: pretty; }
h1 { text-wrap: balance; font-weight: 400; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
* { scrollbar-width: thin; scrollbar-color: rgba(232,148,58,.55) transparent; }

/* the lantern */
.lantern { display: block; flex: none; width: 15px; aspect-ratio: 406 / 704; background: var(--amber);
  -webkit-mask: url("lantern.svg") center / contain no-repeat; mask: url("lantern.svg") center / contain no-repeat; }
.lantern.big { width: clamp(34px, 3vw, 58px); filter: drop-shadow(0 0 18px rgba(232,148,58,.45)); margin-bottom: 6px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--pad); }
.home { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; color: var(--amber); white-space: nowrap; }
@media (hover: hover) { .home:hover { color: var(--amber-hi); } }

.frame { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 4vh var(--pad) 6vh; display: flex; flex-direction: column; gap: 22px; }
.stage { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.stage.in { animation: in .3s ease; }
@keyframes in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stage.in { animation: none; } }

.kick { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; gap: 10px; }
.kick i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(232,148,58,.7); display: block; flex: none; }
.stage h1 { font-size: clamp(27px, 3.3vw, 72px); line-height: 1.14; letter-spacing: -0.03em; color: var(--hi); }
.lede { font-size: clamp(16px, 1.2vw, 25px); line-height: 1.6; color: var(--text); }
.loading, .flash { font-size: 14px; color: var(--soft); }
.flash { color: var(--amber); }
.soft { color: var(--soft); }
.back, .link { font-size: 13px; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 1px;
  text-underline-offset: 6px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.back { align-self: flex-start; min-height: 44px; letter-spacing: .14em; text-transform: uppercase; font-size: 12px;
  color: var(--soft); text-decoration-color: var(--line); margin: -10px 0 -8px; }
.back::before { content: "←"; color: var(--amber); }
.tz { font-size: 12px; letter-spacing: .06em; color: var(--soft); }
.tzbtn { color: var(--hi); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; padding: 12px 0; font-size: 12px; letter-spacing: .06em; }
/* the zone control on the picker: a label and a plain list, always in view */
.tzf { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.tzf > span:first-child { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }
.tzwrap { position: relative; display: inline-flex; min-width: 0; max-width: 100%; }
.tzwrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--amber); border-bottom: 1.5px solid var(--amber); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.tzsel { -webkit-appearance: none; appearance: none; font-size: 15px; min-height: 44px; padding: 0 38px 0 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--night); color: var(--hi); max-width: 100%; min-width: 0; text-overflow: ellipsis; cursor: pointer; }
@media (hover: hover) { .tzsel:hover { border-color: var(--amber); } }
/* the two halves of a screen: one column until the window is wide, then side by side */
.split, .lead, .work { display: contents; }

/* 1. the door */
.door { display: grid; gap: 34px; }
.say { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.go { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 6px; }
.k-next { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.btn { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; min-height: 50px; padding: 0 24px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--amber); color: #05070b; border-radius: 2px; }
@media (hover: hover) { .btn:hover { background: var(--amber-hi); } }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: default; }

/* facts: the title block */
.facts { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--rule); font-size: clamp(15px, 1.05vw, 21px); align-content: start; }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.facts dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); padding-right: 28px; padding-top: 18px; }
.facts dd { min-width: 0; overflow-wrap: anywhere; color: var(--hi); }
.facts .link { padding: 6px 0; margin: -6px 0; font-size: inherit; white-space: normal; }

/* 2. days and times */
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; width: 66px; padding: 11px 0 9px; border: 1px solid var(--line); border-radius: 2px; background: var(--night); color: var(--hi); }
.day.on { border-color: var(--amber); background: var(--amber); color: #05070b; }
.d-wd, .d-m { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.day.on .d-wd, .day.on .d-m { color: #05070b; }
.d-n { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.dayname { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(104px, 8vw, 170px), 1fr)); gap: 8px; }
.time { min-height: 48px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 2px; background: var(--night); color: var(--hi); font-size: clamp(15px, 1vw, 20px); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .time:hover, .day:not(.on):hover { border-color: var(--amber); color: var(--amber); } }
.time:active { transform: translateY(1px); }

/* 3. form */
.who-form { display: grid; gap: 18px; }
.who-form label { display: grid; gap: 8px; }
.who-form label span { font-size: 11px; letter-spacing: .18em; color: var(--amber); text-transform: uppercase; }
.who-form label em { font-style: normal; color: var(--soft); letter-spacing: .06em; text-transform: none; }
.who-form input, .who-form textarea { width: 100%; font-size: 17px; padding: 12px 12px; border: 1px solid var(--line); border-radius: 2px; background: #04060a; color: var(--hi); }
.who-form input:focus, .who-form textarea:focus { outline: none; border-color: var(--amber); }
.who-form textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.send { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 6px; }
.note { font-size: 13px; color: var(--amber); }
.link { color: var(--hi); padding: 8px 0; font-size: 14px; }
.link.quiet { color: var(--soft); text-decoration-color: var(--line); }

/* 4. booked */
.acts { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.keep { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.55; color: var(--text); }
.keep .soft { font-size: 13px; }
.keep-row { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.keep-row code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 2px; background: #04060a; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.copy { flex: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; min-height: 44px; color: var(--hi); }
@media (hover: hover) { .copy:hover { border-color: var(--amber); color: var(--amber); } }
.change { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.change-sep { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nojs { padding: var(--pad); }

@media (max-width: 640px) {
  .frame { padding-top: 2vh; }
  .times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .time { padding: 12px 2px; }
}

/* past the phone the times run like a line of type and wrap, so a short day never leaves one box stranded in a grid */
@media (min-width: 641px) and (max-width: 1099px) {
  .times { display: flex; flex-wrap: wrap; }
  .time { width: clamp(112px, 9.4vw, 200px); }
}

/* big screens: every screen is two halves, set in the middle of the window's height.
   The words on the left, the thing you do on the right. */
@media (min-width: 1100px) {
  .frame { max-width: none; padding: 2vh var(--pad) 4vh; }
  .stage { justify-content: center; padding-bottom: 6vh; }
  .door, .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: clamp(56px, 7vw, 180px); align-items: center; }
  .lead, .work { display: flex; flex-direction: column; gap: clamp(20px, 2.6vh, 34px); min-width: 0; }
  .lead { justify-content: center; }
  .stage h1 { font-size: clamp(44px, 3.6vw, 84px); }
  .lede { font-size: clamp(17px, 1.25vw, 26px); }
  .kick, .dayname { font-size: clamp(12px, .85vw, 16px); }
  .facts { font-size: clamp(16px, 1.15vw, 23px); }
  .facts dt { font-size: clamp(11px, .8vw, 15px); }
  .facts dt, .facts dd { padding: clamp(14px, 2vh, 24px) 0; }
  .facts dt { padding-top: calc(clamp(14px, 2vh, 24px) + 4px); padding-right: clamp(28px, 3vw, 64px); }
  .btn { min-height: clamp(50px, 3.6vw, 76px); padding: 0 clamp(24px, 2vw, 44px); font-size: clamp(13px, .95vw, 19px); }
  .back { margin: 0 0 -6px; }
  /* days and times fill their half */
  .days { flex-wrap: wrap; overflow: visible; gap: clamp(8px, .7vw, 14px); }
  .day { width: clamp(72px, 5.6vw, 124px); padding: clamp(11px, 1.6vh, 20px) 0 clamp(9px, 1.4vh, 18px); }
  .d-n { font-size: clamp(22px, 1.8vw, 40px); }
  .d-wd, .d-m { font-size: clamp(11px, .75vw, 15px); }
  .times { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(8px, .7vw, 14px); }
  .time { min-height: clamp(52px, 6.4vh, 84px); font-size: clamp(16px, 1.15vw, 23px); }
  .tzsel { font-size: clamp(15px, 1.05vw, 20px); min-height: clamp(44px, 3.2vw, 60px); }
  .who-form label span, .tzf > span:first-child { font-size: clamp(11px, .8vw, 15px); }
  .who-form input, .who-form textarea { font-size: clamp(17px, 1.15vw, 22px); padding: clamp(12px, 1.6vh, 18px) 14px; }
  .who-form textarea { min-height: clamp(110px, 16vh, 220px); }
  .keep { font-size: clamp(15px, 1.05vw, 20px); padding-top: 0; border-top: 0; }
  .keep .soft, .link { font-size: clamp(13px, .95vw, 18px); }
  .tz { font-size: clamp(12px, .8vw, 15px); }
}
.home.mark { min-width: 44px; }
.home.mark .lantern { width: 22px; filter: drop-shadow(0 0 12px rgba(232,148,58,.45)); }

/* The page never scrolls (Mike, 2026-11-14). The window is the page: the body is locked to it,
   the stage fills it, and the spacing breathes with the window's height instead of being squeezed. */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { height: 100dvh; min-height: 0; }
.frame { min-height: 0; }
.stage { flex: 1; min-height: 0; }
.frame > .tz { flex: none; }

@media (max-width: 640px) {
  :root { --u: clamp(12px, 2.7dvh, 26px); }
  .top { padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 0; }
  .frame { padding-top: clamp(8px, 2.4dvh, 28px); padding-bottom: max(clamp(12px, 2.6dvh, 28px), env(safe-area-inset-bottom)); gap: var(--u); }
  .stage { gap: var(--u); }
  .stage h1 { font-size: clamp(25px, min(7.6vw, 4.3dvh), 34px); }
  .lede { font-size: clamp(15px, 2.3dvh, 18px); line-height: 1.55; }

  /* the door: the words up top, the facts sitting on the bottom of the window */
  .door { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--u); }
  .say { gap: var(--u); }
  .go { padding-top: clamp(0px, 1dvh, 10px); gap: 14px; }
  .btn { min-height: clamp(46px, 7dvh, 56px); }
  .facts { font-size: clamp(15px, 2.2dvh, 17px); }
  .facts dt, .facts dd { padding: clamp(9px, 1.9dvh, 17px) 0; }
  .facts dt { padding-top: calc(clamp(9px, 1.9dvh, 17px) + 3px); padding-right: 24px; }

  /* days and times */
  .day { padding: clamp(8px, 1.5dvh, 13px) 0 clamp(6px, 1.2dvh, 11px); }
  .times { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 1.2dvh, 10px) 6px; }
  .time { min-height: clamp(44px, 6.6dvh, 58px); padding: 0; font-size: 14px; letter-spacing: -0.02em; }
  .tzf { flex-direction: column; align-items: stretch; gap: clamp(6px, 1dvh, 9px); }
  .tzsel { width: 100%; font-size: 16px; }

  /* form: the note box takes whatever height is left */
  .who-form { flex: 1; min-height: 0; gap: var(--u); grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .who-form label { gap: clamp(6px, 1dvh, 9px); }
  .who-form label:has(textarea) { grid-template-rows: auto minmax(0, 1fr); min-height: 0; max-height: 220px; }
  .who-form input, .who-form textarea { padding: clamp(10px, 1.7dvh, 15px) 12px; font-size: 16px; }
  .who-form textarea { min-height: 60px; height: 100%; resize: none; }
  .send { padding-top: 0; }

  /* booked */
  .keep { padding-top: var(--u); gap: clamp(8px, 1.3dvh, 12px); font-size: clamp(14px, 2dvh, 15px); line-height: 1.5; }
  .keep .soft { font-size: clamp(12px, 1.75dvh, 13px); }
  .tzbtn { padding: 9px 0; }
  /* the booked screen holds the most, so it tightens first on a shorter phone */
  .stage:has(.keep) { gap: clamp(10px, 2dvh, 26px); }
  .stage:has(.keep) .facts dt, .stage:has(.keep) .facts dd { padding-top: clamp(7px, 1.4dvh, 17px); padding-bottom: clamp(7px, 1.4dvh, 17px); }
  .stage:has(.keep) .facts dt { padding-top: calc(clamp(7px, 1.4dvh, 17px) + 3px); }
  .stage:has(.keep) .keep { padding-top: clamp(10px, 2dvh, 26px); }
}

/* a window too short to hold a screen (a phone on its side) gets its scroll back, so nothing is cut off */
@media (max-height: 630px) {
  html, body { height: auto; overflow: visible; overflow-x: hidden; }
  body { height: auto; min-height: 100dvh; }
  .who-form label:has(textarea) { max-height: none; }
  .who-form textarea { height: auto; min-height: 84px; }
}
