:root {
  color-scheme: light;
  --canvas: #f8f2e7;
  --ink: #302d27;
  --surface: #efe3cf;
  --panel: #f1d8bf;
  --muted: #655b50;
  --rule: #baad99;
  --accent: #ac3522;
  --display: Baskerville, "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 4.5rem;
}

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

html {
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 21ch;
  font-size: clamp(2.75rem, 4.5vw, 4rem);
  line-height: 1.08;
}

h2 {
  max-width: 30ch;
  font-size: clamp(2rem, 2.8vw, 2.75rem);
  line-height: 1.16;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  border-radius: 0;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

::selection {
  color: var(--ink);
  background: var(--panel);
}

[hidden] {
  display: none !important;
}

.u-container {
  width: min(100% - 6rem, 78rem);
  margin-inline: auto;
}

.u-measure {
  max-width: 65ch;
}

.u-stack-sm > * + * {
  margin-top: var(--space-sm);
}

.u-stack-md > * + * {
  margin-top: var(--space-md);
}

.u-stack-lg > * + * {
  margin-top: var(--space-lg);
}

.u-stack-xl > * + * {
  margin-top: var(--space-xl);
}

.u-rule {
  border-top: 1px solid var(--rule);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.5rem;
  left: 1rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  background: var(--canvas);
  color: var(--accent);
  border: 2px solid var(--accent);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-top: 5px solid var(--accent);
  border-bottom: 1px solid var(--ink);
}

.desk-home,
.directory-jump {
  min-height: 44px;
  line-height: 1.3;
}

.desk-home {
  display: block;
  padding-block: 0.2rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.75rem;
  text-decoration: none;
}

.desk-subtitle {
  display: block;
  color: var(--muted);
  font-family: var(--body);
  font-size: 1.0625rem;
}

.directory-jump {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.125rem;
}

.directory-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--accent);
  color: var(--canvas);
  font-size: 1.75rem;
  line-height: 1;
}

.reading-progress {
  position: fixed;
  z-index: 8;
  top: 0;
  left: 0;
  appearance: none;
  width: 100%;
  height: 4px;
  border: 0;
  background: var(--surface);
  color: var(--accent);
  pointer-events: none;
}

.reading-progress::-webkit-progress-bar {
  background: var(--surface);
}

.reading-progress::-webkit-progress-value {
  background: var(--accent);
}

.reading-progress::-moz-progress-bar {
  background: var(--accent);
}

.reading-article {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: 4.5rem;
}

.opening-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.38fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.opening-copy {
  max-width: 65ch;
}

.tool-label,
.next-label {
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.opening-copy > .tool-label {
  padding-left: 0.875rem;
  border-left: 4px solid var(--accent);
}

.first-answer {
  max-width: 56ch;
  font-size: 1.4375rem;
  line-height: 1.5;
}

/* Existing geometric plates, cropped like circular illustrations in print. */
.geometric-study {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface);
}

.opening-stage > .geometric-study {
  max-width: 17rem;
  justify-self: end;
}

.geometric-layer {
  position: absolute;
  inset: 0;
}

.geometric-arc {
  background: #11100f;
}

.geometric-arc::before {
  content: "";
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  left: 13%;
  top: 13%;
  border-radius: 50%;
  background: #a98346;
}

.geometric-arc::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 47%;
  width: 6%;
  height: 120%;
  transform: rotate(28deg);
  background: #11100f;
}

.geometric-fold {
  background: #10100f;
}

.geometric-fold::before,
.geometric-fold::after {
  content: "";
  position: absolute;
  width: 56%;
  height: 68%;
}

.geometric-fold::before {
  background: #936b59;
  top: 9%;
  left: 13%;
}

.geometric-fold::after {
  background: #c1b292;
  top: 24%;
  left: 34%;
  transform: rotate(-12deg);
}

.geometric-grid {
  background: #a2afb5;
}

.geometric-grid .geometric-layer {
  overflow: hidden;
}

.geometric-grid .geometric-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, transparent 49%, #20272b 49%, #20272b 50%, transparent 50%), linear-gradient(0deg, transparent 49%, #20272b 49%, #20272b 50%, transparent 50%);
  background-size: 25% 100%, 100% 25%;
  transform: rotate(9deg) scale(1.3);
}

.geometric-lines {
  background: #1e2c3a;
}

.geometric-lines .geometric-layer {
  background: repeating-linear-gradient(28deg, transparent 0, transparent 18%, #9fa9b0 18%, #9fa9b0 18.4%, transparent 18.4%, transparent 35%);
}

.geometric-lines::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 1px;
  top: 52%;
  left: -10%;
  background: #9fa9b0;
  transform: rotate(-38deg);
}

.quick-questions {
  padding-block: 2.25rem;
  border-block: 1px solid var(--rule);
}

.question-contact-sheet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.question-tile {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 0.5rem 1.25rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.5;
}

.question-tile:first-child {
  padding-left: 0;
}

.question-tile:last-child {
  padding-right: 0;
}

.question-tile + .question-tile {
  border-left: 1px solid var(--rule);
}

