/* ==========================================================================
   Sterling & Stone — landing page
   Colours are sampled from the brand logo files: charcoal, ivory and
   sterling silver. Silver is kept for the logo and fine rules only.
   ========================================================================== */

:root {
  /* Palette */
  --charcoal: #16191b;       /* hero, founding offer, founders, footer */
  --charcoal-raised: #202427;/* pressed states on charcoal */
  --ivory: #eeebe5;          /* reading sections (the logo's light ground) */
  --paper: #f7f5f1;          /* pricing, form surfaces */
  --ink: #121719;            /* text on light */
  --ink-2: #545a60;          /* secondary text on light (5.8:1 on ivory) */
  --on-dark: #ecebe5;        /* text on charcoal */
  --on-dark-2: #a6acb0;      /* secondary text on charcoal (8:1) */
  --silver: #a8b0b0;         /* hairlines on charcoal */
  --rule: #d4cfc6;           /* hairlines on light */
  --rule-dark: #2d3235;      /* hairlines on charcoal */
  --field-edge: #767c80;     /* input borders: 4:1 on paper */
  --error: #a33a2f;

  /* Type */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --gutter: 1.25rem;
  --max: 76rem;
  --header-h: 4.5rem;
  --radius: 4px;             /* panels: close to print, never bubbly */
  --pill: 999px;             /* buttons echo the circular seal */

  /* Motion: critically damped spring (no overshoot) for the sheet;
     a little give only after a drag, when the gesture carried momentum. */
  --spring: cubic-bezier(0.2, 0.9, 0.3, 1);
  --spring-dur: 0.54s;
  --spring-bouncy: cubic-bezier(0.2, 0.9, 0.3, 1);
  --spring-bouncy-dur: 0.38s;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.049, 0.158, 0.286, 0.412, 0.526, 0.625, 0.706, 0.773, 0.826, 0.867, 0.899, 0.924, 0.943, 0.957, 0.968, 0.976, 0.983, 0.987, 0.991, 0.993, 0.995, 0.996, 0.997, 1);
    --spring-bouncy: linear(0, 0.031, 0.108, 0.209, 0.322, 0.434, 0.54, 0.636, 0.719, 0.79, 0.848, 0.895, 0.932, 0.959, 0.98, 0.994, 1.004, 1.01, 1.014, 1.015, 1.015, 1.014, 1.013, 1.011, 1.009, 1.008, 1.006, 1.005, 1.004, 1.003, 1);
  }
}

@media (min-width: 48rem) { :root { --gutter: 2rem; } }
@media (min-width: 72rem) { :root { --gutter: 3rem; } }

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  scroll-behavior: smooth;
}
html.sheet-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
strong { font-weight: 600; }

