/* Spire of Octaves — Start Here site (M. Schauz) */
:root {
  --ink: #1a1714;
  --paper: #e8e2d6;
  --soot: #2c2824;
  --brass: #a8844a;
  --brass-bright: #c9a45c;
  --smoke: #6a6358;
  --line: rgba(232, 226, 214, 0.18);
  --safe: min(92vw, 42rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Figtree", sans-serif;
  color: var(--paper);
  background: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* —— Site nav —— */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--safe);
  margin: 0 auto;
  padding: 1.1rem 0;
}

.site-nav-brand {
  font-family: "Fraunces", serif;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(232, 226, 214, 0.82);
}

.site-nav-links a:hover { color: var(--brass-bright); }
.site-nav-links a[aria-current="page"] { color: var(--brass-bright); }

.site-nav.is-solid {
  position: sticky;
  background: rgba(26, 23, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  width: 100%;
  max-width: none;
  padding: 1rem clamp(1rem, 4vw, calc((100vw - var(--safe)) / 2 + 0.1rem));
}

.site-nav.is-solid .site-nav-inner {
  width: var(--safe);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  transform: scale(1.06);
  animation: drift 28s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(26, 23, 20, 0.35) 0%, rgba(26, 23, 20, 0.2) 35%, rgba(26, 23, 20, 0.88) 72%, #1a1714 100%),
    radial-gradient(ellipse 80% 55% at 70% 30%, rgba(168, 132, 74, 0.18), transparent 55%);
}

.hero-graphics {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(12% - 1px), var(--line) calc(12% - 1px), var(--line) 12%, transparent 12%),
    linear-gradient(90deg, transparent 0, transparent calc(88% - 1px), var(--line) calc(88% - 1px), var(--line) 88%, transparent 88%),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 48px,
      rgba(232, 226, 214, 0.04) 48px,
      rgba(232, 226, 214, 0.04) 49px
    );
}

.hero-inner {
  width: var(--safe);
  margin: 0 auto;
  padding: 5.5rem 0 3.25rem;
}

.byline {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: rise 0.9s ease 0.15s forwards;
}

.brand {
  font-family: "Fraunces", serif;
  font-weight: 650;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 11ch;
  margin-bottom: 1.35rem;
  opacity: 0;
  animation: rise 0.95s ease 0.28s forwards;
}

.headline {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  line-height: 1.25;
  max-width: 22ch;
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: rise 0.95s ease 0.4s forwards;
}

.support {
  font-size: 1.02rem;
  color: rgba(232, 226, 214, 0.82);
  max-width: 34ch;
  margin-bottom: 1.85rem;
  opacity: 0;
  animation: rise 0.95s ease 0.52s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  opacity: 0;
  animation: rise 0.95s ease 0.64s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--brass);
  color: var(--ink);
  border: 1px solid var(--brass);
}

.btn-primary:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
}

.btn-secondary {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(232, 226, 214, 0.45);
}

.btn-secondary:hover {
  border-color: var(--brass-bright);
  color: var(--brass-bright);
}

/* —— Below fold —— */
main {
  background: var(--ink);
  padding: 0 0 4rem;
}

.section {
  width: var(--safe);
  margin: 0 auto;
  padding: 3.5rem 0 0;
}

.section#doors {
  padding-top: 4.5rem;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 1.75rem;
}

.door-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.door {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.15rem 1.5rem;
  align-items: center;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease;
}

.door:first-child {
  padding-top: 0.35rem;
}

.door:hover { color: var(--brass-bright); }

.door-thumb {
  height: 9.5rem;
  width: 6.4rem;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.door h3 {
  font-family: "Fraunces", serif;
  font-weight: 650;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.door p {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(232, 226, 214, 0.78);
  max-width: 46ch;
}

.door:hover p { color: rgba(232, 226, 214, 0.92); }

.door-cta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brass-bright);
  white-space: nowrap;
  position: relative;
}

.door-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--brass-bright);
  transition: width 0.25s ease;
}

.door:hover .door-cta::after { width: 100%; }

.door.is-coming {
  opacity: 0.72;
  pointer-events: none;
}

.door.is-coming .door-cta { color: var(--smoke); }
.door.is-coming .door-cta::after { display: none; }

.door-badge {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: "Figtree", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  vertical-align: middle;
}

.door-badge.is-soon {
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(232, 226, 214, 0.35);
}

.door-thumb.is-unknown {
  background: var(--soot);
  object-fit: contain;
}

