@font-face {
  font-family: Tight;
  src: url(inter-tight-500-normal.woff2);
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url(instrument-serif-400-italic.woff2);
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Fragment;
  src: url(fragment-mono-400-normal.woff2);
  font-display: swap;
}
:root {
  --paper: #f6f2ea;
  --surface: #fffcf6;
  --inset: #f4ede1;
  --ink: #25221f;
  --quiet: #5f554b;
  --rule: #d5cabc;
  --ember: #9c351e;
  --ember-hover: #792614;
  --focus: #26678d;
  --mono: Fragment, monospace;
  font-family: Tight, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0 auto;
  max-width: 88rem;
  padding: 0 clamp(1rem, 5vw, 5.25rem);
}
a {
  color: inherit;
  text-underline-offset: 0.24em;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.mast,
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mast {
  min-height: 5.35rem;
  gap: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark,
.back,
footer a {
  text-decoration: none;
}
.wordmark {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.075em;
}
.wordmark sup {
  font: 0.68rem var(--mono);
  vertical-align: top;
  display: inline-block;
  margin: 0.47em 0 0 0.18em;
}
.back,
footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  font-size: 0.91rem;
}
.back:hover,
footer a:hover {
  text-decoration: underline;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 0.87fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5.75rem);
  padding: clamp(2.3rem, 5vw, 5rem) 0;
}
.desk {
  min-width: 0;
}
.overline {
  margin: 0;
  color: var(--ember);
  font: 0.73rem/1.5 var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(3.25rem, 5.85vw, 6.2rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.073em;
  margin: 1rem 0 1.4rem;
  text-wrap: balance;
}
h1 em {
  display: block;
  font:
    italic 1.16em/0.91 Instrument,
    Georgia,
    serif;
  letter-spacing: -0.05em;
  color: var(--ember);
}
h1:focus {
  outline: none;
}
.intro {
  max-width: 39ch;
  margin: 0 0 1.45rem;
  font-size: clamp(1.05rem, 1.45vw, 1.33rem);
  line-height: 1.5;
  color: var(--quiet);
}
.intro strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.capacity-note {
  max-width: 28rem;
  margin: 0 0 1.45rem;
  padding: 0.75rem 0.95rem;
  border-inline-start: 2px solid var(--ember);
  background: var(--inset);
  font-size: 0.95rem;
  line-height: 1.45;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.5vw, 1.1rem);
  min-height: 3rem;
  border: 1px solid var(--ember);
  border-radius: 0.55rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
}
.primary {
  color: #fffaf4;
  background: var(--ember);
}
.primary:hover:not(:disabled) {
  background: var(--ember-hover);
}
.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: #a69889;
}
.secondary:hover {
  background: var(--inset);
}
.hint,
footer p {
  color: var(--quiet);
  font-size: 0.92rem;
  line-height: 1.45;
}
.hint {
  margin: 0.85rem 0 0;
}
.walkthrough {
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2.65rem);
  border-radius: 1rem;
  background: #2c2520;
  color: #fff8ed;
}
.walkthrough h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.95rem, 3.25vw, 3.15rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.055em;
}
.walkthrough-steps {
  padding: 0;
  margin: 0;
  list-style: none;
}
.walkthrough-steps li {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: 0.8rem;
  border-top: 1px solid #54453a;
  padding: 1rem 0;
}
.walkthrough-steps li:last-child {
  padding-bottom: 0;
}
.step-number {
  padding-top: 0.2rem;
  color: #edaf96;
  font: 0.78rem/1.45 var(--mono);
}
.walkthrough h3 {
  margin: 0 0 0.27rem;
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  font-weight: 500;
  line-height: 1.28;
}
.walkthrough p {
  margin: 0;
  color: #dfd0bf;
  font-size: 0.97rem;
  line-height: 1.5;
}
.walkthrough strong {
  color: #fff8ed;
}
footer {
  gap: 1.1rem;
  border-top: 1px solid var(--rule);
  padding: 0.8rem 0 1.7rem;
}
footer p {
  margin: 0 auto 0 0;
}
.terms,
.actions,
.session-tools,
#active-tools,
.code-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.terms {
  column-gap: 1rem;
  font: 0.73rem/1.55 var(--mono);
  color: var(--quiet);
}
.terms b {
  color: var(--ink);
  font-weight: normal;
}
#verify {
  margin-top: 1.15rem;
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.91rem;
}
.code-row {
  flex-wrap: nowrap;
}
input {
  min-width: 0;
  width: 22rem;
  max-width: 100%;
  min-height: 3rem;
  border: 1px solid #8f8174;
  border-radius: 0.55rem;
  padding: 0.72rem 0.82rem;
  color: var(--ink);
  background: var(--surface);
}
#code {
  font-family: var(--mono);
}
#invite-fields,
#manual-fields {
  margin-bottom: 0.85rem;
}
.setup,
.credentials {
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  background: var(--surface);
  padding: clamp(1rem, 2.4vw, 1.55rem);
}
.setup-status p:first-child {
  font-size: clamp(1.08rem, 1.75vw, 1.3rem);
  margin: 0;
}
.setup .hint {
  margin: 0.35rem 0 0;
}
.setup progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 0.35rem;
  margin-top: 1.1rem;
  overflow: hidden;
  border: 0;
  border-radius: 0.35rem;
  background:
    linear-gradient(90deg, transparent, var(--ember), transparent) -38% 0 / 38%
      100% no-repeat,
    var(--inset);
  animation: setup-sweep 1.6s ease-in-out infinite;
}
.setup progress::-webkit-progress-bar {
  background: transparent;
}
.setup progress::-moz-progress-bar {
  background: transparent;
}
@keyframes setup-sweep {
  from {
    background-position: -60% 0;
  }
  to {
    background-position: 170% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .setup progress {
    animation: none;
    background-position: center;
  }
}
.expiry {
  display: table;
  margin: 0 0 0.85rem;
  padding: 0.38rem 0.62rem;
  border-radius: 0.35rem;
  color: #65432f;
  background: #efe0ce;
  font: 0.73rem/1.4 var(--mono);
}
.login-heading h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.032em;
}
.login-heading p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.93rem;
  line-height: 1.45;
}
.credential-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.05rem 0 1.15rem;
}
.credential-row {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.16rem 0.65rem;
  border: 1px solid #dfd2c4;
  border-radius: 0.52rem;
  background: var(--inset);
  padding: 0.55rem 0.55rem 0.55rem 0.75rem;
}
.credential-row dt {
  color: var(--quiet);
  font-size: 0.79rem;
}
.credential-row dd {
  grid-column: 1;
  margin: 0;
  min-width: 0;
}
.credential-row code {
  font: 0.83rem/1.45 var(--mono);
  overflow-wrap: anywhere;
  user-select: text;
}
.credential-row .copy-action {
  grid-area: 1 / 2 / span 2;
}
.copy-action button {
  min-width: 4.4rem;
  min-height: 2.75rem;
  border: 1px solid #a69889;
  border-radius: 0.44rem;
  background: var(--surface);
  color: var(--ink);
  padding: 0.4rem 0.55rem;
  font-size: 0.87rem;
}
.copy-action button:hover {
  background: #fff;
}
.session-tools {
  gap: 0 1rem;
  margin-top: 0.5rem;
}
#active-tools {
  gap: 0 1rem;
}
.session-tools button {
  min-height: 2.75rem;
  color: var(--quiet);
  background: none;
  border: 0;
  padding: 0.3rem 0;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  font-size: 0.88rem;
}
.session-tools #end {
  color: var(--ember);
}
#notice:not(:empty) {
  display: block;
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.85rem;
  border-inline-start: 0.2rem solid var(--ember);
  color: #802a19;
  background: #f6e7de;
}
@media (max-width: 780px) {
  .mast {
    min-height: 4.4rem;
  }
  main {
    grid-template-columns: 1fr;
    padding: 2rem 0 1.7rem;
    gap: 1.55rem;
  }
  h1 {
    font-size: clamp(3.12rem, 11.5vw, 5rem);
    margin: 0.72rem 0 1.05rem;
  }
  footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.45rem 1.1rem;
  }
  footer p {
    order: 3;
    width: 100%;
  }
}
