/* SPDX-License-Identifier: AGPL-3.0-only */
:root {
  --marble: #f8ece6;
  --marble-2: #efdfd6;
  --stone: #b8a69b;
  --stone-dark: #7d6c63;
  --stone-ink: #6e5f57;
  --ink: #000000;
  --text: #2a2320;
  --orange: #ad3100;
  --ember: #f2702f;

  --glass: rgba(10, 8, 7, 0.8);
  --glass-deep: rgba(7, 5, 5, 0.9);
  --glass-edge: rgba(255, 255, 255, 0.11);
  --glass-line: rgba(248, 236, 230, 0.1);
  --on-glass: #f8ece6;
  --on-glass-2: rgba(248, 236, 230, 0.62);
  --on-glass-3: rgba(248, 236, 230, 0.38);
  --ink-on-marble-button: #120d0b;

  --hairline: rgba(0, 0, 0, 0.1);
  --field-edge: rgba(0, 0, 0, 0.22);
  --field-fill: rgba(255, 255, 255, 0.65);
  --focus-ring: rgba(173, 49, 0, 0.8);
  --bar: rgba(248, 236, 230, 0.8);

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --r-window: 22px;
  --r-card: 14px;
  --r-control: 10px;
  --r-button: 7px;
  --r-pill: 999px;
}

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

[hidden] {
  display: none !important;
}

html {
  background: var(--marble);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--orange);
  text-underline-offset: 0.18em;
}

a:not([href]) {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  max-width: 20ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: 0;
}

p {
  margin: 0 0 1rem;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.page.marked::before {
  content: "";
  position: absolute;
  right: -9rem;
  bottom: -11rem;
  width: 38rem;
  height: 38rem;
  background: url("mark.png") center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.page.sculpted {
  --sculpture-width: 32rem;
  isolation: isolate;
}

.page.sculpted::after {
  content: "";
  position: absolute;
  left: min(0px, calc((100vw - 70rem) / 2 + 1.5rem - var(--sculpture-width) * 0.66));
  bottom: 0;
  width: var(--sculpture-width);
  aspect-ratio: 1060 / 851;
  background: url("backdrop.jpg") left bottom / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

.page > * {
  position: relative;
}

.wrap {
  width: min(100%, 70rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap.reading {
  width: min(100%, 50rem);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--hairline);
  background: var(--bar);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 3.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.masthead-home {
  display: block;
  border-radius: var(--r-control);
}

.wordmark {
  width: 7.25rem;
  margin-left: -0.72rem;
}

.masthead nav {
  display: flex;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.masthead nav a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-button);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.masthead nav a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
}

.masthead nav a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink);
}

.masthead a:focus-visible {
  outline-offset: 1px;
}

.asker {
  margin: 2.5rem 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--stone-dark);
}

main h1 {
  margin-top: 2.5rem;
}

.asker + h1,
.hero-words h1 {
  margin-top: 0;
}

.lede {
  margin: 0.9rem 0 2rem;
  max-width: 48ch;
  font-size: 1.125rem;
  line-height: 1.5;
}

.note {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--stone-dark);
}

.profile-kept {
  margin: 0 0 1.5rem;
}

.profile-kept[hidden] {
  display: none;
}

button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--orange);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.actions + .note {
  margin: 1.5rem 0 0;
}

.section {
  margin-top: 4rem;
}

.section > h2 {
  margin-bottom: 1rem;
}

.section > p {
  max-width: 62ch;
}

.observation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto repeat(var(--rows, 5), auto);
  column-gap: 2.5rem;
  padding-top: 0.25rem;
}

.observation > section {
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
}

