/* Arcana Mentis. System serif, parchment on ink. No webfonts. */

:root {
  --ink: #12100e;
  --ink-soft: #1c1814;
  --parchment: #f3e7d1;
  --parchment-edge: #e4d3b4;
  --parchment-deep: #e7d7bc;
  --ink-text: #241c16;
  --rule: rgba(36, 28, 22, 0.22);
  --gold: #b08948;
  --gold-soft: #cbb892;
  --oxblood: #5c1826;
  --header-text: #f3e7d1;
  --header-muted: #cbb892;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", ui-serif, serif;
  --measure: 65ch;
  --frame: 76rem;
  --tap: 2.75rem;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  background:
    radial-gradient(1100px 420px at 50% -8%, #2c241c 0%, transparent 58%),
    var(--ink);
  color: var(--header-text);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--oxblood);
  color: var(--parchment);
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  z-index: 60;
  padding: 0.45rem 0.75rem;
  background: var(--parchment);
  color: var(--ink-text);
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.frame {
  width: min(100% - 1.5rem, var(--frame));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink);
  border-bottom: 1px solid rgba(176, 137, 72, 0.45);
}

.site-header .frame {
  padding: 0.85rem 0 0.35rem;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  color: var(--header-text);
  text-decoration: none;
}

.brand-name {
  display: block;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.brand-note {
  display: block;
  margin-top: 0.15rem;
  color: var(--header-muted);
  font-size: 0.82rem;
  font-style: italic;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--tap);
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(243, 231, 209, 0.45);
  background: transparent;
  color: var(--header-text);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.js .nav-toggle {
  display: inline-flex;
}

.nav-toggle-bars {
  position: relative;
  width: 1rem;
  height: 1px;
  background: currentColor;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1rem;
  height: 1px;
  background: currentColor;
}

.nav-toggle-bars::before {
  top: -0.34rem;
}

.nav-toggle-bars::after {
  top: 0.34rem;
}

.site-nav {
  padding: 0.35rem 0 0.85rem;
}

.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  display: block;
}

.nav-label {
  margin: 0.85rem 0 0.15rem;
  color: var(--header-muted);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
}

.site-nav ul,
.site-footer ul,
.topic-map,
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-main a,
.nav-topics a,
.footer-links a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--tap);
  color: var(--header-text);
  text-decoration: none;
}

.nav-main a {
  font-size: 1rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
}

.nav-topics a {
  font-size: 1.02rem;
}

.site-header a:hover,
.site-footer a:hover,
.toc a:hover {
  color: var(--gold);
}

.site-nav a[aria-current="page"],
.site-footer a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.sheet-wrap {
  width: min(100% - 1.5rem, var(--frame));
  margin-inline: auto;
  padding: 1.25rem 0 1.75rem;
}

.sheet {
  width: min(100%, calc(var(--measure) + 2.6rem));
  margin: 0 auto;
  padding: 1.35rem 1.15rem 1.6rem;
  border: 1px solid var(--parchment-edge);
  border-top: 3px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.55), rgba(255, 252, 246, 0) 2.4rem),
    var(--parchment);
  color: var(--ink-text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.sheet h1,
.sheet h2,
.sheet h3 {
  scroll-margin-top: 5.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.sheet h1 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.85rem, 6vw, 2.65rem);
  letter-spacing: 0.01em;
}

.sheet h2 {
  margin: 1.65rem 0 0.45rem;
  font-size: 1.35rem;
  letter-spacing: 0;
  text-transform: none;
}

.sheet h3 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.12rem;
}

.sheet p {
  margin: 0 0 0.85rem;
}

.sheet p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
}

