@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/newsreader-opsz.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/newsreader-opsz-italic.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --paper: #f4f0e6;
  --leaf: #fbf9f3;
  --ink: #1a1714;
  --ink-soft: #57503f;
  --rule: #d5ccb8;
  --rule-strong: #a99f88;
  --rubric: #a3281b;
  --rubric-wash: #a3281b14;
  --w-gospel: #1a1714;
  --w-church: #8a7f69;
  --w-conscience: #d5ccb8;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 16px;
  --measure: 38rem;
  --tabbar: calc(56px + env(safe-area-inset-bottom));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15130f;
    --leaf: #1d1a15;
    --ink: #ece5d6;
    --ink-soft: #a89f8b;
    --rule: #37322a;
    --rule-strong: #5c5546;
    --rubric: #e0705c;
    --rubric-wash: #e0705c1a;
    --w-gospel: #ece5d6;
    --w-church: #8f8673;
    --w-conscience: #4a4439;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--tabbar);
}

h1,
h2,
h3 {
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 11vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

[tabindex="-1"]:focus {
  outline: none;
}

::selection {
  background: var(--rubric);
  color: var(--paper);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 8px;
}

/* Labels set in mono small caps carry every piece of record-keeping. */
.kicker,
.tag,
.meta,
.sect,
.field,
dt,
legend,
.tabs a,
.btn,
.fine,
.status,
.count,
.progress-label,
figcaption,
.colophon {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Masthead and the one navigation: a bottom tab bar on phones, a top bar on wide screens. */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  padding-top: calc(14px + env(safe-area-inset-top));
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark i {
  color: var(--rubric);
  font-weight: 500;
}

.tabs {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: var(--tabbar);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.tabs a {
  display: grid;
  place-items: center;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.tabs a[aria-current="page"] {
  color: var(--ink);
}

.tabs a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 30%;
  right: 30%;
  height: 2px;
  background: var(--rubric);
}

/* Views */

main {
  outline: none;
}

.view {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  animation: arrive 360ms var(--ease);
}

.view[hidden] {
  display: none;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.view > h1 + .lede,
.view > div > h1 + .lede {
  margin-top: 16px;
}

.kicker {
  text-transform: uppercase;
  color: var(--rubric);
  margin-bottom: 18px;
}

.lede {
  font-size: 1.3125rem;
  line-height: 1.42;
  color: var(--ink-soft);
}

.hero {
  padding: 8px 0 48px;
}

.hero .lede {
  margin-top: 22px;
  max-width: 32rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms, color 160ms, transform 120ms;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (hover: hover) {
  .btn:hover {
    background: var(--ink);
    color: var(--paper);
  }
  .btn-primary:hover {
    background: var(--rubric);
    border-color: var(--rubric);
  }
}

.link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* Sections */

.block {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--rule);
}

.block > h2 {
  margin-bottom: 24px;
}

.block > p + p {
  margin-top: 1em;
}

.sect {
  display: block;
  color: var(--rubric);
  margin-bottom: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 28px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 8px;
}

.steps li::before {
  content: counter(step, upper-roman) ".";
  grid-row: span 2;
  font-size: 1.25rem;
  color: var(--rubric);
  font-variant-numeric: lining-nums;
}

.steps p {
  color: var(--ink-soft);
  margin-top: 4px;
}

/* A record is set on ledger paper: a red margin rule down the left. */

.record,
.sheet,
.question {
  position: relative;
  background: var(--leaf);
  border: 1px solid var(--rule);
  padding: 20px 18px 20px 30px;
}

.record::before,
.sheet::before,
.question::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: var(--rubric);
  opacity: 0.55;
}

.tag {
  display: inline-block;
  text-transform: uppercase;
  color: var(--rubric);
  border: 1px solid currentColor;
  padding: 2px 6px;
  margin-bottom: 12px;
}

.record-head h3 {
  font-size: 1.75rem;
}

.meta {
  color: var(--ink-soft);
  margin-top: 6px;
}

.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0 0;
  border-top: 1px solid var(--rule);
}

.figures div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.figures div:nth-child(odd) {
  padding-right: 12px;
  border-right: 1px solid var(--rule);
}

.figures div:nth-child(even) {
  padding-left: 14px;
}

dt {
  color: var(--ink-soft);
}

dd {
  margin: 0;
}

.figures dd {
  font-size: 2rem;
  line-height: 1.15;
  font-variant-numeric: lining-nums tabular-nums;
  margin-top: 4px;
}

.figures small {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-left: 2px;
}

.weights {
  margin: 22px 0 0;
}

.weight-bar {
  display: flex;
  gap: 3px;
  height: 10px;
  margin-top: 10px;
}

.weight-bar span:empty {
  min-width: 0;
}

.w-gospel {
  background: var(--w-gospel);
}

.w-church {
  background: var(--w-church);
}

.w-conscience {
  background: var(--w-conscience);
}

.weight-key {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 1rem;
}

.weight-key li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weight-key i {
  width: 10px;
  height: 10px;
  flex: none;
}

.weight-key b {
  margin-left: auto;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
}

.answer {
  margin-top: 22px;
  border-top: 1px solid var(--rule);
}

.answer summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 28px 0 0;
  font-size: 1.1875rem;
  line-height: 1.3;
  position: relative;
}

.answer summary::-webkit-details-marker {
  display: none;
}

.answer summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-family: var(--mono);
  color: var(--rubric);
}