.glass .observation h2 {
  margin: 0;
  padding-bottom: 0.35rem;
  color: var(--on-glass-2);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.observation ul {
  display: grid;
  grid-row: 2 / -1;
  grid-template-rows: subgrid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.observation li {
  padding: 0.4rem 0;
  color: var(--on-glass);
  font-size: 1rem;
  line-height: 1.4;
  text-wrap: pretty;
}

.observation .never li {
  color: var(--on-glass-2);
}

.observation + .statement {
  margin-top: 1.25rem;
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 1px solid var(--glass-line);
  color: var(--on-glass-2);
  text-wrap: pretty;
}

.observation + .statement strong {
  color: var(--on-glass);
}

.glass.invitation-window {
  margin-top: 3rem;
}

.glass.invitation-window .glass-content {
  padding: 2.25rem 2.5rem 2rem;
}

.glass.invitation-window .asker {
  margin: 0 0 1rem;
  color: var(--on-glass-2);
}

.glass.invitation-window h1 {
  max-width: none;
  margin: 0;
  color: var(--on-glass);
  font-size: 2.25rem;
  line-height: 1.1;
}

.glass.invitation-window .sub {
  margin: 0.75rem 0 1.75rem;
  font-size: 1.0625rem;
}

.glass.invitation-window .actions {
  justify-content: center;
  margin: 1.75rem 0 0;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--hairline);
}

.plain-list li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.plain-list.quiet li {
  color: var(--stone-dark);
}

.plain-list b {
  color: var(--ink);
  font-weight: 600;
}

.statement {
  margin: 2rem 0 0;
  padding: 1.1rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.statement + .note {
  margin-top: 1rem;
}

.statement + .plain-list li:first-child,
.plain-list + .statement {
  border-top: 0;
}

.plain-list + .statement {
  margin-top: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.actions .note {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--r-button);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
}

.btn.light {
  border-color: #2a2422;
  border-bottom-color: var(--ink);
  background: linear-gradient(#383230, #171311);
  color: var(--marble);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 1.5px rgba(0, 0, 0, 0.1);
}

.btn.light:active {
  background: var(--ink);
  color: rgba(248, 236, 230, 0.82);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.btn.light-quiet {
  border-color: rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(0, 0, 0, 0.34);
  background: linear-gradient(#ffffff, #fbf5f1);
  color: var(--ink);
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.1);
}

.btn.light-quiet:active {
  background: #eaddd5;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.14);
}

.btn.primary {
  border-color: rgba(255, 255, 255, 0.6);
  background: linear-gradient(#fffaf7, #ecddd4);
  color: var(--ink-on-marble-button);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn.primary:active {
  background: #d6c6bc;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn.quiet {
  border-color: rgba(248, 236, 230, 0.15);
  background: linear-gradient(rgba(248, 236, 230, 0.18), rgba(248, 236, 230, 0.12));
  color: var(--on-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.45);
}

.btn.quiet:active {
  background: rgba(248, 236, 230, 0.28);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  box-shadow: none;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: min(46rem, 92vh);
  border-bottom: 1px solid var(--hairline);
}

.hero-words {
  align-self: center;
  padding: 2.5rem 3rem 3.5rem max(1.5rem, calc((100vw - 70rem) / 2 + 1.5rem));
}

.hero-words .wordmark {
  width: 8.6rem;
  margin-bottom: 3.5rem;
  margin-left: -0.85rem;
}

.hero-words h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  max-width: 14ch;
}

.hero-art {
  width: 100%;
  height: 100%;
  min-height: 21rem;
  object-fit: cover;
  object-position: 100% 20%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 20%);
  mask-image: linear-gradient(to right, transparent, #000 20%);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  grid-template-rows: 1fr auto auto auto 1fr;
  column-gap: 4.5rem;
  margin-top: 3rem;
}

.product > h2 {
  grid-area: 2 / 2;
  font-size: clamp(1.875rem, 3.1vw, 2.5rem);
  text-wrap: balance;
}

.claims {
  grid-area: 3 / 2;
  margin: 2rem 0 0;
}

.claims > div {
  padding: 1.1rem 0 1.2rem;
  border-top: 1px solid var(--hairline);
}

.claims > div:last-child {
  border-bottom: 1px solid var(--hairline);
}

.claims dt {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.claims dd {
  margin: 0.3rem 0 0;
  color: var(--stone-ink);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: balance;
}

.onward {
  grid-area: 4 / 2;
  justify-self: start;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.specimen {
  grid-area: 1 / 1 / -1 / 1;
  margin: 0;
}

.specimen-stage {
  position: relative;
  padding: 4.5rem 0;
}

.specimen .glass {
  margin-top: 0;
}

.window-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0.9rem 1.1rem 0;
  color: var(--on-glass-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

.window-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(248, 236, 230, 0.16);
}

.window-bar span {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-right: 52px;
}

.window-bar img {
  width: 14px;
  height: 14px;
}

.specimen-title {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.specimen .reading-help p {
  color: var(--on-glass);
}

.ledger.others {
  margin-top: 0;
}

.ledger.others li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ledger.others .seen {
  color: var(--on-glass-2);
  font-family: var(--sans);
  font-size: 0.9375rem;
}

.closing {
  margin-top: 7rem;
}

.closing > h2 {
  margin-bottom: 2.5rem;
  font-size: clamp(1.875rem, 3.1vw, 2.5rem);
}

.closing > .actions {
  margin-top: 3.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 3.5rem;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 1.75rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 1.5rem;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
}

.steps b {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
}

.steps span {
  display: block;
  max-width: 30ch;
  margin-top: 0.5rem;
  color: var(--stone-ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pairs {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
}

.pairs th,
.pairs td {
  width: 50%;
  padding: 0.7rem 0;
  text-align: left;
  vertical-align: top;
}

.pairs th:first-child,
.pairs td:first-child {
  padding-right: 2rem;
}

.pairs th {
  padding-top: 0;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.pairs td {
  border-top: 1px solid var(--hairline);
}

.pairs td:last-child {
  color: var(--stone-dark);
}

.pairs tbody tr:last-child td {
  border-bottom: 1px solid var(--hairline);
}

.numbered {
  max-width: 62ch;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
  counter-reset: step;
}

.numbered li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  row-gap: 0.3rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
  counter-increment: step;
}

.numbered li::before {
  content: counter(step);
  grid-row: span 2;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
}

.numbered b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.numbered span {
  grid-column: 2;
  color: var(--text);
}

.section > .plain-list {
  margin-top: 1.5rem;
}

.footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
  color: var(--stone-dark);
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer p + p {
  margin-top: 0.4rem;
}

form {
  margin: 0;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.when {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 0 1rem;
}

.field {
  position: relative;
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > label,
.field > legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.field > legend {
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field .opens {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--field-edge);
  border-radius: var(--r-control);
  background: var(--field-fill);
  color: var(--ink);
  font: inherit;
}

.field .opens {
  display: block;
  padding-right: 2.25rem;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%237d6c63' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 0.75rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}

.field .opens[aria-expanded="true"] {
  border-color: var(--ink);
}

.field .unanswered {
  color: var(--stone-dark);
}

.field input[aria-invalid],
.field .opens[aria-invalid] {
  border-color: var(--orange);
}

.field input:focus-visible,
.field textarea:focus-visible,
.field .opens:focus-visible {
  outline-offset: 1px;
}

.popover {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 5;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-card);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 26%), var(--glass);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  backdrop-filter: blur(34px) saturate(170%);
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.16) inset;
  color: var(--on-glass);
  font-size: 0.9375rem;
  line-height: 1.2;
}

.calendar {
  width: 18.5rem;
  padding: 0.75rem 0.875rem 0.875rem;
}

.calendar-head {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.calendar-month {
  flex: 1;
  margin: 0;
  padding-left: 0.6rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
}

.calendar-turn,
.dialog-close {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: var(--r-button);
  background: none;
  color: var(--on-glass-2);
  cursor: default;
}

.calendar-turn:hover,
.dialog-close:hover {
  background: rgba(248, 236, 230, 0.1);
  color: var(--on-glass);
}

.calendar-turn[aria-disabled="true"] {
  background: none;
  color: rgba(248, 236, 230, 0.2);
}

.calendar-turn svg,
.dialog-close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendar table {
  width: 100%;
  border-spacing: 0;
}

.calendar th {
  height: 1.75rem;
  padding: 0;
  color: var(--on-glass-2);
  font-size: 0.75rem;
  font-weight: 400;
}

.calendar td {
  padding: 1px;
  text-align: center;
}

.day {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  background: none;
  color: var(--on-glass);
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.day:hover {
  background: rgba(248, 236, 230, 0.1);
}

.day[aria-current="date"] {
  border-color: rgba(248, 236, 230, 0.45);
}

.day:disabled {
  background: none;
  color: rgba(248, 236, 230, 0.3);
}

.calendar td[aria-selected="true"] .day {
  border-color: var(--on-glass);
  background: var(--on-glass);
  color: var(--ink-on-marble-button);
  font-weight: 600;
}

.day:focus-visible {
  outline-offset: 1px;
}

.time-list {
  right: 0;
  max-height: 15.25rem;
  margin: 0;
  padding: 0.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(248, 236, 230, 0.25) transparent;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.time-list li {
  padding: 0.5rem 0.6rem;
  border-radius: var(--r-control);
  cursor: default;
}

.time-list li:hover,
.time-list li.is-in-focus {
  background: rgba(248, 236, 230, 0.12);
}

.time-list li[aria-selected="true"] {
  background: var(--on-glass);
  color: var(--ink-on-marble-button);
  font-weight: 600;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.choices.of-two {
  grid-template-columns: 1fr 1fr;
}

.choice {
  position: relative;
  display: block;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--field-edge);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice b {
  display: block;
  color: var(--ink);
  font-size: 0.9375rem;
}

.choice span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--stone-dark);
}

.choice:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: #fff;
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.problems {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--orange);
  font-size: 0.9375rem;
}

.problems li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--hairline);
}

.glass {
  position: relative;
  margin-top: 2.5rem;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-window);
  background: var(--glass-deep);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  backdrop-filter: blur(34px) saturate(170%);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.16) inset;
  color: var(--on-glass);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 26%);
}

.glass-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem 2rem 1.75rem;
}

.glass:focus {
  outline: none;
}

.glass :focus-visible,
.popover :focus-visible {
  outline-color: var(--ember);
}

html:has(dialog[open]) {
  overflow: hidden;
}

dialog.glass {
  position: fixed;
  inset: 0;
  width: min(100% - 2rem, 45rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
}

dialog.glass.small {
  width: min(100% - 2rem, 30rem);
}

dialog.glass[open] {
  display: flex;
  flex-direction: column;
}

dialog.glass::backdrop {
  background: rgba(18, 13, 11, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0 2rem;
}

.dialog-head h2 {
  margin: 0;
}

.dialog-head h2:focus {
  outline: none;
}

dialog.glass .glass-content {
  padding-top: 0.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.glass h2,
.glass h3 {
  color: var(--on-glass);
}

.glass h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.glass .sub {
  margin: 0 0 1rem;
  color: var(--on-glass-2);
}

.glass .field > label {
  color: var(--on-glass);
}

.glass .field .hint {
  margin: 0 0 0.25rem;
  color: var(--on-glass-2);
}

.glass .field textarea {
  height: 11.5rem;
  min-height: 6rem;
  border-color: var(--glass-line);
  background: rgba(248, 236, 230, 0.07);
  color: var(--on-glass);
  font-family: var(--serif);
  font-size: 0.96875rem;
  line-height: 1.5;
  resize: vertical;
}

.link-line {
  margin: 0 0 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--glass-line);
  border-bottom: 1px solid var(--glass-line);
  overflow: hidden;
  color: var(--on-glass-2);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

output.link-line {
  display: block;
}

.link-line.whole {
  margin-top: 0.75rem;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-user-select: all;
  user-select: all;
}

.glass h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
}

.kept-for-yourself {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-line);
}

.kept-for-yourself .actions {
  margin-bottom: 0.75rem;
}

.kept-for-yourself .said {
  margin: 0 0 1rem;
}

.said.is-not-done {
  color: var(--on-glass);
  font-weight: 600;
}

.shown-on-request summary {
  color: var(--on-glass-2);
  font-size: 0.875rem;
  cursor: pointer;
}

.glass .actions {
  margin: 0 0 1.5rem;
}

.glass .actions:last-child {
  margin-bottom: 0;
}

.said {
  color: var(--on-glass-2);
  font-size: 0.875rem;
}

.listing-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.listing-offer[hidden] {
  display: none;
}

.listing-offer p {
  margin: 0;
  max-width: 58ch;
  color: var(--stone-dark);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.listing-offer .btn {
  flex: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-pill);
  color: var(--on-glass-2);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pill.use {
  color: var(--on-glass);
  border-color: rgba(248, 236, 230, 0.3);
}

.pill.look {
  color: var(--ember);
  border-color: rgba(242, 112, 47, 0.55);
}

.pill.likely {
  color: var(--ink-on-marble-button);
  background: var(--ember);
  border-color: var(--ember);
}

.pill.blind {
  color: var(--ember);
  border-style: dashed;
  border-color: rgba(242, 112, 47, 0.6);
}

.pill.blind::before {
  width: 6px;
  height: 6px;
  border: 1.5px dashed currentColor;
  background: none;
}

.app-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--glass-line);
}

.glass-content > .app-row:first-child {
  padding-top: 0.25rem;
  border-top: 0;
}

.glass-content > .app-row:last-child {
  padding-bottom: 0;
}

.app-row .name {
  font-weight: 600;
}

.app-row .use {
  display: block;
  color: var(--on-glass-2);
  font-size: 0.875rem;
  font-weight: 400;
}

.finding {
  padding: 1.1rem 0;
  border-top: 1px solid var(--glass-line);
}

.finding .app-row {
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  padding: 0;
  border-top: 0;
  list-style: none;
  cursor: pointer;
}

.finding .app-row::-webkit-details-marker {
  display: none;
}

.finding .app-row::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 0.25rem 0.2rem 0.1rem;
  border-right: 1.5px solid var(--on-glass-2);
  border-bottom: 1.5px solid var(--on-glass-2);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.finding[open] .app-row::after {
  margin-bottom: -0.2rem;
  transform: rotate(-135deg);
}

.finding .app-row:focus-visible {
  outline: 2px solid var(--on-glass);
  outline-offset: 6px;
  border-radius: var(--r-button);
}

.finding .app-row h3 {
  margin: 0;
}

.app-icon {
  display: block;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-button);
  object-fit: contain;
}

.app-icon.plain {
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  margin: 0.1875rem;
  border: 1px solid var(--glass-edge);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(248, 236, 230, 0.16), rgba(248, 236, 230, 0.06));
  color: var(--on-glass);
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
}

.finding .name {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.finding .use {
  margin-top: 0.25rem;
  font-family: var(--sans);
  letter-spacing: 0;
}

.ledger {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  border-top: 1px solid var(--glass-line);
}

.ledger li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--glass-line);
}

.ledger .seen {
  font-family: var(--serif);
  font-size: 1.03rem;
  line-height: 1.45;
  color: var(--on-glass);
}

.ledger .measure {
  font-size: 0.875rem;
  color: var(--on-glass-2);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ledger .services {
  display: flex;
  align-self: center;
  justify-content: flex-end;
  align-items: center;
  margin-right: -3px;
}

.service-mark {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  margin: -4px -3px;
  object-fit: contain;
}

.service-mark.plain {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin: 0 3.5px;
  border: 1px solid var(--on-glass-2);
  border-radius: 50%;
  color: var(--on-glass);
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1;
}

.with-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.company-logo {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 0 0 1px var(--hairline);
}

.glass .company-logo {
  box-shadow: 0 0 0 1px var(--glass-line);
}

.specimen .company-logo {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 5px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.logo-row .company-logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
}

.logo-row .btn:has(input:focus-visible) {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
}

.field .hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--stone-dark);
}

.field .refusal {
  margin: 0;
  font-size: 0.875rem;
  color: var(--orange);
}

.reading-help {
  margin: 1.1rem 0 0;
}

.reading-help .who {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--on-glass-2);
  font-size: 0.8125rem;
  font-weight: 500;
}