/* Email */
.email-block {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.next-drop {
  margin: 2.5rem 0 0;
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid rgba(201, 164, 92, 0.35);
  background: var(--soot);
  border-radius: 2px;
}

.next-drop-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.next-drop-time {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 650;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  line-height: 1.2;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.next-drop.is-live .next-drop-time {
  color: var(--brass-bright);
}

.next-drop-when {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--smoke);
}

.next-drop.is-live .next-drop-when {
  display: none;
}

.email-note {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--smoke);
}

/* World strip */
.world-strip { padding-top: 3rem; }

.world-strip-grid {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 1.5rem;
  align-items: center;
}

.world-strip-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
}

.world-strip-grid h2 {
  font-family: "Fraunces", serif;
  font-weight: 650;
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
}

.world-strip-grid p {
  color: rgba(232, 226, 214, 0.78);
  max-width: 42ch;
}

/* Interior pages */
.page-hero {
  width: var(--safe);
  margin: 0 auto;
  padding: 5.5rem 0 2rem;
}

.page-hero .byline { opacity: 1; animation: none; }

.page-hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 650;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.page-hero .lede {
  color: rgba(232, 226, 214, 0.82);
  max-width: 46ch;
  font-size: 1.05rem;
}

.prose {
  width: var(--safe);
  margin: 0 auto;
  padding: 0 0 2rem;
  max-width: 40rem;
}

.prose h2 {
  font-family: "Fraunces", serif;
  font-weight: 650;
  font-size: 1.45rem;
  margin: 2.25rem 0 0.75rem;
}

.prose p {
  color: rgba(232, 226, 214, 0.86);
  margin-bottom: 1rem;
  max-width: 58ch;
}

.prose ul {
  margin: 0 0 1.25rem 1.1rem;
  color: rgba(232, 226, 214, 0.86);
}

.prose li { margin-bottom: 0.4rem; max-width: 54ch; }

.prose a {
  color: var(--brass-bright);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose .soft {
  color: var(--smoke);
  font-size: 0.92rem;
}

.social-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 36rem;
}

.social-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem 1rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  max-width: none;
}

.social-list .social-name {
  font-weight: 600;
  color: var(--paper);
}

.social-list a.social-name {
  color: var(--brass-bright);
  text-decoration: none;
}

.social-list a.social-name:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.social-list .social-note {
  color: rgba(232, 226, 214, 0.72);
  font-size: 0.95rem;
}

.social-list .is-pending .social-name {
  color: var(--smoke);
  font-weight: 500;
}

/* Footer */
.site-footer {
  width: var(--safe);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--smoke);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.site-footer a:hover { color: var(--brass-bright); }

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  width: 100%;
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.footer-socials a {
  color: rgba(232, 226, 214, 0.75);
}

.footer-socials a:hover { color: var(--brass-bright); }

.footer-socials .footer-social-pending {
  color: rgba(106, 99, 88, 0.85);
  cursor: default;
}

