@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap");

:root {
  --bg-dark: #07030f;
  --bg-deep: #130621;
  --gold: #d4af37;
  --gold-soft: #f7df8a;
  --text: #f7f1de;
  --muted: #c8b98d;
  --panel: rgba(19, 6, 33, 0.85);
  --border: rgba(247, 223, 138, 0.3);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-dark));
  min-height: 100vh;
}
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(7, 3, 15, 0.45), rgba(7, 3, 15, 0.9)),
    url("/assets/hero-bg.png") center/cover no-repeat,
    linear-gradient(180deg, var(--bg-deep), var(--bg-dark));
}

.site-bg {
  position: fixed;
  inset: 0;
  background: url("/assets/hero-bg.png") center/cover no-repeat;
  z-index: -2;
}

.site-bg {
  background:
    linear-gradient(#130621, #07030f),
    url("/assets/hero-bg.png") center/cover no-repeat;
}

.navbar, main, .site-footer { width: min(1120px, 92%); margin-inline: auto; }
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1.2rem 0;
}
.brand {
  color: var(--gold-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  line-height: 1;
}

.brand-logo {
  width: auto;
  height: 102px;
  margin-block: -27px;
  object-fit: contain;
  border-radius: 999px;
  display: block;
  flex: 0 0 auto;
}

.brand-word {
  color: var(--gold-soft);
  font-family: "Cinzel", "Georgia", "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(212, 175, 55, .16);
  white-space: nowrap;
}
.site-nav {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  flex-wrap: wrap;
}

.primary-nav { display: flex; justify-content: center; flex: 1; gap: .55rem; flex-wrap: wrap; }
.nav-link {
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgba(212, 175, 55, 0.08);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.16);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}
.nav-link-primary {
  background: linear-gradient(120deg, rgba(212,175,55,.95), rgba(247,223,138,.95));
  color: #2f1b03;
  font-weight: 700;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker,
.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: " ▾";
  font-size: .75rem;
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  z-index: 5;
  min-width: 220px;
  display: grid;
  gap: .35rem;
  padding: .65rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: linear-gradient(180deg, rgba(19,6,33,.98), rgba(10,5,18,.96));
  box-shadow: 0 18px 44px rgba(0,0,0,.36), 0 0 22px rgba(212,175,55,.1);
}

.nav-dropdown-menu a,
.mobile-nav-panel a {
  color: var(--gold-soft);
  text-decoration: none;
  border-radius: .55rem;
  padding: .55rem .65rem;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible {
  color: var(--gold);
  background: rgba(212,175,55,0.12);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
}

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  z-index: 5;
  width: min(82vw, 320px);
  display: grid;
  gap: .35rem;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: .85rem;
  background: linear-gradient(180deg, rgba(19,6,33,.98), rgba(10,5,18,.96));
  box-shadow: 0 18px 44px rgba(0,0,0,.4), 0 0 22px rgba(212,175,55,.1);
  text-align: left;
}

.mobile-primary-link {
  background: linear-gradient(120deg, rgba(212,175,55,.95), rgba(247,223,138,.95));
  color: #2f1b03 !important;
  font-weight: 700;
  text-align: center;
}
.social-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}
.social-icon {
  display:grid; place-items:center; width:2rem; height:2rem; border-radius:999px;
  border:1px solid var(--border); color: var(--gold-soft); text-decoration:none;
  background: rgba(212,175,55,0.08);
}


/* Center all primary marketing copy */
main, .features, .progress, .site-footer {
  text-align: center;
}

.feature-card p,
.progress-list li {
  margin-inline: auto;
}

.hero { text-align: center; padding: 3.5rem 0 3rem; }
.eyebrow { color: var(--gold); letter-spacing: .2em; font-size: .8rem; }
h1 { font-size: clamp(2rem, 7vw, 4rem); margin: .25rem 0 1rem; }
.hero-copy { max-width: 680px; margin: 0 auto 1.8rem; color: var(--muted); line-height: 1.6; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 0 auto 1.35rem;
}

.home-hero {
  width: 100vw;
  min-height: max(760px, calc(100vh - 120px));
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(5.5rem, 11vw, 8.5rem) max(4vw, calc((100vw - 1120px) / 2 + 2rem));
  display: flex;
  align-items: center;
  text-align: left;
  background:
    linear-gradient(
      90deg,
      rgba(10, 0, 20, 0.88) 0%,
      rgba(10, 0, 20, 0.68) 38%,
      rgba(10, 0, 20, 0.2) 70%,
      rgba(10, 0, 20, 0.38) 100%
    ),
    linear-gradient(180deg, rgba(7, 3, 15, 0.04), rgba(7, 3, 15, 0.78)),
    url("/assets/everdraft-forest-hero.png") center top / cover no-repeat,
    linear-gradient(135deg, var(--bg-deep), var(--bg-dark));
  box-shadow: inset 0 -90px 120px rgba(7, 3, 15, .82);
}