.reading-help p {
  margin: 0;
  color: var(--on-glass-2);
  line-height: 1.5;
}

.reading-help p + p {
  margin-top: 0.5rem;
}

.reading-help .ask {
  color: var(--on-glass);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.4;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-top: 1px solid var(--hairline);
}

.rows li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.rows .name {
  color: var(--ink);
  font-weight: 600;
}

.rows .measure {
  font-size: 0.875rem;
  color: var(--stone-dark);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.lanes li {
  grid-template-columns: 11rem 1fr 5.5rem;
  align-items: center;
}

.track {
  position: relative;
  height: 0.5rem;
  border-radius: var(--r-pill);
  background: var(--marble-2);
  overflow: hidden;
}

.track i {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 2px;
  background: var(--ink);
}

.drop {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 3.25rem 2rem;
  border: 1px dashed rgba(0, 0, 0, 0.45);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.drop-prompt {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.drop .note {
  margin-bottom: 1rem;
}

.drop.is-over {
  border-style: solid;
  border-color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.drop.is-refused {
  border-color: var(--orange);
}

.drop:has(input:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.reading-key-request,
.statement + .drop,
#refusal + .drop,
.key-given + .drop {
  margin-top: 1.5rem;
}

.reading-key-request .note {
  margin-top: 1rem;
}

.key-given .actions {
  margin-top: 1rem;
}

.rehearsal-notice {
  margin: 2.5rem 0 0;
  padding: 0.9rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
}

@media (max-width: 62rem) {
  .page.sculpted::after {
    content: none;
  }

  .product {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .product > h2,
  .claims,
  .onward,
  .specimen {
    grid-area: auto;
  }

  .claims {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
    margin-top: 2.5rem;
  }

  .claims > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 52rem) {
  .hero,
  .two,
  .when,
  .choices,
  .choices.of-two {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .observation,
  .observation > section,
  .observation ul {
    display: block;
  }

  .observation > section + section {
    margin-top: 1.25rem;
  }

  .glass.invitation-window .glass-content {
    padding: 1.5rem 1.25rem;
  }

  .glass.invitation-window h1 {
    font-size: 1.75rem;
  }

  .claims,
  .steps {
    grid-template-columns: 1fr;
  }

  .claims > div:last-child {
    border-bottom: 1px solid var(--hairline);
  }

  .steps li {
    padding: 1.5rem 0;
  }

  .steps li + li {
    border-top: 1px solid var(--hairline);
  }

  .steps li::before {
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
  }

  .specimen-stage {
    padding: 3rem 0;
  }

  .hero-words {
    padding: 1.75rem 1.5rem 2.5rem;
  }

  .hero-words .wordmark {
    margin-bottom: 2.25rem;
  }

  .hero-art {
    aspect-ratio: 1 / 1;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%);
    mask-image: linear-gradient(to bottom, transparent, #000 16%);
  }

  .masthead .wrap {
    padding: 0.4rem 1rem;
  }

  .masthead-row {
    min-height: 3.25rem;
  }

  .masthead .wordmark {
    width: 6rem;
    margin-left: -0.6rem;
  }

  .masthead nav {
    gap: 0;
    font-size: 0.8125rem;
  }

  .masthead nav a {
    padding: 0.4rem 0.5rem;
  }

  .calendar {
    max-width: calc(100vw - 3rem);
  }

  .dialog-head {
    padding: 1.25rem 1rem 0 1.25rem;
  }

  .page.marked::before {
    right: -7rem;
    bottom: -7rem;
    width: 22rem;
    height: 22rem;
  }

  .glass-content {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .listing-offer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .app-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .finding .app-row {
    grid-template-columns: auto 1fr;
  }

  .finding .app-row .pill {
    grid-column: 2;
  }

  .ledger li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .ledger .measure {
    text-align: left;
  }

  .ledger .services {
    justify-content: flex-start;
    align-self: start;
    margin: 0 0 0 -3px;
  }

  .lanes li {
    grid-template-columns: 1fr auto;
  }

  .lanes .track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

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