:root {
  color-scheme: dark;
  --ink: #f8f5f0;
  --muted: #aaa6b9;
  --muted-strong: #c5c1cf;
  --space: #030713;
  --space-soft: #07101f;
  --panel: rgba(6, 13, 27, .78);
  --panel-strong: rgba(5, 11, 23, .93);
  --line: rgba(163, 174, 220, .25);
  --line-strong: rgba(178, 192, 242, .42);
  --blue: #6c82ff;
  --blue-soft: #9babff;
  --coral: #ff735f;
  --coral-bright: #ff8b72;
  --coral-glow: rgba(255, 104, 82, .32);
  --danger: #ff9a8d;
  --focus: #ffffff;
  --radius: 13px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.2, .72, .2, 1);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--space);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--space);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.universe-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 180px rgba(0, 0, 0, .52);
}

.site-header,
.site-main,
.noscript-note {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 92px;
  padding: 24px clamp(1.5rem, 3.4vw, 3.5rem);
}

.wordmark {
  color: var(--ink);
  font-size: clamp(2.2rem, 3.5vw, 3.1rem);
  font-weight: 420;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(255, 255, 255, .08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 3vw, 3.25rem);
  margin-right: auto;
  margin-left: clamp(2rem, 6.5vw, 6.5rem);
}

.site-nav a {
  position: relative;
  padding: .45rem 0;
  color: var(--muted-strong);
  font-size: 1rem;
  text-decoration: none;
  transition: color .2s ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav--quiet {
  margin-right: 0;
  margin-left: auto;
}

.site-main {
  min-height: calc(100vh - 92px);
  min-height: calc(100svh - 92px);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--coral-bright);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.create-layout {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 92px);
  min-height: calc(100svh - 92px);
  padding: clamp(1.5rem, 3.5vh, 3.25rem) clamp(1.5rem, 3.4vw, 3.5rem) 3rem;
}

.create-copy {
  width: min(100%, 454px);
}