.question-tile .geometric-study {
  grid-row: 1 / 3;
  margin: 0;
}

.question-tile > span {
  display: block;
  margin: 0;
}

.tile-heading {
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.625rem;
  line-height: 1.16;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.question-tile:hover .tile-heading {
  text-decoration-thickness: 2px;
}

.question-tile > span:not(.tile-heading) {
  color: var(--muted);
}

.answer-body {
  margin-inline: auto;
  padding-left: 2.25rem;
  border-left: 1px solid var(--rule);
}

.answer-body:empty {
  display: none;
}

.answer-section {
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.answer-section h2 {
  max-width: 28ch;
}

.answer-points {
  padding-left: 1.25em;
}

.answer-points li {
  padding-left: 0.25em;
}

.answer-points li::marker {
  color: var(--accent);
}

.annotated-readings {
  padding: 2.25rem;
  background: var(--surface);
  border-top: 4px solid var(--accent);
}

.source-list,
.directory-list {
  list-style: none;
  padding: 0;
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.4rem;
  line-height: 1.45;
}

.source-annotation {
  color: var(--muted);
  margin-top: 0.25rem;
}

.next-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 2rem;
  padding: 1.5rem 2.25rem;
  border-top: 0;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.next-label {
  grid-column: 1;
  font-family: var(--body);
}

.next-arrow {
  display: grid;
  place-items: center;
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 44px;
  min-height: 44px;
  color: var(--accent);
  font-family: var(--body);
  font-size: 2rem;
}

.site-footer {
  padding-top: 3rem;
  padding-bottom: 2.25rem;
  border-top: 3px solid var(--accent);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem;
}

.directory-list {
  margin-top: 1.5rem;
}

.directory-group .tool-label {
  color: var(--ink);
  font-size: 1.625rem;
  line-height: 1.25;
}

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

.directory-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.75rem 0.25rem;
  font-size: 1.0625rem;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.directory-link[aria-current="page"] {
  padding-inline: 0.75rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.directory-link:hover {
  background: var(--surface);
}

.link-mark {
  color: var(--accent);
  flex: 0 0 auto;
}

.footer-note {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2.25rem;
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.footer-note p {
  max-width: 65ch;
}

.return-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 44px;
  padding-block: 0.5rem;
  white-space: nowrap;
}

.page-urgent .opening-stage,
.page-missing .opening-stage {
  grid-template-columns: minmax(0, 1fr);
}

.page-urgent .first-answer {
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--panel);
}

@media (min-width: 1100px) {
  .page-home .opening-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr);
    min-height: 24rem;
  }

  .page-home h1 {
    max-width: 16ch;
    font-size: clamp(4rem, 5.6vw, 5rem);
  }

  .opening-stage > .geometric-study-large {
    max-width: 20rem;
    margin-right: 1.5rem;
  }

  .directory-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .directory-group {
    padding-inline: 1.25rem;
  }

  .directory-group:first-child {
    padding-left: 0;
  }

  .directory-group:last-child {
    padding-right: 0;
  }

  .directory-group + .directory-group {
    border-left: 1px solid var(--rule);
  }
}

@media (min-width: 761px) and (max-width: 1099px) {
  .question-tile {
    grid-template-columns: minmax(0, 1fr);
  }

  .question-tile .geometric-study {
    grid-row: auto;
    max-width: 6rem;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 760px) {
  :root {
    --space-xl: 3rem;
  }

  body {
    font-size: 1.1875rem;
  }

  .u-container {
    width: calc(100% - 2.5rem);
  }

  .site-header {
    gap: 0.75rem;
    padding-block: 1rem;
  }

  .desk-home {
    font-size: 1.375rem;
  }

  .desk-subtitle {
    font-size: 1rem;
  }

  .directory-jump {
    gap: 0.625rem;
    font-size: 1rem;
  }

  .directory-symbol {
    flex-basis: 2.75rem;
  }

  .reading-article {
    padding-top: 2.25rem;
    padding-bottom: 3rem;
  }

  .opening-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .opening-stage > .geometric-study {
    width: 8rem;
    justify-self: end;
  }

  .page-home .opening-stage > .geometric-study {
    width: 10rem;
    justify-self: center;
  }

  h1 {
    font-size: clamp(2.5rem, 10.5vw, 3.5rem);
  }

  .first-answer {
    font-size: 1.3125rem;
  }

  .question-contact-sheet {
    grid-template-columns: minmax(0, 1fr);
  }

  .question-tile,
  .question-tile:first-child,
  .question-tile:last-child {
    padding: 1.5rem 0;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.5rem 1.25rem;
  }

  .question-tile + .question-tile {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .answer-body {
    padding-left: 0;
    border-left: 0;
  }

  .annotated-readings {
    padding: 1.5rem;
  }

  .next-question {
    gap: 0.75rem 1rem;
    padding: 1.5rem;
    font-size: 1.75rem;
  }

  .directory-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .directory-group .tool-label {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rule);
  }

  .directory-list {
    margin-top: 0.75rem;
  }

  .footer-note {
    flex-direction: column;
    gap: 1.5rem;
  }
}

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