.crumbs {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.season-list,
.resources-list {
  margin: 0.35rem 0 1rem;
  padding-left: 1.25rem;
}

.season-list li + li,
.resources-list li + li {
  margin-top: 0.45rem;
}

.sheet a {
  color: var(--oxblood);
  text-underline-offset: 0.18em;
}

.sheet a:hover {
  color: #3d0e18;
}

.stub {
  font-style: italic;
}

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

.topic-map li:last-child {
  border-bottom: 1px solid var(--rule);
}

.topic-map a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink-text);
  font-size: 1.05rem;
  text-decoration: none;
}

.topic-map a:hover,
.topic-map a:focus-visible {
  color: var(--oxblood);
}

.toc {
  margin: 0 0 1.2rem;
  padding: 0.75rem 0.95rem 0.85rem;
  border: 1px solid var(--rule);
  background: rgba(255, 252, 246, 0.55);
  font-size: 0.98rem;
}

.toc-label {
  margin: 0 0 0.35rem;
  color: var(--oxblood);
  font-variant: small-caps;
  letter-spacing: 0.08em;
}

.toc ol {
  padding-left: 1.15rem;
  list-style: decimal;
}

.toc li {
  margin: 0.15rem 0;
}

.toc a {
  color: var(--ink-text);
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  text-decoration: underline;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin: 0.35rem 0;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--oxblood);
  background: transparent;
  color: var(--oxblood);
  font: inherit;
  text-decoration: none;
}

.cta:hover,
.cta:focus-visible {
  background: var(--oxblood);
  color: var(--parchment);
}

.card-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}

.product-card {
  margin: 0;
  padding: 0.9rem 0.95rem 1rem;
  border: 1px solid var(--rule);
  background: rgba(255, 252, 246, 0.45);
}

.product-card h2,
.product-card h3 {
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  font-size: 1.15rem;
}

.coming {
  display: inline-block;
  margin: 0.1rem 0 0.45rem;
  padding: 0.08rem 0.45rem 0.12rem;
  border: 1px solid var(--gold);
  color: var(--oxblood);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.price {
  margin: 0 0 0.4rem;
  color: var(--oxblood);
  font-variant: small-caps;
  letter-spacing: 0.06em;
}

.price .planned {
  margin-left: 0.35rem;
  font-style: italic;
  font-variant: normal;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.product-card .room,
.product-card .format,
.product-card .card-note {
  font-size: 0.95rem;
}

.product-card .format {
  font-style: italic;
}

.tier-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.2rem 0 1rem;
}

.tier-jump a {
  font-variant: small-caps;
  letter-spacing: 0.06em;
}

.definition {
  margin: 0 0 1rem;
}

.definition dt {
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

.definition dd {
  margin: 0.25rem 0 0.85rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--gold);
}

.disclaimer {
  margin: 1rem 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--oxblood);
  background: rgba(92, 24, 38, 0.06);
  font-style: normal;
  font-size: 0.98rem;
}

.path-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0.4rem 0 1.15rem;
  padding: 0;
  list-style: none;
}

.path-card {
  margin: 0;
  padding: 0.9rem 0.95rem 1rem;
  border: 1px solid var(--parchment-edge);
  border-left: 3px solid var(--gold);
  background: rgba(255, 252, 246, 0.55);
}

.path-card h2 {
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  font-size: 1.2rem;
}

.path-card .lead {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.path-card p:last-child {
  margin-bottom: 0;
}

.path-steps {
  margin: 0.35rem 0 1.15rem;
  padding-left: 1.35rem;
}

.path-steps li + li {
  margin-top: 0.75rem;
}

.path-steps li::marker {
  color: var(--oxblood);
}

ol.path-steps:has(> .path-card) {
  padding-left: 0;
  list-style: none;
}

ol.path-steps > li.path-card + li.path-card {
  margin-top: 0.85rem;
}

.waitlist {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px dashed rgba(36, 28, 22, 0.4);
  background: var(--parchment-deep);
}

.waitlist label {
  display: block;
  margin: 0.35rem 0 0.3rem;
}

.waitlist input {
  width: min(100%, 28rem);
  min-height: var(--tap);
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--rule);
  background: rgba(255, 252, 246, 0.7);
  color: var(--ink-text);
  font: inherit;
}