.home-hero-content {
  width: min(640px, 100%);
}

.home-hero h1 {
  max-width: 11ch;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .52);
}

.home-hero .hero-copy {
  max-width: 620px;
  margin-left: 0;
  margin-right: 0;
  color: #f0e5c6;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .58);
}

.home-hero .hero-actions {
  justify-content: flex-start;
  margin-left: 0;
  margin-right: 0;
}

input, textarea, select, button {
  font: inherit; border-radius: .7rem; border:1px solid var(--border);
}
input, textarea, select {
  background: rgba(9, 5, 17, 0.92); color: var(--text); padding: .85rem .95rem;
}
button {
  cursor: pointer; padding: .85rem 1rem; font-weight: 700;
  background: linear-gradient(120deg, var(--gold), var(--gold-soft)); color:#2f1b03;
}
button:disabled { opacity: .6; cursor: wait; }
.secondary-button {
  background: rgba(212,175,55,0.08);
  color: var(--gold-soft);
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  color: #2f1b03;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: .7rem;
  padding: .85rem 1rem;
  background: linear-gradient(120deg, var(--gold), var(--gold-soft));
}
.button-link:hover,
.button-link:focus-visible,
button:hover,
button:focus-visible {
  box-shadow: 0 0 22px rgba(212,175,55,.22);
}

.features { display:grid; grid-template-columns:1fr; gap: 1rem; padding: 2.4rem 0; }
.feature-card {
  background: var(--panel); border:1px solid var(--border); border-radius: 1rem;
  padding: 1.4rem;
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0d0618;
  box-shadow:
    0 0 18px rgba(212,175,55,0.28),
    inset 0 0 12px rgba(212,175,55,0.12);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress { padding: 1.4rem 0 3rem; }
.progress h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.progress-list { list-style:none; padding:0; margin:0; display:grid; gap:.75rem; }
.progress-list li {
  border:1px solid var(--border); border-radius: .8rem; padding: .8rem 1rem; background: rgba(10, 5, 18, .75);
}
.progress-list .active { border-color: var(--gold); box-shadow: 0 0 18px rgba(212,175,55,.18); }

.journal-main { padding-bottom: 3rem; }
.journal-hero { padding: 3.25rem 0 2.2rem; }
.journal-subtitle { margin-bottom: 1rem; }
.journal-intro {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text);
  line-height: 1.75;
  font-size: 1.05rem;
}
.journal-section { padding: 1.1rem 0; }
.journal-featured-card,
.journal-card,
.journal-cta,
.journal-entry {
  background: linear-gradient(180deg, rgba(19,6,33,.88), rgba(10,5,18,.8));
  border: 1px solid rgba(247, 223, 138, .28);
  border-radius: .85rem;
  box-shadow: 0 16px 38px rgba(0,0,0,.24), 0 0 20px rgba(212,175,55,.07);
}
.journal-featured-card {
  display: grid;
  gap: 1.1rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  text-align: left;
}
.journal-featured-card .button-link {
  justify-self: center;
}
.journal-card-body {
  display: grid;
  gap: .55rem;
}
.journal-featured-card h2,
.section-heading h2,
.journal-cta h2 {
  margin: .25rem 0 .35rem;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
}
.journal-featured-card p,
.journal-card p,
.journal-cta p,
.journal-entry-content p {
  color: var(--muted);
  line-height: 1.68;
}
.journal-category {
  margin: 0;
  color: var(--gold);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.journal-date {
  margin: 0;
  color: var(--gold-soft);
  font-size: .92rem;
  opacity: .9;
}
.section-heading {
  text-align: center;
  margin-bottom: 1rem;
}
.journal-browse {
  padding-top: 1.6rem;
}
.journal-filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
}
.journal-filter {
  border-radius: 999px;
  padding: .6rem .9rem;
  border: 1px solid rgba(247, 223, 138, .32);
  background: rgba(212,175,55,.08);
  color: var(--gold-soft);
  font-size: .92rem;
}
.journal-filter.is-active,
.journal-filter.active,
.journal-filter:hover,
.journal-filter:focus-visible {
  color: #2f1b03;
  background: linear-gradient(120deg, var(--gold), var(--gold-soft));
}
.journal-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}
.journal-card {
  display: grid;
  align-content: start;
  gap: .7rem;
  padding: 1.15rem;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.journal-card:hover,
.journal-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(247, 223, 138, .52);
  box-shadow: 0 18px 42px rgba(0,0,0,.28), 0 0 24px rgba(212,175,55,.12);
}
.journal-card h3 {
  margin: 0;
  color: var(--gold-soft);
  font-size: clamp(1.08rem, 2.8vw, 1.28rem);
  line-height: 1.25;
}
.journal-card p {
  margin: 0;
}
.journal-read-link {
  width: fit-content;
  margin-top: .2rem;
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: none;
}
.journal-read-link:hover,
.journal-read-link:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}
.journal-cta {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: .65rem;
  margin-top: 1.6rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}
