/* Milkman — milkman.shaynebernier.com
   Same type as shaynebernier.com: IBM Plex Mono 300, Schoolbell for the hand-drawn voice. */

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

/* The page never scrolls: everything fits in one screen, and the logo gives up height first. */
html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #fff;
  color: #111;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

body {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.milkman {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vh, 40px) 16px clamp(8px, 2vh, 20px);
  text-align: center;
}

/* --- Logo --- */
.logo {
  flex: 0 1 46vh;
  min-height: 90px;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(16px, 4vh, 40px);
}
.logo img { display: block; height: 100%; width: auto; max-width: 80vw; object-fit: contain; user-select: none; -webkit-user-drag: none; }

/* --- Countdown: slim line --- */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(10px, 3vw, 22px);
  font-variant-numeric: tabular-nums;
}
.unit { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.num { font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 300; line-height: 1; letter-spacing: 0.02em; }
.sep { font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1; opacity: 0.35; }
.lbl { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.5; }

.drop-when { margin-top: clamp(14px, 3vh, 24px); font-size: clamp(0.68rem, 2.9vw, 0.8rem); letter-spacing: 0.04em; }

/* --- Text-me form --- */
.notify { margin-top: clamp(20px, 5vh, 48px); width: min(360px, 100%); }
.notify-label { display: block; font-size: 0.82rem; letter-spacing: 0.04em; margin-bottom: 14px; }
.notify-row { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid #111; padding-bottom: 6px; }
.notify input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px; /* stops iOS zoom */
  color: #111;
  padding: 4px 0;
}
.notify input::placeholder { color: #111; opacity: 0.3; }
.fine { margin-top: 12px; font-size: 0.64rem; line-height: 1.6; opacity: 0.5; }

/* Plain-text buttons: no fill, no outline */
.text-btn, .checkout, .chev {
  background: none;
  border: 0;
  font: inherit;
  color: #111;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.text-btn { font-size: 0.82rem; letter-spacing: 0.04em; white-space: nowrap; transition: opacity 0.2s; }
.text-btn:hover, .checkout:hover:not(:disabled) { opacity: 0.45; }
.text-btn:disabled { opacity: 0.3; cursor: default; }
:focus-visible { outline: 1px dotted #111; outline-offset: 4px; }

.status { min-height: 1.4em; margin-top: 14px; font-size: 0.74rem; letter-spacing: 0.02em; }

/* --- Flavors --- */
.flavors { list-style: none; display: flex; flex-direction: column; gap: clamp(14px, 3vh, 28px); width: min(420px, 100%); }
.flavor { display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; }
.flavor-name { font-size: clamp(0.9rem, 3.6vw, 1rem); letter-spacing: 0.02em; }
.qty { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.chev { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; transition: opacity 0.2s; }
.chev:disabled { opacity: 0.2; cursor: default; }
.qty-num { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; font-size: 1rem; }

.checkout { margin-top: clamp(20px, 5vh, 48px); font-size: 0.9rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 0.2s; }
.checkout:disabled { opacity: 0.25; cursor: default; }

.thanks-line { max-width: 360px; font-size: 0.86rem; line-height: 1.7; }

.before, .after, .thanks { display: flex; flex-direction: column; align-items: center; width: 100%; }

/* --- Footer --- */
.site-foot {
  flex: 0 0 auto;
  position: relative;
  padding: 0 16px max(14px, env(safe-area-inset-bottom));
  text-align: center;
}
.tagline { font-size: clamp(0.62rem, 2.6vw, 0.74rem); line-height: 1.6; letter-spacing: 0.02em; max-width: 820px; margin: 0 auto; }
.copyright { position: absolute; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); font-size: 0.56rem; letter-spacing: 0.04em; opacity: 0.5; }

@media (max-width: 1100px) {
  .copyright { position: static; text-align: right; margin-top: 6px; }
}
.nowrap { white-space: nowrap; }