.waitlist input::placeholder {
  color: rgba(36, 28, 22, 0.55);
}

button.cta {
  appearance: none;
  cursor: pointer;
}

.waitlist button.cta {
  margin-top: 0.65rem;
}

button.cta:disabled,
.waitlist input:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.site-footer {
  padding: 0 0 2.4rem;
  border-top: 1px solid rgba(243, 231, 209, 0.2);
  color: var(--header-muted);
}

.site-footer .frame {
  padding-top: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-links a {
  width: auto;
  margin-right: 1rem;
}

.crisis {
  max-width: calc(var(--measure) + 2.6rem);
  margin: 1.1rem 0 0.35rem;
  color: var(--header-text);
  font-size: 0.98rem;
}

.crisis a {
  color: var(--header-text);
}

.fine-print {
  max-width: calc(var(--measure) + 2.6rem);
  margin: 0;
  font-size: 0.85rem;
}

.address-pending {
  color: rgba(36, 28, 22, 0.62);
}

@media (min-width: 62rem) {
  .js .nav-toggle {
    display: none;
  }

  .js .site-nav,
  .js .site-nav.is-open {
    display: block;
  }

  .site-header .frame {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 0.7rem;
  }

  .site-nav {
    padding: 0;
  }

  .nav-main,
  .nav-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem 1.15rem;
  }

  .nav-main a,
  .nav-topics a {
    width: auto;
    min-height: 2.2rem;
  }

  .nav-topics a {
    font-size: 0.98rem;
  }

  .nav-label {
    margin-top: 0.15rem;
  }

  .sheet {
    padding: 2rem 1.3rem 2.15rem;
  }

  .sheet-wrap {
    padding-top: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  html {
    color-scheme: light;
  }

  body,
  .site-header,
  .site-footer,
  .brand,
  .brand-name,
  .brand-note,
  .crisis,
  .crisis a,
  .fine-print {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none;
  }

  .site-header {
    position: static;
    border-bottom: 1px solid #000;
  }

  .nav-toggle,
  #site-nav,
  .site-footer nav {
    display: none !important;
  }

  .sheet {
    width: auto;
    max-width: none;
    border: 0;
    box-shadow: none;
    background: #fff;
    color: #000;
  }

  .sheet a,
  .cta {
    color: #000;
    background: transparent;
  }

  .sheet a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }

  .disclaimer,
  .waitlist,
  .product-card,
  .path-card,
  .toc {
    border-color: #000;
    background: #fff;
  }
}

.nav-toggle-label {
  font-size: 0.95rem;
}

/* Free sample pamphlets. Light rules only; the house sheet stays as it is. */

.sample-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0.4rem 0 1.15rem;
  padding: 0;
  list-style: none;
}

.sample-card {
  margin: 0;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid var(--parchment-edge);
  border-left: 3px solid var(--gold);
  background: rgba(255, 252, 246, 0.55);
}

.sample-card h2 {
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 1.22rem;
}

.sample-card p:last-child {
  margin-bottom: 0;
}

.sample-kicker {
  margin: 0 0 0.25rem;
  color: var(--oxblood);
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
}

.pamphlet {
  hyphens: auto;
}

.sample-cta {
  margin: 1.5rem 0 1.15rem;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid var(--parchment-edge);
  border-top: 3px solid var(--gold);
  background: rgba(255, 252, 246, 0.72);
}

.sample-cta h2 {
  margin: 0 0 0.45rem;
  padding: 0;
  font-size: 1.25rem;
}

.sample-cta p:last-child {
  margin-bottom: 0;
}

.sample-cta .cta {
  margin-top: 0.35rem;
}

@media print {
  .sample-card,
  .sample-cta,
  .pamphlet .disclaimer {
    border-color: #000;
    background: #fff;
    break-inside: avoid;
  }

  .pamphlet {
    font-size: 12pt;
  }
}
