/* The desk: operate inside the pit. Clarity first, the world in the details. */
.desk { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); min-height: min(calc(100svh - 120px), 900px); border-bottom: 3px solid var(--ink); }
.desk-boomer { position: relative; background: var(--jacket-deep); border-right: 3px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 1.6rem 1.4rem 0; gap: 1.2rem; overflow: hidden; }
@media (min-width: 901px) {
  .desk-boomer { position: sticky; top: 67px; align-self: start; height: min(calc(100svh - 67px), 900px); }
}
.desk-boomer .say { padding: 1rem 1.1rem; transform: rotate(-1.5deg); }
.desk-boomer .say p { font: 400 1.6rem/1.15 var(--hand); color: var(--pen); }
.desk-art { width: 100%; max-width: 360px; height: auto; align-self: center; margin-bottom: -4px; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .45)); }

.work { padding: clamp(1.6rem, 4vw, 3rem) var(--gutter) 4rem; max-width: 980px; width: 100%; outline: none; }
.work-title { font: 900 clamp(2.4rem, 5vw, 4rem)/.92 var(--display); text-transform: uppercase; margin-bottom: 1.6rem; }
.work h2 { font: 800 1.05rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--on-jacket-soft); margin: 2rem 0 .8rem; }

/* account field: written on a ticket */
.account { padding: 0; max-width: 640px; }
.account form { padding: 1rem 1rem 1.2rem; display: grid; gap: .8rem; }
.account label { font: 700 .85rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: #3d4a3e; }
.account input {
  width: 100%; border: 0; border-bottom: 3px solid var(--ink); background: transparent; padding: .4rem 0 .5rem;
  font: 400 clamp(1.4rem, 3.4vw, 2rem)/1.1 var(--hand); color: var(--pen); caret-color: var(--rug); outline: none;
}
.account input::placeholder { color: #8b8fa8; }
.account input:focus { border-bottom-color: var(--royal); }
.account .row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.account .hint { font-size: .95rem; color: #3d4a3e; }
.field-error { color: var(--rug); font-weight: 600; font-size: .98rem; }

/* reading the tape */
.reading { padding: 1.2rem 1.3rem; border: 3px solid var(--ink); border-radius: 6px; max-width: 640px; }
.reading ol { list-style: none; padding: 0; display: grid; gap: .45rem; font: 800 1.1rem/1.3 var(--led-face); }
.reading li { opacity: .25; transition: opacity .3s; }
.reading li.on { opacity: 1; }
.reading li.on::after { content: " · done"; color: var(--led-up); }
.reading li.now { opacity: 1; }
.reading li.now::after { content: "…"; }

/* notices */
.notice { border: 3px solid var(--ink); border-radius: 6px; padding: 1rem 1.2rem; background: var(--jacket-shade); max-width: 720px; }
.notice.bad { background: #7d1d12; }
.notice p + p { margin-top: .5rem; }
.notice .btn { margin-top: .9rem; }

/* membership strip */
.member { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--ink); border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; }
.member div { background: var(--jacket-shade); padding: .8rem .9rem; display: grid; grid-template-columns: 24px 1fr; gap: .2rem .6rem; align-items: center; }
.member svg { width: 22px; height: 22px; grid-row: span 2; }
.member .ok svg { color: var(--led-up); }
.member .no svg { color: #ff8a78; }
.member b { font: 800 .82rem/1.1 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.member span { font-size: .95rem; color: var(--on-jacket-soft); }
.member-note { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* rug tickets */
.rugs { list-style: none; padding: 0; display: grid; gap: 1.2rem; }
.rug { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; }
.rug .ticket-head b { font: 900 1.25rem/1 var(--display); letter-spacing: .02em; }
.rug dl { padding: .2rem 0; }
.rug .ticket-row { grid-template-columns: 7.5rem 1fr; }
.rug .ticket-row dd { font-size: 1.35rem; }
.rug-side { border-left: 2px dashed rgba(16, 20, 15, .35); padding: 1rem; display: grid; align-content: start; gap: .7rem; position: relative; }
.rug-side .why { font-weight: 600; color: #3a0f08; max-width: 34ch; }
.quote-big { font: 900 clamp(2rem, 4vw, 2.8rem)/1 var(--display); }
.quote-big small { font: 700 1rem/1 var(--label); letter-spacing: .1em; margin-left: .3rem; }
.quote-sub { font-size: .95rem; color: #2b3a2c; }
.quote-sub b { font-weight: 700; }
.rug .stamp { position: static; justify-self: start; transform: rotate(-6deg); font-size: 1.35rem; margin: .2rem 0 .3rem; }
.rug .btn { justify-self: start; }
.rug .btn-note { font-size: .88rem; color: #3d4a3e; }
.rug.claiming { opacity: .8; }
.rugs-meta { color: var(--on-jacket-soft); margin: .8rem 0 0; font-size: .95rem; }
.after-rugs { margin-top: 1.6rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* the fill */
.fill { display: grid; gap: 1.2rem; max-width: 760px; }
.fill-slip { padding: 1.2rem 1.3rem 1.4rem; position: relative; }
.fill-slip .big { font: 900 clamp(3rem, 8vw, 4.6rem)/.9 var(--display); }
.fill-slip .big small { font: 800 1.4rem/1 var(--display); margin-left: .4rem; }
.fill-slip p { margin-top: .5rem; color: #253026; }
.fill-slip .stamp { right: 18px; top: 18px; font-size: 2.4rem; }
.fill-slip a { color: var(--royal); font-weight: 700; }
.fill .report-card { width: 100%; height: auto; aspect-ratio: 1200 / 630; display: block; border: 3px solid var(--ink); border-radius: 6px; background: var(--jacket); }
.share-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.fill .actions { display: flex; flex-wrap: wrap; gap: .8rem; }

@media (max-width: 900px) {
  .desk { grid-template-columns: 1fr; }
  .desk-boomer { flex-direction: row; align-items: flex-end; border-right: 0; border-bottom: 3px solid var(--ink); padding: 1rem 1rem 0; }
  .desk-boomer .say { flex: 1; margin-bottom: 1rem; }
  .desk-boomer .say p { font-size: 1.3rem; }
  .desk-art { width: 132px; flex: none; position: static; }
}
@media (max-width: 640px) {
  .rug { grid-template-columns: 1fr; }
  .rug-side { border-left: 0; border-top: 2px dashed rgba(16, 20, 15, .35); }
  .member { grid-template-columns: 1fr; }
  .rug .ticket-row { grid-template-columns: 6.2rem 1fr; }
  .desk-art { width: 104px; }
}

/* the rug thesis: on the ticket, under the numbers */
.thesis { padding: .6rem 1rem .2rem; border-top: 1px solid rgba(16, 20, 15, .18); }
.thesis fieldset { border: 0; margin: 0; padding: 0; }
.thesis legend { padding: 0; margin-bottom: .45rem; font: 800 .8rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: #3d4a3e; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { min-height: 36px; padding: .3rem .7rem; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 .95rem/1 var(--label); cursor: pointer; transition: background-color .15s, color .15s; }
.chip:hover { background: rgba(16, 20, 15, .08); }
.chip.on, .chip:active { background: var(--ink); color: #fff; }
.chip:disabled { opacity: .5; cursor: progress; }
.thesis-call { margin: 0; color: var(--ink); }
.thesis-call b { font-family: var(--hand); font-weight: 400; font-size: 1.3rem; color: var(--pen); }
.linkish { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.autopsy-link { display: inline-block; margin: .5rem 1rem 1rem; color: var(--ink); font-weight: 600; font-size: .95rem; }