.answer[open] summary::after {
  content: "−";
}

.field {
  display: block;
  text-transform: uppercase;
  color: var(--rubric);
  margin-bottom: 4px;
}

.answer blockquote {
  margin: 14px 0 0;
  font-style: italic;
  font-size: 1.1875rem;
}

.cites,
.faced {
  font-family: var(--mono);
  font-size: 0.8125rem;
  margin-top: 12px;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums;
}

.faced span {
  color: var(--rubric);
  text-transform: uppercase;
  margin-right: 8px;
}

.invite {
  text-align: left;
}

.invite p {
  color: var(--ink-soft);
  margin: 12px 0 24px;
}

/* Find */

.search {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

input,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--leaf);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 11px 12px;
  width: 100%;
  min-height: 48px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--rubric-wash);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.7;
}

.search input {
  flex: 1;
  min-width: 0;
}

#near-me {
  margin-top: 14px;
  font-size: 1rem;
}

.status {
  color: var(--ink-soft);
  margin-top: 18px;
  min-height: 1.4em;
}

.map {
  height: 52vh;
  min-height: 280px;
  max-height: 520px;
  margin: 16px calc(-1 * var(--gutter)) 0;
  border-block: 1px solid var(--rule);
  background: var(--leaf);
}

.map .leaflet-tile-pane {
  filter: grayscale(1) sepia(0.18) contrast(0.92) brightness(1.04);
}

@media (prefers-color-scheme: dark) {
  .map .leaflet-tile-pane {
    filter: grayscale(1) invert(1) contrast(0.85) brightness(0.8) sepia(0.15);
  }
}

.map .leaflet-container,
.map.leaflet-container {
  font-family: var(--mono);
  background: var(--leaf);
}

.map .leaflet-control-attribution {
  font-size: 10px;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  color: var(--ink-soft);
}

.map .leaflet-control-attribution a {
  color: var(--ink);
}

.pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
}

.pin.is-active {
  background: var(--rubric);
  box-shadow: 0 0 0 1px var(--rubric);
  transform: scale(1.35);
}

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

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