.journal-cta p {
  max-width: 660px;
  margin: 0 0 .75rem;
}
.journal-entry {
  max-width: 820px;
  margin: 1.5rem auto 3rem;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  text-align: left;
}
.journal-entry-header {
  text-align: center;
  margin-bottom: 2rem;
}
.journal-entry-header h1 {
  margin: .45rem 0 .65rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
}
.journal-entry-content {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.05rem;
}
.journal-entry-content p {
  margin: 0 0 1.25rem;
}
.journal-signoff {
  margin-top: 2rem;
  color: var(--gold-soft);
  font-weight: 600;
}
.journal-article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 2rem;
}

.beta-note {
  margin: 1rem 0 2.4rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(19,6,33,.88), rgba(10,5,18,.8));
  box-shadow: 0 18px 44px rgba(0,0,0,.24), 0 0 24px rgba(212,175,55,.08);
}

.beta-note h2 {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  margin: .25rem 0 .8rem;
}

.beta-note p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer { border-top:1px solid rgba(247,223,138,.2); padding: 1.4rem 0 2rem; color: var(--muted); }
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-bottom: 1rem;
}
.footer-nav a {
  color: var(--gold-soft);
  text-decoration: none;
  font-size: .95rem;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--gold);
}
.footer-brand { margin: 0 0 .3rem; color: var(--gold-soft); font-weight:700; }
.footer-logo {
  width: min(220px, 70vw);
  height: auto;
  display: block;
  margin: 0 auto;
}
fieldset { border:1px solid var(--border); border-radius:.6rem; padding: .7rem; display:flex; gap:1rem; flex-wrap:wrap; }
legend { color: var(--gold-soft); padding: 0 .3rem; }
.form-status { min-height: 1.2rem; margin: .2rem 0 0; font-size: .95rem; color: var(--gold-soft); }
.field-note {
  margin: -.35rem 0 .35rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip: rect(0,0,0,0); white-space:nowrap; border:0; }

.auth-main {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 2rem 0 4rem;
}

.auth-panel {
  width: min(680px, 100%);
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, rgba(19,6,33,.92), rgba(10,5,18,.86));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 18px 44px rgba(0,0,0,.3), 0 0 24px rgba(212,175,55,.08);
}

.auth-panel h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.auth-form {
  display: grid;
  gap: .75rem;
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}

.auth-form label,
.account-summary strong {
  color: var(--gold-soft);
}

.settings-toggle {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 1px solid rgba(247, 223, 138, .18);
  border-radius: .8rem;
  background: rgba(10, 5, 18, .62);
  padding: .85rem;
}

.settings-toggle input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .2rem;
  padding: 0;
  accent-color: var(--gold);
}

.settings-toggle span {
  display: grid;
  gap: .25rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

.settings-toggle strong {
  color: var(--gold-soft);
}

.auth-choice-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
}

.account-summary {
  max-width: 520px;
  margin: 0 auto 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: rgba(10, 5, 18, .72);
  text-align: left;
}

.account-summary p {
  margin: .25rem 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 1rem;
}

.top-return-actions {
  margin: -.4rem 0 1rem;
}

.secondary-link {
  background: rgba(212,175,55,0.08);
  color: var(--gold-soft);
}

.auth-switch {
  color: var(--muted);
  margin: 1rem 0 0;
}

.auth-switch a {
  color: var(--gold-soft);
}

.onboarding-steps {
  max-width: 520px;
  margin: 0 auto 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .65rem;
}

.onboarding-steps li {
  border: 1px solid var(--border);
  border-radius: .8rem;
  padding: .75rem 1rem;
  background: rgba(10, 5, 18, .72);
  color: var(--muted);
}

.onboarding-steps li.active {
  color: var(--gold-soft);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(212,175,55,.16);
}

.story-main {
  align-items: start;
}

.story-panel {
  position: relative;
  width: min(860px, 100%);
}

.story-panel > .eyebrow,
.story-panel > h1,
.story-panel > .hero-copy {
  text-align: center;
}

.story-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.story-list {
  display: grid;
  gap: 1rem;
}

.library-main {
  align-items: start;
}

.library-panel {
  width: min(980px, 100%);
}

.library-note {
  max-width: 640px;
  margin: -1rem auto 1.5rem;
  color: var(--gold-soft);
  line-height: 1.6;
}

.library-grid {
  display: grid;
  gap: 1rem;
}

.library-card {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.library-cover-frame {
  width: min(150px, 58vw);
  aspect-ratio: 2 / 3;
  justify-self: center;
  display: grid;
  place-items: center;
  padding: .45rem;
  border: 1px solid rgba(247, 223, 138, .34);
  border-radius: .8rem;
  background:
    linear-gradient(180deg, rgba(28, 13, 41, .96), rgba(9, 5, 17, .96));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28), inset 0 0 18px rgba(212, 175, 55, .08);
}