::selection { background: var(--charcoal); color: var(--on-dark); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible,
.site-header :focus-visible,
.section--charcoal :focus-visible,
.founding :focus-visible,
.site-footer :focus-visible { outline-color: var(--on-dark); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--on-dark);
  color: var(--charcoal);
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.375rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.lede {
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.small { font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }

.amount {
  font-family: var(--serif);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- Links and buttons ---------- */
.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  cursor: pointer;
  transition: text-decoration-color 150ms ease;
}
.link--on-dark { color: var(--on-dark); text-decoration-color: rgb(236 235 229 / 0.45); }
@media (hover: hover) {
  .link:hover { text-decoration-thickness: 2px; }
  .link--on-dark:hover { text-decoration-color: var(--on-dark); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font: 500 1rem/1 var(--sans);
  letter-spacing: 0.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform var(--spring-dur) var(--spring);
}
/* Feedback on press, not on release */
.btn:active { transform: scale(0.97); transition-duration: 150ms, 150ms, 150ms, 90ms; }

.btn--small { min-height: 2.5rem; padding: 0 1.125rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.btn--ivory { background: var(--on-dark); color: var(--charcoal); }
.btn--charcoal { background: var(--charcoal); color: var(--on-dark); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
@media (hover: hover) {
  .btn--ivory:hover { background: #ffffff; }
  .btn--charcoal:hover { background: var(--charcoal-raised); }
  .btn--quiet:hover { border-color: var(--ink-2); }
}
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.is-busy .btn__label::after { content: "…"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule-dark); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.site-header__logo {
  display: block;
  margin-right: auto;
  border-radius: 2px;
}
.site-header__logo img { width: clamp(11.5rem, 9rem + 6vw, 15.5rem); }

.site-nav { display: none; gap: 2rem; }
.site-nav a {
  font-size: 0.9375rem;
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color 150ms ease;
}
@media (hover: hover) { .site-nav a:hover { color: var(--on-dark); } }
@media (min-width: 56rem) { .site-nav { display: flex; } }

.site-header .btn--small { display: none; }
@media (min-width: 30rem) { .site-header .btn--small { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
  background: var(--charcoal);
  color: var(--on-dark);
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: 2.5rem 3.5rem;
}

.hero__seal {
  order: -1;
  width: 9.5rem;
}

.hero__title {
  max-width: 13ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 1.6rem + 5.2vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 33rem;
  margin-top: 1.75rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--on-dark-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.hero__foot {
  display: grid;
  gap: 0.25rem;
  position: relative;
  padding-block: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--on-dark-2);
}
/* The rule spans the content width, not the viewport */
.hero__foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(var(--gutter), env(safe-area-inset-left));
  right: max(var(--gutter), env(safe-area-inset-right));
  border-top: 1px solid var(--rule-dark);
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4rem;
    min-height: min(46rem, calc(100svh - var(--header-h) - 4.5rem));
    padding-block: 4rem;
  }
  .hero__seal {
    order: 0;
    width: min(100%, 31rem);
    justify-self: end;
  }
  .hero__foot { grid-template-columns: 1fr auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: 5rem; }
@media (min-width: 56rem) { .section { padding-block: 7.5rem; } }

.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.section--charcoal { background: var(--charcoal); color: var(--on-dark); }
.section--charcoal .lede { color: var(--on-dark-2); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: 3rem; }
@media (min-width: 56rem) {
  .section-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: end;
    margin-bottom: 4rem;
  }
  .section-head .lede { justify-self: end; }
}

/* Heading on the left, content on the right */
.split { display: grid; gap: 3rem; }
.split__head { display: grid; gap: 1.25rem; align-content: start; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .split__head { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

/* ---------- What we do: a running order with real timings ---------- */
.schedule__item {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}
.schedule__item:last-child { border-bottom: 1px solid var(--rule); }

.schedule__when {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.schedule__item .h3 { margin-bottom: 0.5rem; }
.schedule__item p:not(.schedule__when) { max-width: 34rem; color: var(--ink-2); }

@media (min-width: 40rem) {
  .schedule__item { grid-template-columns: 11rem 1fr; gap: 2rem; }
  .schedule__when { padding-top: 0.375rem; }
}

/* ---------- Pricing ---------- */
.founding {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--on-dark);
}

.founding__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.1;
}

.founding__price {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--on-dark-2);
}
.founding__price .amount {
  margin-right: 0.375rem;
  font-size: clamp(3rem, 2.4rem + 2.4vw, 4.25rem);
  line-height: 1;
  color: var(--on-dark);
}

.founding__text {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--on-dark-2);
}

.founding__terms { display: grid; gap: 0; align-content: start; }
.founding__terms div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-block: 0.875rem;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.9375rem;
}
.founding__terms div:last-child { border-bottom: 1px solid var(--rule-dark); }
.founding__terms dt { color: var(--on-dark-2); }

.founding__cta { justify-self: start; }

@media (min-width: 56rem) {
  .founding {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 4rem;
    padding: 3rem;
  }
  .founding__cta { grid-column: 1; }
  .founding__terms { grid-column: 2; grid-row: 1 / span 2; }
}

/* The rate card: one ruled row per plan, prices aligned on the right */
.ratecard { margin-top: 4rem; border-top: 1px solid var(--ink); }

.rate {
  display: grid;
  gap: 1.25rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}

.rate__name p { margin-top: 0.375rem; color: var(--ink-2); }

.rate__includes { display: grid; gap: 0.5rem; }
.rate__includes li {
  position: relative;
  padding-left: 1.125rem;
  line-height: 1.5;
}
.rate__includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.5rem;
  border-top: 1px solid var(--ink-2);
}

.rate__price { color: var(--ink-2); }
.rate__price .amount {
  margin-right: 0.25rem;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--ink);
}
.rate__from { font-size: 0.9375rem; }
.rate__fee { margin-top: 0.5rem; font-size: 0.9375rem; }

@media (min-width: 56rem) {
  .rate {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
    gap: 3rem;
    padding-block: 2.5rem;
  }
  .rate__price { text-align: right; }
}

.extras { display: grid; gap: 2.5rem; margin-top: 4rem; }
.extra { display: grid; gap: 0.75rem; align-content: start; }
.extra p { max-width: 32rem; color: var(--ink-2); }
.extra strong { color: var(--ink); }
@media (min-width: 56rem) { .extras { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.addons { display: grid; }
.addons div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--rule);
}
.addons div:last-child { border-bottom: 1px solid var(--rule); }
.addons dt { color: var(--ink); }
.addons dd { color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }

.pricing__terms { margin-top: 3rem; }

/* ---------- Founders ---------- */
.people { display: grid; gap: 0; }
.person {
  display: grid;
  gap: 0.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule-dark);
}
.person:last-child { border-bottom: 1px solid var(--rule-dark); }
.person__name { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.15; }
.person__role { color: var(--on-dark-2); }
.person__email {
  justify-self: start;
  margin-top: 0.75rem;
  font-weight: 500;
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgb(236 235 229 / 0.45);
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
}
@media (hover: hover) { .person__email:hover { text-decoration-color: var(--on-dark); text-decoration-thickness: 2px; } }

@media (min-width: 40rem) {
  .people { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .person:last-child { border-bottom: 0; }
  .people { border-bottom: 1px solid var(--rule-dark); }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 4rem calc(2rem + env(safe-area-inset-bottom));
  background: var(--charcoal);
  color: var(--on-dark-2);
}
.site-footer__inner { display: grid; gap: 1.5rem; }
.site-footer__logo { width: min(100%, 22rem); }
.site-footer__line { font-family: var(--serif); font-size: 1.375rem; color: var(--on-dark); }
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.875rem;
}

