:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #edf1f4;
  background: #090b0d;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(83, 97, 110, 0.13), transparent 34rem),
    linear-gradient(180deg, #0d1013 0%, #080a0c 100%);
}

body {
  min-height: 100dvh;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #f4f6f7;
  outline-offset: 3px;
}

.outer-cover {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #000;
  cursor: pointer;
  opacity: 1;
  transition: opacity 300ms ease;
  touch-action: manipulation;
}

.outer-cover[data-exiting] {
  opacity: 0;
  pointer-events: none;
}

.outer-cover img {
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.outer-cover:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: -3px;
}

.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 96rem);
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 3rem) 1rem;
}

.shell__header,
.shell__footer {
  display: flex;
  align-items: center;
}

.shell__header {
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shell__footer {
  justify-content: space-between;
}

.brand {
  display: inline-block;
  max-width: 100%;
  color: inherit;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: clamp(1.1rem, 4vw, 1.8rem);
  line-height: 1.2;
  font-weight: 700;
}

.brand__name {
  display: block;
  overflow-wrap: anywhere;
}

.language {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.025);
}

.language__button {
  border: 0;
  border-radius: 0.32rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  color: #89939b;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language__button[aria-pressed="true"] {
  color: #f3f5f6;
  background: rgba(255, 255, 255, 0.08);
}

.shell__main {
  display: grid;
  place-items: center;
  padding: clamp(3rem, 9vh, 8rem) 0;
}

.protocol {
  width: min(100%, 46rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(20, 24, 28, 0.96), rgba(12, 15, 18, 0.98));
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.35);
}

.protocol[hidden] {
  display: none;
}

.protocol__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #8b969f;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.protocol__signal {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #a5afb6;
  box-shadow: 0 0 0 0.28rem rgba(165, 175, 182, 0.08);
}

h1 {
  margin: 1.15rem 0 1.4rem;
  max-width: 17ch;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 650;
}

.protocol__copy {
  display: grid;
  gap: 0.85rem;
  color: #aeb7bd;
  font-size: clamp(0.96rem, 1.8vw, 1.05rem);
  line-height: 1.65;
}

.protocol__copy p {
  margin: 0;
  white-space: pre-line;
}

.entry-control {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-human {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  min-height: 80px;
}

.entry-human[hidden] { display: none; }

.entry-human__label {
  justify-self: start;
  color: #8b969f;
  font: 650 0.68rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.09em;
}

#entry-turnstile {
  width: min(100%, 330px);
  min-height: 65px;
  display: grid;
  place-items: center;
}

.entry-control__status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  color: #7f8991;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}

.entry-control__status-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #656d73;
}

.entry-control__button {
  width: 100%;
  min-height: 3.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  color: #727b82;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.entry-control__button:disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.shell__license { color: #aeb7bd; padding: .75rem .5rem; text-decoration: none; white-space: nowrap; }
.shell__license:hover { color: #f3f5f6; }
.shell__footer {
  min-height: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #535c63;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

noscript {
  position: fixed;
  inset: auto 1rem 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111519;
  color: #dce1e4;
}

@media (max-width: 40rem) {
  .shell {
    padding-inline: 0.8rem;
  }

  .protocol {
    padding: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }

  .outer-cover {
    transition-duration: 80ms !important;
  }
}

.post-outer,
.terminal-finalizing {
  min-height: 100vh;
  min-height: 100dvh;
  background: #0b0d10;
  color: #e8e8e8;
  box-sizing: border-box;
}

.post-outer {
  width: 100%;
  padding: 28px 0 56px;
}

.post-outer__card {
  width: min(100%, 760px);
  margin: 0 auto;
}

.post-outer__locales,
.post-outer__prose,
.post-outer__feedback {
  padding-inline: clamp(18px, 5vw, 36px);
}

.post-outer__locales {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.post-outer button,
.terminal-finalizing button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 10px 14px;
}

.post-outer__prose {
  text-align: left;
  line-height: 1.65;
}

.post-outer__prose p {
  margin: 0 0 1.1em;
}

.post-outer__feedback {
  margin-top: 34px;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.post-outer__reactions {
  width: min(100%, 300px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.post-outer__reaction {
  min-height: 54px;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.post-outer__reaction--negative[aria-pressed="true"] {
  border-color: #d36d6d;
  background: rgba(211, 109, 109, 0.08);
}

.post-outer__reaction--positive[aria-pressed="true"] {
  border-color: #74b89a;
  background: rgba(116, 184, 154, 0.08);
}

.post-outer__reaction:disabled {
  opacity: 0.72;
}

.post-outer__textarea {
  box-sizing: border-box;
  display: block;
  width: min(100%, 620px);
  min-height: 150px;
  resize: vertical;
  font: inherit;
  color: inherit;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(232,232,232,0.85);
  border-radius: 2px;
  padding: 12px;
}

.post-outer__textarea::placeholder {
  color: rgba(232,232,232,0.38);
}

.post-outer__submit {
  justify-self: center;
  min-width: 164px;
}

.post-outer__reaction-status,
.post-outer__feedback-status {
  min-height: 1.2em;
  text-align: center;
  color: rgba(232,232,232,0.66);
  font-size: 0.85rem;
}

.terminal-finalizing {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

@media (max-width: 430px) {
  .post-outer {
    padding: 24px 0 44px;
  }

  .post-outer__locales,
  .post-outer__prose,
  .post-outer__feedback {
    padding-inline: 18px;
  }

  .post-outer__locales {
    gap: 8px;
  }

  .post-outer button {
    padding: 9px 11px;
  }

  .post-outer__reactions {
    width: min(100%, 260px);
    gap: 22px;
  }

  .post-outer__textarea {
    width: 100%;
    min-height: 138px;
  }
}