.library-cover-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: .45rem;
}

.library-cover-placeholder {
  color: var(--gold-soft);
  font-size: clamp(2.4rem, 14vw, 4rem);
  border-style: double;
}

.library-cover-placeholder span {
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 223, 138, .28);
  border-radius: 999px;
  background: rgba(212, 175, 55, .08);
}

.library-card-body {
  display: grid;
  gap: .9rem;
}

.library-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
}

.library-card-actions .button-link {
  margin: 0;
}

.library-card-actions .spark-control-wrap {
  display: flex;
  align-items: center;
}

.library-byline {
  margin: 0;
  color: var(--gold-soft);
}

.library-byline a,
.hero-copy a {
  color: var(--gold-soft);
  text-decoration: none;
}

.library-byline a:hover,
.library-byline a:focus-visible,
.hero-copy a:hover,
.hero-copy a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

.library-empty {
  text-align: center;
}

.library-empty h2 {
  margin: .15rem 0 .5rem;
  color: var(--gold-soft);
}

.beta-panel {
  width: min(960px, 100%);
}

.beta-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: stretch;
}

.beta-grid .story-card {
  display: grid;
  grid-template-rows: auto minmax(3.25rem, auto) minmax(5.8rem, auto) auto;
  align-content: start;
  gap: .65rem;
  height: 100%;
  text-align: center;
}

.beta-grid .story-card .auth-actions {
  flex-direction: column;
  margin-top: .25rem;
  justify-content: center;
  align-items: center;
  gap: .6rem;
}

.beta-grid .story-card .button-link {
  min-width: min(100%, 11.5rem);
}

.beta-checklist,
.beta-roadmap,
.account-tools,
.contact-card,
.support-card {
  margin-top: 1.25rem;
  text-align: left;
}