.results button {
  appearance: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.results .name {
  font-size: 1.125rem;
  line-height: 1.25;
}

.results .distance {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums tabular-nums;
}

.results .sub {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.results .unexamined {
  color: var(--rubric);
}

.sheet {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(var(--tabbar) + 8px);
  z-index: 25;
  max-width: 34rem;
  margin: 0 auto;
  box-shadow: 0 18px 48px -12px rgb(0 0 0 / 0.35);
  animation: rise 260ms var(--ease);
}

.sheet[hidden] {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.sheet h2 {
  font-size: 1.375rem;
  padding-right: 32px;
}

.sheet p {
  margin-top: 8px;
}

.sheet .actions {
  margin-top: 18px;
}

.sheet .close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.fine {
  color: var(--ink-soft);
  margin-top: 28px;
}

/* Examine */

.facts,
.marks {
  margin: 28px 0 0;
  border-top: 1px solid var(--rule);
}

.facts div,
.marks div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.facts dt,
.marks dt {
  text-transform: uppercase;
  margin-bottom: 4px;
}

.marks dt {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}

.marks dd {
  color: var(--ink-soft);
}

#exam-resume {
  margin-top: 28px;
}

.sheet-form {
  margin-top: 32px;
}

fieldset {
  border: 0;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 16px;
}

legend {
  text-transform: uppercase;
  color: var(--rubric);
  padding: 0;
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 1rem;
}

label.check {
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 12px;
  line-height: 1.4;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--rubric);
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 2px 0 0;
}

.progress {
  position: sticky;
  top: 57px;
  z-index: 10;
  background: var(--paper);
  padding: 10px 0 12px;
  margin: -24px 0 20px;
}

.progress-ticks {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-ticks button {
  appearance: none;
  display: block;
  width: 100%;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.progress-ticks button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 4px;
  background: var(--rule);
}

.progress-ticks .done::after {
  background: var(--ink);
}

.progress-ticks [aria-current="step"]::after {
  background: var(--rubric);
  top: 10px;
  height: 8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.progress-label b {
  color: var(--rubric);
  font-weight: 400;
}

.question h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.part {
  margin-top: 26px;
  display: grid;
  gap: 8px;
}

.part > .label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.part .hint {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.count {
  color: var(--ink-soft);
  text-transform: none;
  white-space: nowrap;
}

.count.met {
  color: var(--ink);
}

.count.met::before {
  content: "✓ ";
}

.count.over {
  color: var(--rubric);
}

textarea {
  resize: vertical;
  line-height: 1.5;
  min-height: 7.5em;
}

textarea.short {
  min-height: 4.5em;
}

textarea.long {
  min-height: 16em;
}

.ref-entry {
  display: flex;
  gap: 8px;
}

.ref-entry input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.9375rem;
}

.ref-entry .btn {
  padding: 0 16px;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-variant-numeric: lining-nums;
  padding: 5px 4px 5px 10px;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.chip .ref {
  white-space: nowrap;
}

.chip.bad {
  border-color: var(--rubric);
  color: var(--rubric);
  border-style: dashed;
}

.chip small {
  font-size: 0.6875rem;
}

.chip button {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  width: 26px;
  height: 26px;
  font-size: 1rem;
  cursor: pointer;
}

.verdict {
  font-family: var(--mono);
  font-size: 0.8125rem;
  min-height: 1.3em;
  color: var(--ink-soft);
}

.verdict.ok {
  color: var(--ink);
}

.verdict.bad {
  color: var(--rubric);
}

.weigh {
  display: grid;
  gap: 6px;
}

.weigh label {
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  cursor: pointer;
}

.weigh label:has(input:checked) {
  border-color: var(--ink);
  background: var(--rubric-wash);
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
}

.saved {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 14px;
}

.review-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.review-list li {
  border-bottom: 1px solid var(--rule);
}

.review-list button {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 12px 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.review-list .state {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--rubric);
}

.review-list .state.done {
  color: var(--ink);
}

.record .full-answer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  break-inside: avoid-page;
}

.full-answer h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
}

.full-answer .position {
  font-style: italic;
  margin-top: 10px;
}

.full-answer .defense {
  margin-top: 10px;
  white-space: pre-wrap;
}

.full-answer .weight-note {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

.notice {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 2px solid var(--rubric);
  background: var(--rubric-wash);
  font-size: 1rem;
}

/* Standard */

.canon {
  display: grid;
  gap: 28px;
}

.canon h3 {
  font-size: 1.125rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
}

.canon h3 small {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums tabular-nums;
}

.canon h4 {
  margin: 14px 0 4px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rubric);
}

.canon ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 20px;
}

.canon li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 1rem;
  line-height: 1.75;
  break-inside: avoid;
}

.canon li span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums tabular-nums;
}

/* Colophon */

.colophon {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
}

.colophon .wordmark {
  font-family: var(--serif);
  font-size: 0.9375rem;
  letter-spacing: 0;
  color: var(--ink);
}

.noscript {
  padding: 16px;
  text-align: center;
}

/* Wide screens: the navigation joins the masthead. */

@media (min-width: 760px) {
  :root {
    --gutter: 32px;
    --tabbar: 0px;
  }

  .masthead {
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .tabs {
    position: static;
    display: flex;
    gap: 28px;
    height: auto;
    padding: 0;
    background: none;
    border: 0;
  }

  .tabs a[aria-current="page"]::before {
    top: auto;
    bottom: -21px;
    left: 0;
    right: 0;
  }

  .view {
    padding-top: 72px;
  }

  .hero {
    padding-bottom: 72px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

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

  .steps li::before {
    grid-row: auto;
    margin-bottom: 8px;
  }

  .record,
  .question {
    padding: 28px 32px 28px 48px;
  }

  .record::before,
  .question::before {
    left: 24px;
  }

  .canon ol {
    columns: 3;
  }

  .sheet {
    bottom: 24px;
  }

  .map {
    margin-inline: 0;
    border: 1px solid var(--rule);
  }
}

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

@media print {
  .masthead,
  .tabs,
  .colophon,
  .progress,
  .pager,
  .saved,
  .actions,
  .notice,
  #exam-intro {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding: 0;
  }

  .view {
    animation: none;
    padding: 0;
    max-width: none;
  }

  .record {
    border: 0;
    background: none;
  }
}
