@font-face {
  font-family: "Unbounded";
  src: url("assets/fonts/Unbounded-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #050607;
  --ink: #f0f4f1;
  --muted: #a9b0b3;
  --faint: #6f777a;
  --line: rgba(184, 210, 223, 0.22);
  --signal: #ff6f47;
  --passive: #b8d2df;
  --warning: #ffc472;
  --danger: #ff9999;
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: var(--ink);
  background: var(--void);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--void);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--void);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--signal);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
}

.wordmark span {
  margin-left: 9px;
  color: var(--muted);
  font-weight: 300;
}

.header-state,
.system-label,
.field-label,
.privacy-code {
  margin: 0;
  color: var(--signal);
  font-size: 0.75rem;
  line-height: 1.5;
}

.header-state {
  color: #a9b0b3;
  font-size: 11px;
  text-transform: uppercase;
}

.threshold,
.held-view {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--void);
}

.void-image {
  position: absolute;
  inset: 0;
  background: url("assets/void-horizon.png") center 72% / cover no-repeat;
  opacity: 0.62;
}

.threshold::after,
.held-view::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 7, 0.46);
  pointer-events: none;
}

.entry-shell,
.held-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1540px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(104px, 12vh, 160px) clamp(20px, 5vw, 80px) clamp(64px, 8vh, 110px);
}

.entry-shell {
  display: grid;
  grid-template-columns: minmax(310px, 0.74fr) minmax(500px, 1.26fr);
  gap: clamp(56px, 8vw, 140px);
}

.entry-intro {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: clamp(44px, 8vh, 96px) 0 28px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(3.7rem, 7.8vw, 8.8rem);
  font-weight: 260;
  line-height: 0.88;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 530px;
  margin-bottom: 0;
  color: #c5ceca;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.privacy-statement {
  max-width: 560px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.privacy-statement h2 {
  margin: 15px 0 15px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
  font-weight: 350;
  line-height: 1.2;
  letter-spacing: 0;
}

.privacy-statement > p:last-child {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.trace-composer {
  min-width: 0;
  align-self: center;
}

.message-field {
  display: block;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 12px;
}

.message-field textarea {
  width: 100%;
  height: clamp(220px, 32vh, 430px);
  margin: 20px 0 0;
  padding: 0;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 3rem);
  font-weight: 250;
  line-height: 1.38;
  letter-spacing: 0;
}

.message-field textarea::placeholder {
  color: rgba(240, 244, 241, 0.28);
}

.field-meta {
  display: block;
  color: var(--faint);
  font-size: 0.74rem;
  text-align: right;
}

.recipient-field {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.recipient-field label {
  color: var(--muted);
  font-size: 0.78rem;
}

.recipient-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.recipient-field input::placeholder {
  color: var(--faint);
}

.message-field:focus-within,
.recipient-field:focus-within {
  border-color: var(--signal);
}

.acknowledgement {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 28px 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.acknowledgement input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--signal);
}

.form-error {
  margin-bottom: 18px;
  color: var(--danger);
  font-size: 0.82rem;
  line-height: 1.5;
}

.commit-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.commit-row > p {
  margin: 0;
  color: var(--faint);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: right;
}

.commit-action,
.destroy-action {
  min-height: 58px;
  border-radius: 0;
  font-weight: 500;
}

.commit-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  border: 1px solid var(--signal);
  padding: 0 20px;
  background: var(--signal);
  color: #160603;
  font-family: "Unbounded", sans-serif;
  font-size: 0.78rem;
}

.commit-action:hover {
  background: #ff9678;
}

.commit-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.held-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  grid-template-areas:
    "intro countdown"
    "details details"
    "actions note";
  gap: clamp(48px, 8vw, 120px);
  align-content: center;
}

.held-intro {
  grid-area: intro;
}

.held-intro h1 {
  margin-top: 32px;
}

.countdown-block {
  grid-area: countdown;
  align-self: end;
}

.countdown {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(7rem, 17vw, 16rem);
  font-weight: 200;
  line-height: 0.75;
  letter-spacing: 0;
}

.countdown-label,
.deadline-copy {
  color: var(--muted);
  font-size: 0.78rem;
}

.countdown-label {
  margin: 24px 0 28px;
}

.signal-meter {
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgba(240, 244, 241, 0.18);
}

.signal-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--signal);
  transform-origin: left;
}

.deadline-copy {
  margin: 12px 0 0;
}

.trace-details {
  grid-area: details;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}

.trace-details > div {
  min-width: 0;
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--line);
}

.trace-details > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.trace-details dt,
.trace-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.trace-details dt {
  color: var(--faint);
  font-size: 0.7rem;
}

.trace-details dd {
  margin-top: 12px;
  color: #d7ddda;
  font-size: 0.83rem;
  line-height: 1.5;
}

.held-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-self: start;
}

.destroy-action {
  border: 1px solid var(--line);
  padding: 0 20px;
  background: rgba(5, 6, 7, 0.55);
  color: var(--muted);
  font-size: 0.76rem;
}

.destroy-action:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.signal-confirmation {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 111, 71, 0.5);
  padding-top: 14px;
  color: var(--signal);
  font-size: 0.78rem;
  line-height: 1.5;
}

.held-note {
  grid-area: note;
  max-width: 560px;
  margin: 0;
  justify-self: end;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.protocol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #080a0a;
  border-top: 1px solid var(--line);
}

.protocol > div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 12px;
  min-height: 160px;
  align-content: start;
  padding: 38px clamp(20px, 4vw, 64px);
}

.protocol > div + div {
  border-left: 1px solid var(--line);
}

.protocol span,
.protocol strong,
.protocol small {
  font-size: 0.76rem;
}

.protocol span {
  color: var(--signal);
  white-space: nowrap;
}

.protocol strong,
.protocol small {
  display: block;
}

.protocol strong {
  color: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-weight: 450;
}

.protocol small {
  grid-column: 2;
  color: var(--faint);
}

footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--void);
  color: #a9b0b3;
  font-size: 11px;
  text-transform: uppercase;
}

.footer-hint {
  color: var(--signal);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .entry-shell,
  .held-shell {
    grid-template-columns: 1fr;
  }

  .entry-shell {
    gap: 70px;
  }

  .privacy-statement {
    margin-top: 70px;
  }

  .held-shell {
    grid-template-areas:
      "intro"
      "countdown"
      "details"
      "actions"
      "note";
    align-content: start;
  }

  .trace-details {
    grid-template-columns: 1fr 1fr;
  }

  .trace-details > div + div {
    padding-left: 0;
    border-left: 0;
  }

  .trace-details > div:nth-child(even) {
    padding-left: 18px;
    border-left: 1px solid var(--line);
  }

  .held-note {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
  }

  .header-state {
    display: none;
  }

  .entry-shell,
  .held-shell {
    width: 100%;
    padding: 104px 20px 58px;
  }

  h1 {
    font-size: clamp(3.3rem, 17vw, 5.4rem);
  }

  .message-field textarea {
    min-height: 330px;
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .recipient-field,
  .commit-row,
  .held-actions {
    grid-template-columns: 1fr;
  }

  .recipient-field {
    gap: 11px;
  }

  .commit-row > p {
    text-align: left;
  }

  .countdown {
    font-size: clamp(7rem, 42vw, 12rem);
  }

  .trace-details {
    grid-template-columns: 1fr;
  }

  .trace-details > div:nth-child(even),
  .trace-details > div + div {
    padding-left: 0;
    border-left: 0;
  }

  .protocol {
    grid-template-columns: 1fr;
  }

  .protocol > div {
    min-height: 96px;
  }

  .protocol > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  footer span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}