.beta-checklist h2,
.beta-roadmap h2,
.account-tools h2,
.contact-card h2 {
  margin: .2rem 0 .75rem;
  color: var(--gold-soft);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.checklist-groups {
  display: grid;
  gap: 1rem;
}

.checklist-group {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(10, 5, 18, .58);
  padding: 1rem;
}

.checklist-group h3 {
  margin: 0 0 .65rem;
  color: var(--gold-soft);
  font-size: 1.1rem;
}

.checklist-group p {
  color: var(--muted);
  line-height: 1.6;
}

.checklist-group ul {
  display: grid;
  gap: .65rem;
  padding-left: 1.2rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.beta-checklist a,
.account-tools a,
.contact-card a,
.beta-contact-card a,
.support-line a {
  color: var(--gold-soft);
}

.beta-contact-card {
  margin-top: 1.25rem;
}

.beta-test-actions {
  margin-top: .6rem;
}

.beta-flow-intro {
  max-width: 680px;
  margin: 0 0 1rem;
  line-height: 1.65;
}

.support-line {
  margin: 1.25rem auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

.contact-card {
  margin-top: 1.25rem;
}

.contact-card p {
  margin: .25rem 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-main {
  min-height: 58vh;
}

.trust-main {
  align-items: start;
}

.trust-panel {
  width: min(840px, 100%);
}

.trust-copy {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin: 1.25rem auto 0;
  text-align: left;
  color: var(--muted);
  line-height: 1.75;
}

.trust-copy p,
.trust-copy ul {
  margin: 0;
}

.trust-copy h2 {
  margin: .75rem 0 -.25rem;
  color: var(--gold-soft);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.trust-copy ul {
  display: grid;
  gap: .4rem;
  padding-left: 1.25rem;
}

.trust-lede,
.trust-closing {
  color: var(--gold-soft);
  font-size: 1.15rem;
}

.beta-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.beta-pill-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem .75rem;
  color: var(--muted);
  background: rgba(212,175,55,0.08);
}

.story-card,
.notice-panel,
.empty-state {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(10, 5, 18, .72);
  padding: 1rem;
}

.story-card {
  display: grid;
  gap: .9rem;
  text-align: left;
}

.story-card h2 {
  margin: .15rem 0 .35rem;
  color: var(--gold-soft);
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.story-card p,
.notice-panel,
.empty-state {
  color: var(--muted);
}

.story-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  margin: 0;
}

.story-meta div {
  display: grid;
  gap: .15rem;
}

.story-meta dt {
  color: var(--gold-soft);
  font-size: .85rem;
}

.story-meta dd {
  margin: 0;
  color: var(--muted);
}

.story-form {
  max-width: 640px;
}

.chapter-editor-field {
  display: none;
}

.chapter-editor-shell {
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .55);
  border-radius: 1rem;
  background: #f8f0dc;
  box-shadow: 0 18px 48px rgba(4, 1, 10, .3);
}

.chapter-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .38rem;
  padding: .7rem;
  color: #f8e9b0;
  background: linear-gradient(135deg, #2b1246, #160922);
  border-bottom: 1px solid rgba(212, 175, 55, .5);
}

.chapter-editor-tool {
  display: inline-grid;
  place-items: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: .42rem .62rem;
  border: 1px solid rgba(247, 223, 138, .3);
  border-radius: .55rem;
  color: #f8e9b0;
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
  font: inherit;
  line-height: 1;
}

.chapter-editor-tool:hover:not(:disabled),
.chapter-editor-tool[aria-pressed="true"] {
  color: #251132;
  background: #e5c760;
  border-color: #f8e9b0;
}

.chapter-editor-tool:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.chapter-editor-tool:focus-visible,
.chapter-editor-surface:focus-visible {
  outline: 3px solid #f1d36d;
  outline-offset: 2px;
}

.chapter-editor-divider {
  width: 1px;
  height: 1.8rem;
  margin-inline: .12rem;
  background: rgba(247, 223, 138, .34);
}

.chapter-editor-surface {
  min-height: clamp(22rem, 48vh, 36rem);
  padding: clamp(1rem, 3vw, 1.65rem);
  color: #2c2030;
  background:
    linear-gradient(rgba(255, 253, 246, .72), rgba(248, 240, 220, .92)),
    repeating-linear-gradient(0deg, transparent 0 1.75rem, rgba(90, 63, 95, .055) 1.75rem calc(1.75rem + 1px));
  caret-color: #5a286f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.75;
}

.chapter-editor-surface:focus {
  outline: none;
}

.chapter-editor-surface p {
  margin: 0 0 1.1rem;
}

.chapter-editor-surface blockquote {
  margin: 1.25rem 0;
  padding: .2rem 0 .2rem 1.1rem;
  color: #5b4361;
  border-left: 3px solid #b58c2d;
}

.chapter-editor-surface hr,
.reading-content hr {
  width: min(12rem, 42%);
  margin: 2.2rem auto;
  border: 0;
  border-top: 1px solid #b58c2d;
}

.chapter-editor-loading {
  padding: 2rem;
  color: var(--muted);
  text-align: center;
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 1rem;
}

.editor-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  color: var(--muted);
  font-size: .92rem;
}

.editor-note {
  margin-top: -.15rem;
}

.form-grid {
  display: grid;
  gap: .75rem;
}

.form-grid > div {
  display: grid;
  gap: .75rem;
}

.preview-panel {
  text-align: left;
}

.preview-panel > .eyebrow,
.preview-panel > h1,
.preview-panel > .hero-copy,
.preview-panel > .form-status {
  text-align: center;
}

.preview-body {
  display: grid;
  gap: 1.2rem;
}

.preview-summary,
.chapter-preview {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(10, 5, 18, .72);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.preview-summary h2,
.chapter-preview h2 {
  margin: .15rem 0 .7rem;
  color: var(--gold-soft);
}

.preview-summary p,
.chapter-content p,
.muted-copy {
  color: var(--muted);
  line-height: 1.75;
}

.chapter-content p {
  margin: 0 0 1.35rem;
}

.chapter-content blockquote {
  margin: 1.5rem 0;
  padding: .2rem 0 .2rem 1.2rem;
  color: var(--gold-soft);
  border-left: 3px solid rgba(212, 175, 55, .65);
}

.chapter-preview-list {
  display: grid;
  gap: 1rem;
}

.story-media,
.story-cover {
  margin-bottom: 1rem;
}

.story-cover-image {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  border-radius: 1rem;
  object-fit: cover;
}

.story-cover-image {
  max-width: 220px;
  margin: 0 auto;
}

.follow-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin: 0 auto 1.25rem;
  max-width: 720px;
}

.follow-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(10, 5, 18, .72);
  padding: .85rem 1rem;
  text-align: left;
}

.follow-card .eyebrow,
.follow-card p {
  margin: 0;
}

.follow-count {
  color: var(--gold-soft);
  font-weight: 700;
}

.follow-card .field-note {
  margin-top: .25rem;
}

.follow-card .field-note a {
  color: var(--gold-soft);
}

.follow-actions.follow-actions-compact {
  grid-template-columns: 1fr;
  max-width: none;
  margin: .35rem 0 0;
}

.follow-compact-panel {
  display: grid;
  gap: .45rem;
  min-width: 0;
  border-top: 1px solid rgba(247, 223, 138, .18);
  padding-top: .75rem;
}

.follow-compact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.follow-compact-buttons button {
  flex: 0 1 auto;
  min-width: 0;
  padding: .55rem .7rem;
  font-size: .9rem;
}

.follow-compact-counts {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.follow-compact-panel .field-note {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.library-follow-controls {
  display: grid;
  gap: .65rem;
  margin-top: -.15rem;
}

.library-spark-control,
.story-follow-control,
.chapter-follow-control,
.story-spark-control,
.chapter-spark-control {
  display: flex;
  justify-content: center;
}

.story-follow-control,
.chapter-follow-control,
.story-spark-control,
.chapter-spark-control {
  position: absolute;
  top: clamp(1rem, 3vw, 1.35rem);
  z-index: 1;
}

.story-follow-control,
.chapter-follow-control {
  left: clamp(1rem, 3vw, 1.35rem);
  justify-content: flex-start;
  width: min(13.5rem, calc(50% - 2rem));
  margin: 0;
  max-width: none;
}

.story-spark-control,
.chapter-spark-control {
  right: clamp(1rem, 3vw, 1.35rem);
}

.library-spark-control {
  justify-content: flex-start;
}

.library-follow-controls .follow-compact-panel {
  border-top: 0;
  padding-top: 0;
  gap: .35rem;
}

.library-follow-controls .follow-compact-buttons button {
  padding: .48rem .65rem;
  font-size: .84rem;
}

.library-follow-controls .follow-compact-counts,
.library-follow-controls .field-note {
  font-size: .86rem;
  line-height: 1.35;
}

.story-follow-control .follow-compact-panel,
.chapter-follow-control .follow-compact-panel {
  border-top: 0;
  padding-top: 0;
}

.story-follow-control .follow-compact-buttons,
.chapter-follow-control .follow-compact-buttons {
  gap: .35rem;
}

.story-follow-control .follow-compact-buttons button,
.chapter-follow-control .follow-compact-buttons button {
  padding: .48rem .65rem;
  font-size: .82rem;
}

.story-follow-control .follow-compact-counts,
.chapter-follow-control .follow-compact-counts,
.story-follow-control .field-note,
.chapter-follow-control .field-note {
  font-size: .8rem;
  line-height: 1.35;
}

.spark-control-wrap {
  display: grid;
  gap: .35rem;
}

.spark-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  width: fit-content;
  border: 1px solid rgba(247, 223, 138, .38);
  border-radius: 999px;
  background: rgba(10, 5, 18, .62);
  color: var(--gold-soft);
  padding: .52rem .75rem;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.spark-control:hover,
.spark-control:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(247, 223, 138, .7);
  background: rgba(212, 175, 55, .12);
}

.spark-control.sparked {
  color: var(--gold);
  background: rgba(212, 175, 55, .16);
}

.spark-control:disabled {
  cursor: default;
  opacity: .72;
  transform: none;
}

.spark-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.spark-count {
  font-weight: 700;
  font-size: .92rem;
}

.spark-note {
  margin: .2rem 0 0;
  text-align: center;
}

.note-panel,
.pinboard-card {
  border: 1px solid rgba(247, 223, 138, .18);
  border-radius: 1rem;
  background: rgba(10, 5, 18, .72);
  padding: clamp(1rem, 3vw, 1.35rem);
}

.note-panel {
  max-width: 680px;
  margin: 1.5rem auto 0;
}

.note-panel h2,
.pinboard-card h2 {
  margin: .15rem 0 .65rem;
  color: var(--gold-soft);
}

.note-panel p,
.pinboard-card p,
.pinboard-card blockquote {
  color: var(--muted);
  line-height: 1.7;
}

.note-form {
  margin-top: 1rem;
}

.pinboard-panel {
  width: min(900px, 100%);
}

.pinboard-top-actions {
  justify-content: center;
  margin-bottom: 1rem;
}

.pinboard-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.pinboard-card {
  text-align: left;
}

.pinboard-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}

.pinboard-card-header p,
.pinboard-card blockquote {
  margin: 0;
}

.pinboard-card blockquote {
  border-left: 2px solid rgba(247, 223, 138, .42);
  padding-left: 1rem;
  font-style: italic;
}

.reading-follow-actions {
  margin-bottom: 1.5rem;
}

.following-panel {
  margin-top: 1rem;
}

.following-grid,
.following-list {
  display: grid;
  gap: .85rem;
}

.following-grid h3 {
  margin: .35rem 0 .65rem;
  color: var(--gold-soft);
}

.following-item {
  display: grid;
  gap: .75rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: rgba(9, 5, 17, .72);
  padding: .85rem;
  text-align: left;
}

.following-item h4,
.following-item p {
  margin: 0;
}

.following-item h4 {
  color: var(--gold-soft);
}

.following-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.following-actions .button-link,
.following-actions button {
  padding: .62rem .75rem;
  font-size: .92rem;
}

.following-item a {
  color: var(--gold-soft);
  text-decoration: none;
}

.following-item a:hover,
.following-item a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

.writer-profile-panel {
  width: min(900px, 100%);
}

.writer-bio {
  margin: 0 auto 1.25rem;
}

.writer-story-list {
  margin-top: 1rem;
}

.reading-panel {
  width: min(820px, 100%);
  text-align: left;
}

.reading-panel > .eyebrow,
.reading-panel > h1,
.reading-panel > .hero-copy,
.reading-panel > .form-status {
  text-align: center;
}

.reading-content {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.8;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.reader-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (min-width: 740px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .journal-featured-card { grid-template-columns: minmax(0, 1fr) auto; }
  .journal-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-choice-group { grid-template-columns: repeat(3, 1fr); }
  .story-meta { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .beta-grid { grid-template-columns: repeat(3, 1fr); }
  .beta-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .follow-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .following-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .following-item { align-content: start; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-card {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    column-gap: 1.2rem;
  }
  .library-cover-frame {
    justify-self: start;
  }

  .story-spark-control,
  .chapter-spark-control {
    justify-content: flex-end;
  }
}

@media (min-width: 980px) {
  .journal-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .navbar {
    justify-content: space-between;
    gap: .6rem;
  }

  .site-nav {
    flex: 0 0 auto;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .navbar .primary-nav,
  .navbar .social-nav {
    justify-content: center;
    gap: .35rem;
  }

  .nav-link {
    padding: .4rem .68rem;
    font-size: .88rem;
  }

  .brand {
    gap: .55rem;
  }

  .brand-logo {
    width: auto;
    height: 56px;
    margin-block: -6px;
  }

  .brand-word {
    font-size: 1rem;
    letter-spacing: .12em;
  }

  @media (max-width: 420px) {
    .brand-word {
      display: none;
    }
  }

  .home-hero {
    min-height: 720px;
    padding: 5.25rem 6vw 4.75rem;
    background:
      linear-gradient(180deg, rgba(10, 0, 20, .88) 0%, rgba(10, 0, 20, .72) 48%, rgba(10, 0, 20, .88) 100%),
      url("/assets/everdraft-forest-hero.png") center top / cover no-repeat,
      linear-gradient(135deg, var(--bg-deep), var(--bg-dark));
  }

  .home-hero h1 {
    max-width: 12ch;
  }

  .home-hero .hero-actions {
    align-items: stretch;
  }

  .home-hero .button-link {
    width: 100%;
  }

  .reading-content {
    text-align: left;
    text-align-last: auto;
    hyphens: manual;
  }

  .chapter-editor-toolbar {
    gap: .3rem;
    padding: .55rem;
  }

  .chapter-editor-tool {
    flex: 1 0 2.35rem;
    min-width: 2.2rem;
    padding-inline: .45rem;
  }

  .chapter-editor-divider {
    display: none;
  }

  .chapter-editor-surface {
    min-height: 24rem;
    padding: 1rem;
    font-size: 1rem;
  }

  .story-follow-control,
  .chapter-follow-control,
  .story-spark-control,
  .chapter-spark-control {
    position: static;
    justify-content: center;
    width: auto;
    margin: -.25rem auto .75rem;
  }

  .story-follow-control .follow-compact-panel,
  .chapter-follow-control .follow-compact-panel {
    justify-items: center;
    text-align: center;
  }

  .story-follow-control .follow-compact-buttons,
  .chapter-follow-control .follow-compact-buttons {
    justify-content: center;
  }
}

.decor-left {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 220px;
  opacity: 0.85; }

.decor-right {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
  opacity: 0.85; }

.footer-logo {
  width: min(260px, 80%);
  height: auto;
  display: block;
  margin: 0 auto; }

/* Homepage */
.home-main {
  width: 100%;
  max-width: none;
  overflow: hidden;
}

.home-main h2 {
  margin: .25rem 0 .85rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
}

.home-main h3 {
  margin: 0;
  color: var(--gold-soft);
  font-size: 1.35rem;
}

.home-hero {
  min-height: clamp(650px, 72vw, 820px);
  padding:
    clamp(5rem, 9vw, 8rem)
    max(5vw, calc((100vw - 1120px) / 2));
  background:
    linear-gradient(
      90deg,
      rgba(7, 3, 15, .96) 0%,
      rgba(10, 3, 18, .86) 31%,
      rgba(10, 3, 18, .42) 56%,
      rgba(7, 3, 15, .08) 78%
    ),
    linear-gradient(180deg, rgba(7, 3, 15, .08), rgba(7, 3, 15, .84)),
    url("assets/home/hero-writing-desk.png") center / cover no-repeat,
    linear-gradient(135deg, var(--bg-deep), var(--bg-dark));
  box-shadow:
    inset 0 -100px 130px rgba(7, 3, 15, .92),
    0 30px 80px rgba(0, 0, 0, .24);
}

.home-hero-content {
  width: min(610px, 100%);
}

.home-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.25rem);
  line-height: 1.02;
}

.hero-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.hero-detail-list li {
  padding: .55rem .85rem;
  border: 1px solid rgba(247, 223, 138, .35);
  border-radius: 999px;
  color: #f7edcf;
  background: rgba(14, 6, 25, .7);
  box-shadow: inset 0 0 14px rgba(212, 175, 55, .06);
  font-size: .92rem;
}

.home-section {
  width: min(1180px, 90%);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.home-section + .home-section {
  border-top: 1px solid rgba(247, 223, 138, .1);
}

.home-section-heading {
  width: min(760px, 100%);
  margin: 0 auto clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}

.home-section-heading > p:last-child,
.home-invitation-content > p,
.home-final-cta > p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.home-library-grid,
.home-feature-grid,
.home-path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.home-library-loading,
.home-library-empty {
  grid-column: 1 / -1;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--muted);
  background: rgba(10, 5, 18, .76);
  text-align: center;
}

.home-library-empty h3 {
  margin-bottom: .65rem;
}

.home-library-empty .button-link {
  margin-top: .75rem;
}

.home-library-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(247, 223, 138, .28);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(24, 9, 39, .95), rgba(9, 4, 17, .94));
  box-shadow: 0 20px 48px rgba(0, 0, 0, .28);
  text-align: left;
}

.home-library-cover-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-library-cover {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(212, 175, 55, .16), transparent 45%),
    linear-gradient(145deg, #231031, #0b0512);
}

.home-library-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-library-cover-placeholder span {
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 223, 138, .4);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(212, 175, 55, .08);
  font-size: clamp(2.5rem, 8vw, 4rem);
}