.create-copy h1 {
  margin: 0;
  font-size: clamp(2.45rem, 3.55vw, 3.6rem);
  font-weight: 410;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.lead {
  max-width: 40ch;
  margin: 1.15rem 0 2.05rem;
  color: var(--muted-strong);
  font-size: 1.08rem;
  line-height: 1.55;
}

.timer-form {
  display: grid;
  gap: 1.35rem;
}

.field {
  display: grid;
  min-width: 0;
  gap: .55rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr .88fr;
  gap: 1.35rem;
}

.field label,
.mode-fieldset legend {
  color: var(--ink);
  font-size: .97rem;
  line-height: 1.3;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 1rem;
  color: var(--ink);
  background: rgba(5, 11, 24, .78);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field input::placeholder {
  color: #8f8ba0;
  opacity: 1;
}

.field input:hover,
.field select:hover {
  border-color: rgba(191, 201, 242, .62);
}

.field input:focus,
.field select:focus {
  background: rgba(8, 15, 31, .94);
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(108, 130, 255, .17);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 115, 95, .15);
}

.field select {
  appearance: auto;
}

.field input[type="date"],
.field input[type="time"] {
  color-scheme: dark;
}

.mode-fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.mode-fieldset legend {
  margin-bottom: .55rem;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 48px;
  padding: 3px;
  background: rgba(5, 11, 24, .78);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.segmented button {
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.segmented button[aria-selected="true"] {
  color: var(--ink);
  background: rgba(77, 94, 155, .48);
  box-shadow: inset 0 0 0 1px rgba(152, 169, 232, .22);
}

.mode-panel {
  min-width: 0;
}

.duration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.duration-grid .field input {
  padding-inline: .72rem;
}

.field-hint,
.privacy-note {
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.form-error {
  padding: .75rem .9rem;
  margin: -.3rem 0 0;
  color: #ffd7d1;
  background: rgba(94, 29, 32, .52);
  border: 1px solid rgba(255, 115, 95, .43);
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: .9rem 1.7rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius);
  font-weight: 620;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .2s ease, background .2s ease, box-shadow .25s ease;
}

.button:hover {
  background: rgba(80, 101, 177, .17);
  border-color: #bdc7ff;
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(.985);
}

.button:focus-visible,
.segmented button:focus-visible,
.site-nav a:focus-visible,
.wordmark:focus-visible,
.text-link:focus-visible,
.catalog-card:focus-visible,
.how-it-works summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.button--primary {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral-bright);
  box-shadow: 0 10px 32px var(--coral-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.button--primary:hover {
  background: var(--coral-bright);
  border-color: #ffb09f;
  box-shadow: 0 14px 40px rgba(255, 104, 82, .43), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.button--secondary {
  background: rgba(4, 10, 23, .68);
}

.button--wide {
  width: 100%;
}

.button[disabled] {
  cursor: wait;
  filter: saturate(.55);
  opacity: .68;
  transform: none;
}

.privacy-note {
  position: relative;
  padding-left: 2.45rem;
  margin-top: -.15rem;
}

.privacy-note::before {
  position: absolute;
  top: -.25rem;
  left: 0;
  width: 1.85rem;
  height: 1.85rem;
  content: "";
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(108, 130, 255, .12);
}

.how-it-works {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: .96rem;
}

.how-it-works summary {
  width: max-content;
  cursor: pointer;
}

.how-it-works p {
  max-width: 42ch;
  margin: .75rem 0 0;
  line-height: 1.55;
}

/* Public timer */

.timer-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 92px);
  min-height: calc(100svh - 92px);
  padding: 2rem clamp(1rem, 4vw, 4rem) 6vh;
  text-align: center;
}

.timer-state {
  margin: 0 0 1rem;
  color: var(--coral-bright);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.timer-title {
  max-width: 28ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 410;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.countdown {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr) auto minmax(130px, 1fr) auto minmax(170px, 1.18fr);
  align-items: start;
  width: min(100%, 980px);
  margin: clamp(2rem, 5vh, 4.25rem) auto 0;
  font-variant-numeric: tabular-nums lining-nums;
}

.countdown-unit {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.countdown-unit--days {
  min-width: 0;
}

.countdown-value {
  color: #fff5f1;
  font-size: clamp(4.6rem, 8.3vw, 8.4rem);
  font-weight: 330;
  line-height: .82;
  letter-spacing: -.055em;
  text-shadow: 0 0 15px rgba(255, 221, 212, .34), 0 0 34px rgba(255, 126, 103, .12);
}

.countdown-separator {
  margin-top: clamp(.4rem, .75vw, .9rem);
  color: #f6e6df;
  font-size: clamp(3.8rem, 6.2vw, 6.8rem);
  font-weight: 280;
  line-height: .8;
}

.milliseconds {
  align-self: end;
  margin-bottom: .08em;
  color: var(--coral-bright);
  font-size: clamp(1.8rem, 3.5vw, 3.6rem);
  font-weight: 420;
  line-height: 1;
  letter-spacing: -.04em;
  text-shadow: 0 0 18px var(--coral-glow);
}

.countdown-unit--seconds {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.countdown-unit--seconds .countdown-label {
  grid-column: 1 / -1;
}

.countdown-label {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(.85rem, 1.5vw, 1.25rem);
  line-height: 1;
}

.elapsed-word {
  margin: 1.2rem 0 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.timer-view[data-day-digits="4"] [data-countdown-days] {
  max-width: 100%;
  font-size: clamp(3rem, 5.2vw, 5.6rem);
  letter-spacing: -.075em;
}

.timer-view[data-day-digits="4"] .countdown {
  grid-template-columns: minmax(210px, 1.42fr) auto minmax(120px, 1fr) auto minmax(120px, 1fr) auto minmax(170px, 1.18fr);
}

.timer-view[data-day-digits="5"] [data-countdown-days] {
  max-width: 100%;
  font-size: clamp(2.55rem, 4.55vw, 4.9rem);
  letter-spacing: -.08em;
}

.timer-view[data-day-digits="5"] .countdown {
  grid-template-columns: minmax(235px, 1.58fr) auto minmax(115px, 1fr) auto minmax(115px, 1fr) auto minmax(165px, 1.15fr);
}

.target-date {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(2rem, 5vh, 4rem) 0 0;
  color: var(--muted-strong);
  font-size: clamp(.98rem, 1.4vw, 1.2rem);
}

.target-marker {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--coral-glow);
  animation: target-signal 3.6s ease-in-out infinite;
}

.target-marker::after {
  position: absolute;
  inset: 5px;
  content: "";
  background: var(--coral);
  border-radius: 50%;
}

.expiry-note {
  margin: 1rem 0 0;
  color: var(--muted-strong);
}

.expiry-note strong {
  color: var(--coral-bright);
}

.timer-actions,
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(2rem, 5vh, 4rem);
}

.timer-actions .button {
  min-width: min(300px, 40vw);
}

.text-link {
  align-self: center;
  padding: .6rem .4rem;
  color: var(--muted);
  font-size: .9rem;
  text-underline-offset: 4px;
}

.timer-view.is-elapsed .countdown-value,
.timer-view.is-elapsed .milliseconds {
  color: #ffe5de;
}

.timer-view.is-elapsed .target-marker {
  animation: elapsed-pulse 2.8s ease-in-out infinite;
}

/* Catalog */

.catalog-layout {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 92px);
  min-height: calc(100svh - 92px);
  padding: clamp(2rem, 6vh, 5rem) clamp(1.5rem, 3.4vw, 3.5rem) 3rem;
}

.catalog-panel {
  width: min(100%, 590px);
}

.catalog-heading h1 {
  margin: 0;
  font-size: clamp(2.45rem, 4vw, 3.45rem);
  font-weight: 410;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.catalog-heading p {
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.catalog-list {
  position: relative;
  display: grid;
  max-height: min(64vh, 640px);
  gap: .9rem;
  padding: .25rem .65rem .25rem 0;
  margin-top: 3.25rem;
  overflow: auto;
  scrollbar-color: rgba(133, 146, 197, .45) transparent;
  scrollbar-width: thin;
}

.catalog-list::before {
  position: absolute;
  top: 1.7rem;
  bottom: 1.7rem;
  left: 29px;
  z-index: 0;
  width: 1px;
  content: "";
  background: rgba(117, 134, 208, .38);
}

.catalog-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 102px;
  padding: 1.05rem 1.45rem 1.05rem .65rem;
  color: var(--muted-strong);
  background: rgba(6, 13, 27, .76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform .25s var(--ease), color .2s ease, border-color .2s ease, background .2s ease, box-shadow .25s ease;
}

.catalog-card:hover,
.catalog-card:focus-visible {
  color: var(--ink);
  background: rgba(8, 17, 34, .91);
  border-color: rgba(123, 142, 228, .65);
  transform: translateX(5px);
}

.catalog-card--featured {
  color: var(--ink);
  border-color: var(--coral);
  box-shadow: 0 0 26px rgba(255, 105, 82, .13), inset 0 0 28px rgba(255, 105, 82, .035);
}

.catalog-card--linked {
  color: var(--ink);
  border-color: var(--coral);
  box-shadow: 0 0 26px rgba(255, 105, 82, .13), inset 0 0 28px rgba(255, 105, 82, .035);
}

.catalog-node {
  position: relative;
  width: 16px;
  height: 16px;
  margin-left: 11px;
  background: var(--blue);
  border: 4px solid #1b2552;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(117, 135, 237, .45), 0 0 13px rgba(99, 119, 255, .48);
}

.catalog-card--featured .catalog-node,
.catalog-card--linked .catalog-node {
  background: #fff1ec;
  border-color: var(--coral);
  box-shadow: 0 0 0 1px #ffaf9d, 0 0 18px var(--coral);
  animation: node-signal 2.4s ease-in-out infinite;
}

.catalog-card-copy {
  display: grid;
  min-width: 0;
  gap: .52rem;
}

.catalog-card-copy strong {
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 430;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-time {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.catalog-time b {
  font-size: 1.75rem;
  font-weight: 420;
  letter-spacing: .03em;
}

.catalog-time small {
  margin-right: .45rem;
  color: var(--muted);
  font-size: .75rem;
}

.catalog-open {
  margin-left: 1rem;
  color: var(--blue-soft);
  font-size: .86rem;
}

.catalog-card--featured .catalog-open,
.catalog-card--linked .catalog-open {
  color: var(--coral-bright);
}

.empty-state {
  padding: 2rem;
  margin-top: 3rem;
  color: var(--muted-strong);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.empty-state p {
  margin: 0 0 1.35rem;
}

/* 404 */

.not-found-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 92px);
  min-height: calc(100svh - 92px);
  padding: 2rem 1.25rem 10vh;
  text-align: center;
}

.error-code {
  margin: 0 0 -1rem;
  color: rgba(150, 169, 255, .22);
  font-size: clamp(8rem, 22vw, 17rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.08em;
  text-shadow: 0 0 50px rgba(78, 104, 255, .24);
}

.not-found-view h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 430;
}

.not-found-view > p:not(.error-code, .eyebrow) {
  max-width: 42ch;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.not-found-actions .button {
  min-width: 220px;
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 10;
  max-width: min(390px, calc(100vw - 2.5rem));
  padding: .85rem 1rem;
  color: var(--ink);
  background: #111a31;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.noscript-note {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: .8rem 1rem;
  margin: 0;
  color: #fff;
  background: #702b2e;
  border-radius: 8px;
  text-align: center;
}

@keyframes elapsed-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 115, 95, .25); }
  50% { box-shadow: 0 0 32px rgba(255, 115, 95, .75); }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes reveal-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes target-signal {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 115, 95, .24); }
  50% { box-shadow: 0 0 27px rgba(255, 115, 95, .58); }
}

@keyframes node-signal {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes button-sweep {
  0%, 68% { transform: translateX(-180%) skewX(-18deg); }
  86%, 100% { transform: translateX(310%) skewX(-18deg); }
}

.site-header {
  animation: reveal-down .65s var(--ease) both;
}

.create-copy h1,
.catalog-heading,
.timer-title,
.not-found-view h1 {
  animation: reveal-up .65s .06s var(--ease) both;
}

.lead,
.timer-state,
.error-code {
  animation: reveal-up .65s .13s var(--ease) both;
}

.timer-form,
.countdown,
.catalog-list,
.empty-state {
  animation: reveal-up .72s .2s var(--ease) both;
}

.how-it-works,
.target-date,
.not-found-view > p:not(.error-code, .eyebrow) {
  animation: reveal-up .65s .3s var(--ease) both;
}

.timer-actions,
.not-found-actions {
  animation: reveal-up .65s .38s var(--ease) both;
}

.mode-panel:not([hidden]) {
  animation: panel-reveal .32s var(--ease) both;
}

.catalog-card:nth-child(1) { animation-delay: .24s; }
.catalog-card:nth-child(2) { animation-delay: .3s; }
.catalog-card:nth-child(3) { animation-delay: .36s; }
.catalog-card:nth-child(4) { animation-delay: .42s; }
.catalog-card:nth-child(5) { animation-delay: .48s; }
.catalog-card:nth-child(n+6) { animation-delay: .54s; }

.catalog-card {
  animation-name: reveal-up;
  animation-duration: .55s;
  animation-timing-function: var(--ease);
  animation-fill-mode: backwards;
}

.button--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.button--primary::after {
  position: absolute;
  top: -45%;
  bottom: -45%;
  left: -25%;
  width: 20%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  animation: button-sweep 5.2s 1.1s ease-in-out infinite;
}

@media (max-width: 1050px) {
  .catalog-panel {
    width: min(100%, 560px);
  }

  .countdown {
    grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr) auto minmax(100px, 1fr) auto minmax(140px, 1.15fr);
  }

  .timer-view[data-day-digits="4"] .countdown {
    grid-template-columns: minmax(175px, 1.38fr) auto minmax(92px, 1fr) auto minmax(92px, 1fr) auto minmax(135px, 1.12fr);
  }

  .timer-view[data-day-digits="5"] .countdown {
    grid-template-columns: minmax(205px, 1.55fr) auto minmax(88px, 1fr) auto minmax(88px, 1fr) auto minmax(132px, 1.1fr);
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 72px;
    padding: 18px 1rem;
  }

  .wordmark {
    font-size: 2.15rem;
  }

  .site-nav {
    gap: 1.2rem;
    margin-left: auto;
  }

  .site-nav a {
    font-size: .88rem;
  }

  .site-main {
    min-height: calc(100svh - 72px);
  }

  .create-layout {
    display: grid;
    min-height: calc(100svh - 72px);
    padding: clamp(2rem, 8vh, 5rem) 1rem 2rem;
  }

  .create-copy {
    width: 100%;
  }

  .create-copy h1 {
    font-size: clamp(2.15rem, 10vw, 3.25rem);
  }

  .lead {
    max-width: 34ch;
    font-size: 1rem;
  }

  .timer-form {
    padding: 1rem;
    background: rgba(4, 10, 23, .79);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
  }

  .timer-view {
    min-height: calc(100svh - 72px);
    padding: 2rem 1rem 3rem;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem .75rem;
    width: min(100%, 490px);
    margin-top: 2.5rem;
  }

  .countdown-separator {
    display: none;
  }

  .countdown-value {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .timer-view[data-day-digits="4"] [data-countdown-days] {
    font-size: clamp(2.35rem, 11vw, 4rem);
  }

  .timer-view[data-day-digits="4"] .countdown,
  .timer-view[data-day-digits="5"] .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timer-view[data-day-digits="5"] [data-countdown-days] {
    font-size: clamp(2rem, 9.5vw, 3.5rem);
  }

  .milliseconds {
    font-size: clamp(1.5rem, 7vw, 2.35rem);
  }

  .countdown-label {
    margin-top: .85rem;
    font-size: .85rem;
  }

  .target-date {
    margin-top: 2.5rem;
    font-size: .92rem;
  }

  .timer-actions {
    display: grid;
    width: min(100%, 460px);
  }

  .timer-actions .button {
    min-width: 0;
    width: 100%;
  }

  .catalog-layout {
    min-height: calc(100svh - 72px);
    padding: 2.5rem 1rem;
  }

  .catalog-panel {
    width: 100%;
  }

  .catalog-list {
    max-height: none;
    padding-right: 0;
    margin-top: 2rem;
    overflow: visible;
  }

  .catalog-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding-right: 1rem;
  }

  .catalog-list::before {
    left: 25px;
  }

  .catalog-node {
    margin-left: 9px;
  }

  .catalog-open {
    display: none;
  }

  .not-found-view {
    min-height: calc(100svh - 72px);
  }
}

@media (max-width: 480px) {
  .site-nav a:first-child:nth-last-child(2) {
    display: none;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

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

  .segmented button {
    font-size: .88rem;
  }

  .timer-title {
    font-size: clamp(1.75rem, 8.5vw, 2.35rem);
  }

  .countdown {
    gap: 1.35rem .45rem;
  }

  .countdown-value {
    font-size: clamp(3.5rem, 19vw, 5rem);
  }

  .timer-view[data-day-digits="4"] [data-countdown-days] {
    font-size: clamp(2.15rem, 10.4vw, 3.35rem);
  }

  .timer-view[data-day-digits="5"] [data-countdown-days] {
    font-size: clamp(1.82rem, 8.8vw, 2.9rem);
  }

  .target-date {
    align-items: flex-start;
    text-align: left;
  }

  .catalog-card {
    min-height: 94px;
  }

  .catalog-time {
    flex-wrap: wrap;
  }

  .catalog-time b {
    font-size: 1.45rem;
  }

  .not-found-actions {
    display: grid;
    width: 100%;
  }

  .not-found-actions .button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-height: 720px) and (min-width: 781px) {
  .create-layout {
    padding-top: 1rem;
  }

  .create-copy h1 {
    font-size: 2.5rem;
  }

  .lead {
    margin-block: .65rem 1rem;
  }

  .timer-form {
    gap: .82rem;
  }

  .field input,
  .field select {
    height: 46px;
  }

  .segmented {
    height: 43px;
  }

  .button {
    min-height: 50px;
  }

  .how-it-works {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-delay: 0s !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .page-glow {
    display: none;
  }

  .button,
  .field input,
  .field select,
  .catalog-card {
    border: 1px solid CanvasText;
  }

  .target-marker::after,
  .catalog-node {
    background: Highlight;
  }
}