/* —— Read platform chooser —— */
.read-chooser {
  border: none;
  padding: 0;
  background: transparent;
  width: min(22rem, 92vw);
  max-width: calc(100vw - 2rem);
  margin: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.read-chooser::backdrop {
  background: rgba(10, 8, 6, 0.72);
}
.read-chooser-panel {
  width: 100%;
  margin: 0;
  padding: 1.75rem 1.5rem 1.35rem;
  background: var(--soot);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.read-chooser-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 0.55rem;
}
.read-chooser-title {
  font-family: "Fraunces", serif;
  font-weight: 650;
  font-size: 1.65rem;
  line-height: 1.1;
  margin-bottom: 0.55rem;
}
.read-chooser-lede {
  color: rgba(232, 226, 214, 0.78);
  font-size: 0.98rem;
  margin-bottom: 1.35rem;
}
.read-chooser-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.read-chooser-actions .btn {
  width: 100%;
}
.read-choice.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.read-chooser-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--smoke);
}
.read-chooser-close {
  display: block;
  margin: 1.15rem auto 0;
  background: none;
  border: none;
  color: var(--smoke);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.read-chooser-close:hover {
  color: var(--brass-bright);
}

@media (max-width: 640px) {
  .door {
    grid-template-columns: auto 1fr;
    gap: 1rem 1.15rem;
    padding: 1.35rem 0;
  }
  .door-cta {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.25rem;
  }
  .door-thumb {
    height: 7.25rem;
    width: 4.9rem;
  }
  .world-strip-grid { grid-template-columns: 1fr; }
  .world-strip-grid img { max-width: 12rem; }
  .site-nav-links { gap: 0.65rem 0.9rem; font-size: 0.82rem; }
}

/* —— MailerLite force match —— */
#mlb2-44159201.ml-form-embedContainer {
  display: block !important;
  width: 100% !important;
  max-width: 28rem !important;
  margin: 0 !important;
}
#mlb2-44159201.ml-form-embedContainer .ml-form-align-center,
#mlb2-44159201.ml-form-embedContainer .ml-form-align-default {
  text-align: left !important;
  display: block !important;
}
#mlb2-44159201.ml-form-embedContainer .ml-form-embedWrapper,
#mlb2-44159201.ml-form-embedContainer .ml-form-embedWrapper.embedForm {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 28rem !important;
  margin: 0 !important;
  padding: 0 !important;
}
#mlb2-44159201.ml-form-embedContainer .ml-form-embedBody,
#mlb2-44159201.ml-form-embedContainer .ml-form-successBody {
  padding: 0 !important;
}
#mlb2-44159201.ml-form-embedContainer .ml-form-embedContent,
#mlb2-44159201.ml-form-embedContainer .ml-form-successContent {
  margin: 0 0 1.25rem 0 !important;
  text-align: left !important;
}
#mlb2-44159201.ml-form-embedContainer .ml-form-embedContent h4,
#mlb2-44159201.ml-form-embedContainer .ml-form-successContent h4 {
  color: #e8e2d6 !important;
  font-family: "Fraunces", Georgia, serif !important;
  font-weight: 650 !important;
  font-size: 1.75rem !important;
  line-height: 1.2 !important;
  margin: 0 0 0.5rem 0 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
#mlb2-44159201.ml-form-embedContainer .ml-form-embedContent p,
#mlb2-44159201.ml-form-embedContainer .ml-form-successContent p {
  color: rgba(232, 226, 214, 0.78) !important;
  font-family: "Figtree", system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  max-width: 38ch !important;
  margin: 0 !important;
}
#mlb2-44159201.ml-form-embedContainer .ml-form-formContent { margin: 0 0 0.6rem 0 !important; }
#mlb2-44159201.ml-form-embedContainer .ml-form-fieldRow { margin: 0 !important; }
#mlb2-44159201.ml-form-embedContainer .ml-form-fieldRow input.form-control,
#mlb2-44159201.ml-form-embedContainer .ml-form-fieldRow input {
  background: rgba(0, 0, 0, 0.25) !important;
  color: #e8e2d6 !important;
  border: 1px solid rgba(232, 226, 214, 0.3) !important;
  border-radius: 2px !important;
  font-family: "Figtree", system-ui, sans-serif !important;
  font-size: 1rem !important;
  min-height: 2.85rem !important;
  padding: 0.65rem 0.9rem !important;
  width: 100% !important;
  box-shadow: none !important;
}
#mlb2-44159201.ml-form-embedContainer .ml-form-fieldRow input::placeholder {
  color: #6a6358 !important;
  opacity: 1 !important;
}
#mlb2-44159201.ml-form-embedContainer .ml-form-fieldRow input:focus {
  border-color: #a8844a !important;
  outline: none !important;
}
#mlb2-44159201.ml-form-embedContainer .ml-form-embedSubmit {
  float: none !important;
  margin: 0.6rem 0 0 0 !important;
  width: 100% !important;
}
#mlb2-44159201.ml-form-embedContainer .ml-form-embedSubmit button.primary,
#mlb2-44159201.ml-form-embedContainer .ml-form-embedSubmit button {
  background: #a8844a !important;
  border: 1px solid #a8844a !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  color: #1a1714 !important;
  font-family: "Figtree", system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  min-height: 2.85rem !important;
  padding: 0.7rem 1.25rem !important;
  width: 100% !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
#mlb2-44159201.ml-form-embedContainer .ml-form-embedSubmit button:hover {
  background: #c9a45c !important;
  border-color: #c9a45c !important;
  color: #1a1714 !important;
}
.ml-form-embedSubmitLoad {
  display: inline-block;
  width: 20px;
  height: 20px;
}
.ml-form-embedSubmitLoad:after {
  content: " ";
  display: block;
  width: 11px;
  height: 11px;
  margin: 1px;
  border-radius: 50%;
  border: 4px solid #1a1714;
  border-color: #1a1714 #1a1714 #1a1714 transparent;
  animation: ml-form-embedSubmitLoad 1.2s linear infinite;
}
@keyframes ml-form-embedSubmitLoad {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