.home-library-card-body {
  display: grid;
  align-content: start;
  gap: .75rem;
  padding: 1.25rem;
}

.home-library-card .eyebrow {
  margin: 0;
  font-size: .7rem;
}

.home-library-card h3 a,
.home-library-byline a,
.home-story-link {
  color: var(--gold-soft);
  text-decoration: none;
}

.home-library-card h3 a:hover,
.home-library-card h3 a:focus-visible,
.home-library-byline a:hover,
.home-library-byline a:focus-visible,
.home-story-link:hover,
.home-story-link:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

.home-library-byline {
  margin: 0;
  color: var(--muted);
}

.home-library-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  margin: .2rem 0;
}

.home-library-meta div {
  min-width: 0;
}

.home-library-meta dt {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-library-meta dd {
  margin: .18rem 0 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.home-story-link {
  align-self: end;
  width: fit-content;
  margin-top: .25rem;
  font-weight: 700;
}

.home-library-status {
  min-height: 1.3em;
  margin: 1rem auto 0;
  text-align: center;
}

.home-section-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.home-feature-card,
.home-path-grid .feature-card {
  padding: 1.35rem;
  border: 1px solid rgba(247, 223, 138, .25);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(24, 9, 39, .9), rgba(10, 5, 18, .84));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.home-feature-card {
  text-align: left;
}

.home-feature-card p,
.home-path-grid .feature-card p {
  color: var(--muted);
  line-height: 1.65;
}

.home-feature-art {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: -1.35rem -1.35rem 1.25rem;
  border-bottom: 1px solid rgba(247, 223, 138, .2);
  background:
    radial-gradient(circle at center, rgba(212, 175, 55, .15), transparent 58%),
    #0d0618;
}

.home-feature-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-path-grid .feature-card {
  text-align: center;
}

.home-path-grid .feature-card h3 {
  text-transform: uppercase;
  letter-spacing: .12em;
}

.home-invitation {
  width: min(1120px, 90%);
}

.home-invitation-content {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid rgba(247, 223, 138, .35);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 175, 55, .14), transparent 34%),
    linear-gradient(135deg, rgba(35, 12, 52, .96), rgba(11, 5, 19, .94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  text-align: left;
}

.home-invitation-content .button-link {
  margin-top: .6rem;
}

.home-final-cta {
  width: min(900px, 90%);
  padding-bottom: clamp(5rem, 9vw, 8rem);
  text-align: center;
}

.home-final-cta > p {
  width: min(690px, 100%);
  margin: 0 auto 1.75rem;
}

.home-final-cta .hero-actions {
  margin-bottom: 0;
}

@media (min-width: 700px) {
  .home-library-grid,
  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-path-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .home-library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .home-hero {
    min-height: 720px;
    padding: 5rem 6vw 4.5rem;
    background:
      linear-gradient(180deg, rgba(7, 3, 15, .9), rgba(7, 3, 15, .68) 48%, rgba(7, 3, 15, .96)),
      url("/assets/home/hero-writing-desk.png") 62% center / cover no-repeat,
      linear-gradient(135deg, var(--bg-deep), var(--bg-dark));
  }

  .home-hero-content {
    padding: 1.25rem;
    border: 1px solid rgba(247, 223, 138, .18);
    border-radius: 1rem;
    background: rgba(7, 3, 15, .7);
    backdrop-filter: blur(3px);
  }

  .home-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .home-hero .hero-actions {
    align-items: stretch;
  }

  .home-hero .button-link,
  .home-final-cta .button-link {
    width: 100%;
  }

  .hero-detail-list {
    display: grid;
  }

  .hero-detail-list li {
    text-align: center;
  }

  .home-invitation-content {
    text-align: center;
  }
}
