:root {
  --bg: #f3f1ec;
  --card: #fbfaf7;
  --ink: #161617;
  --muted: #8a877f;
  --line: rgba(22, 22, 23, 0.1);
  --accent: #d6532f;
  --radius: 18px;
  --sans: "Archivo Variable", "Archivo", system-ui, sans-serif;
  --mono: "Geist Mono Variable", "Geist Mono", ui-monospace, monospace;
}

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

html, body { height: 100%; }

body {
  background:
    radial-gradient(120% 80% at 50% -10%, #faf9f5 0%, rgba(250, 249, 245, 0) 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.page {
  height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(14px, 3.4vh, 36px) clamp(16px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 2.6vh, 26px);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: -0.005em;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-variation-settings: "wdth" 112; }
.brand svg { width: 18px; height: 18px; color: var(--ink); }
.crumb { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase; }
.crumb span { color: var(--ink); margin-left: 10px; }

.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.title {
  font-size: clamp(22px, min(4.2vw, 6.4vh), 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  font-variation-settings: "wdth" 88;
}
.note { color: var(--muted); font-size: 12px; font-family: var(--mono); white-space: nowrap; padding-bottom: 4px; }

.panel {
  position: relative;
  flex: 0 0 auto;
  height: clamp(140px, 50vh, 470px);
  border-radius: var(--radius);
  padding: 6px;
  background: var(--card);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 1px rgba(22, 22, 23, 0.04),
    0 8px 18px -8px rgba(22, 22, 23, 0.14),
    0 30px 60px -30px rgba(22, 22, 23, 0.25);
  cursor: none;
  touch-action: pan-y;
}

.strips {
  position: relative;
  display: flex;
  height: 100%;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
}

.strip {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  border: 0;
  background: none;
  cursor: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.strip__fill {
  position: absolute;
  inset: 0;
  background: var(--c);
  transform-origin: 50% 100%;
}
/* the hairline between the light strips, so Paper and Fog never melt into each other */
.strip + .strip .strip__fill { box-shadow: inset 1px 0 0 rgba(22, 22, 23, 0.06); }
.strip:focus-visible .strip__fill { box-shadow: inset 0 0 0 2px var(--accent); }

.sheen {
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
  background:
    radial-gradient(260px 200px at var(--sx, 50%) var(--sy, 40%), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.06));
  mix-blend-mode: soft-light;
}

.tag {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  color: var(--tag, #fff);
  display: grid;
  gap: 2px;
  will-change: transform;
}
.tag__mask { display: block; overflow: hidden; height: 1.25em; line-height: 1.25em; }
.tag__row { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.tag__mask--hex .tag__row { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.04em; opacity: 0.72; }
.tag__done {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
}
.tag__done svg { width: 13px; height: 13px; }
.tag__done path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

.names {
  position: relative;
  height: 40px;
  flex: 0 0 auto;
  margin-top: -4px;
}
.name {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  padding-top: 10px;
  white-space: nowrap;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 7px;
  background: currentColor;
  transform-origin: 50% 0;
  transform: scaleY(var(--tick, 0.45));
  opacity: 0.6;
}
.name b { display: inline-block; font-weight: 500; color: inherit; opacity: var(--nameo, 1); }
.name i { display: block; font-style: normal; opacity: var(--hexo, 0); margin-top: 2px; }

.note .touch { display: none; }
@media (hover: none) {
  .note .mouse { display: none; }
  .note .touch { display: inline; }
}

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 560px) {
  .intro { flex-direction: column; align-items: flex-start; gap: 6px; }
  .note { padding: 0; }
  .crumb span { margin-left: 6px; }
  .names { height: 36px; }
}