/* ---------- Waitlist sheet ---------- */
.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.sheet::backdrop { background: transparent; }

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgb(10 12 13 / 0.72);
  opacity: 0;
  transition: opacity 300ms ease;
}
.sheet.is-open .sheet__scrim { opacity: 1; }

.sheet__panel {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 2.5rem);
  border-radius: 14px 14px 0 0;
  background: var(--paper);
  box-shadow: 0 -12px 40px rgb(22 25 27 / 0.2);
  transform: translateY(100%);
  transition: transform var(--spring-dur) var(--spring);
  will-change: transform;
}
.sheet.is-open .sheet__panel { transform: translateY(0); }

.sheet__grab {
  position: relative;
  flex: none;
  display: flex;
  justify-content: center;
  padding: 0.625rem 1rem 0.25rem;
  touch-action: none;
  cursor: grab;
}
.sheet__grab:active { cursor: grabbing; }

.sheet__handle { width: 2.5rem; height: 0.3125rem; border-radius: var(--pill); background: var(--rule); }

.sheet__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 150ms ease, transform var(--spring-dur) var(--spring);
}
.sheet__close:active { transform: scale(0.92); transition-duration: 150ms, 90ms; }
@media (hover: hover) { .sheet__close:hover { background: var(--ivory); color: var(--ink); } }

.sheet__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem 1.5rem calc(1.75rem + env(safe-area-inset-bottom));
}

.sheet__title {
  padding-right: 2rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
}
.sheet__title:focus { outline: none; }

.sheet__intro { margin-top: 0.75rem; color: var(--ink-2); }

.sheet__small {
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
}

/* Wider screens: a centred panel that scales up from slightly smaller */
@media (min-width: 40rem) {
  .sheet__panel {
    inset: 50% auto auto 50%;
    width: min(34rem, calc(100vw - 3rem));
    max-height: calc(100dvh - 4rem);
    border-radius: 10px;
    box-shadow: 0 24px 64px rgb(22 25 27 / 0.28);
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    transition: transform var(--spring-dur) var(--spring), opacity 200ms ease;
  }
  .sheet.is-open .sheet__panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .sheet__grab { justify-content: flex-end; padding: 0.75rem 0.75rem 0; touch-action: auto; cursor: default; }
  .sheet__handle { display: none; }
  .sheet__close { position: static; }
  .sheet__body { padding: 0 2.25rem 2.25rem; }
}

/* ---------- Form ---------- */
.waitlist { display: grid; gap: 1.125rem; }
.waitlist .sheet__intro { margin-bottom: 0.5rem; }

.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; gap: 1.125rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label { font-size: 0.9375rem; font-weight: 500; }
.optional { color: var(--ink-2); font-weight: 400; }

.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--field-edge);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: 400 1rem/1.3 var(--sans); /* 16px stops iOS zooming into the field */
  transition: border-color 150ms ease, box-shadow 150ms ease;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder { color: var(--ink-2); opacity: 0.85; }
.field input:focus {
  outline: none;
  border-color: var(--charcoal);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--charcoal);
}
.field input[aria-invalid="true"] { border-color: var(--error); }

.field__error { font-size: 0.875rem; line-height: 1.4; color: var(--error); }
.field__error[hidden] { display: none; }

.check {
  display: grid;
  grid-template-columns: 1.375rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  width: 1.375rem;
  height: 1.375rem;
  margin: 0;
  border: 1px solid var(--field-edge);
  border-radius: 3px;
  background: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform var(--spring-dur) var(--spring);
}
.check input:active { transform: scale(0.9); transition-duration: 150ms, 150ms, 90ms; }
.check input:checked {
  border-color: var(--charcoal);
  background: var(--charcoal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ECEBE5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}
.check input:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.check input[aria-invalid="true"] { border-color: var(--error); }

.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: rgb(163 58 47 / 0.08);
  font-size: 0.9375rem;
}
.form-status[hidden] { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done { display: grid; gap: 0.75rem; justify-items: start; padding-block: 0.5rem 0.25rem; }
.done[hidden] { display: none; }
.done .btn { margin-top: 1rem; }
.done__mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
  border-radius: var(--pill);
  background: var(--charcoal);
  color: var(--on-dark);
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .btn:active, .sheet__close:active, .check input:active { transform: none; }
  /* The sheet cross-fades instead of sliding */
  .sheet__panel,
  .sheet.is-open .sheet__panel { transform: none; opacity: 0; transition: opacity 200ms ease; }
  .sheet.is-open .sheet__panel { opacity: 1; }
  @media (min-width: 40rem) {
    .sheet__panel, .sheet.is-open .sheet__panel { transform: translate(-50%, -50%); }
  }
}

@media (prefers-contrast: more) {
  :root { --rule: #8f8a81; --rule-dark: #6b7276; --ink-2: #3c4146; --on-dark-2: #c9cdd0; }
}
