@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --paper-deep: #eee7d9;
  --paper-light: #fbf9f4;
  --ink: #282923;
  --ink-soft: #56564d;
  --muted: #898477;
  --amber: #ba782f;
  --amber-bright: #d89a4e;
  --line: rgba(52, 50, 42, .17);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(83, 70, 45, .065) .55px, transparent .65px);
  background-size: 5px 5px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }
.skip-link { position: absolute; top: 10px; left: 10px; z-index: 10; padding: 9px 14px; transform: translateY(-150%); background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: translateY(0); }
.page-wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }

.site-header {
  min-height: 82px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 233, .93);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 600 16px var(--serif); letter-spacing: -.4px; white-space: nowrap; }
.brand-mark { display: flex; width: 23px; flex-direction: column; gap: 3px; }
.brand-mark i { display: block; height: 3px; background: var(--amber); }
.brand-mark i:nth-child(2) { width: 8px; box-shadow: 12px 0 0 var(--amber); }
.main-nav { display: flex; gap: clamp(18px, 3.2vw, 44px); align-items: center; }
.main-nav a, .nav-cta { text-decoration: none; font-size: 12px; font-weight: 500; }
.main-nav a { color: var(--ink-soft); transition: color .2s ease; }
.main-nav a:hover, .footer-links a:hover, .text-link:hover { color: var(--amber); }
.nav-cta { padding: 10px 15px; border: 1px solid rgba(40, 41, 35, .45); white-space: nowrap; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.nav-cta:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.nav-cta span { margin-left: 8px; color: var(--amber); }

.hero { min-height: 638px; padding-top: 88px; padding-bottom: 86px; position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 14px; }
.eyebrow { margin: 0 0 21px; color: var(--amber); text-transform: uppercase; letter-spacing: 1.8px; font-size: 10px; font-weight: 700; }
.eyebrow-dot { display: inline-block; width: 6px; height: 6px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--amber); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -1.5px; }
.hero h1 { max-width: 630px; margin-bottom: 23px; font-size: clamp(47px, 5.6vw, 73px); line-height: 1.08; }
h1 em, h2 em { color: var(--amber); font-weight: 500; }
.hero-intro { max-width: 490px; margin-bottom: 28px; color: var(--ink-soft); font-size: 15px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 19px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; padding: 0 20px; font-size: 12px; font-weight: 600; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper-light); }
.button-dark:hover { background: #414138; }
.button-dark span { color: var(--amber-bright); }
.quiet-note { color: var(--muted); font-size: 11px; }
.hero-footnote { margin: 27px 0 0; color: var(--muted); font: italic 13px var(--serif); }
.hero-art { align-self: stretch; min-height: 440px; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 0 14px 24px; border-left: 1px solid var(--line); }
.art-topline, .art-bottomline { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; letter-spacing: 1.6px; }
.art-bottomline { justify-content: flex-start; gap: 10px; font-size: 8px; letter-spacing: 1.2px; }
.hexagram-card { min-height: 340px; position: relative; margin: 7px 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, rgba(239, 230, 212, .78), rgba(232, 223, 207, .26)); }
.hexagram-card::before { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(74, 68, 54, .12); }
.orbit { position: absolute; width: 250px; height: 250px; border: 1px solid rgba(186, 120, 47, .17); border-radius: 50%; }
.orbit-two { width: 194px; height: 194px; border-color: rgba(71, 73, 61, .11); }
.hexagram { position: relative; z-index: 1; width: 123px; display: flex; flex-direction: column-reverse; gap: 8px; }
.hexagram > span { position: relative; display: block; width: 100%; height: 8px; background: var(--ink); }
.hexagram .yin { background: transparent; }
.hexagram .yin::before, .hexagram .yin::after { content: ''; position: absolute; top: 0; width: 48px; height: 8px; background: var(--ink); }
.hexagram .yin::before { left: 0; }
.hexagram .yin::after { right: 0; }
.art-caption { position: absolute; color: var(--muted); font: italic 12px var(--serif); }
.caption-top { top: 24%; right: 13%; transform: rotate(4deg); }
.caption-bottom { bottom: 21%; left: 12%; transform: rotate(-4deg); }
.seal { position: absolute; right: 12%; bottom: 13%; color: rgba(186, 120, 47, .75); font: 30px var(--serif); }
.hero-index { position: absolute; right: 0; bottom: 18px; color: rgba(40, 41, 35, .36); font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; }

.intro-section { padding: 106px 0 115px; background: var(--paper-light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr) 160px; gap: 35px; align-items: start; }
.section-marker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; letter-spacing: .9px; text-transform: uppercase; white-space: nowrap; }
.section-marker > span:first-child { color: var(--amber); font: 500 18px var(--serif); }
.marker-rule { display: inline-block; width: 28px; height: 1px; background: var(--amber); }
.intro-copy { max-width: 700px; }
.intro-copy .eyebrow { margin-bottom: 14px; }
h2 { font-size: clamp(38px, 4vw, 54px); line-height: 1.14; }
.intro-copy h2 { max-width: 620px; margin-bottom: 26px; }
.intro-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; color: var(--ink-soft); font-size: 13px; line-height: 1.9; }
.intro-columns p { margin-bottom: 22px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; padding-bottom: 4px; border-bottom: 1px solid rgba(186, 120, 47, .48); color: var(--ink); font-size: 11px; text-decoration: none; transition: color .2s ease; }
.intro-aside { position: relative; min-height: 218px; margin-top: 50px; overflow: hidden; border-left: 1px solid var(--line); }
.aside-kanji { display: block; padding-left: 20px; color: rgba(186, 120, 47, .73); font: 88px/.95 var(--serif); }
.aside-note { position: relative; z-index: 1; display: block; margin: 13px 0 0 41px; color: var(--muted); font-size: 8px; letter-spacing: 1.5px; line-height: 1.7; }
.aside-curve { position: absolute; right: -20px; bottom: -72px; width: 160px; height: 160px; border: 1px solid rgba(186, 120, 47, .34); border-radius: 50%; }

.casting-section { padding: 103px 0 91px; background-color: var(--paper-deep); background-image: radial-gradient(rgba(83, 70, 45, .07) .55px, transparent .65px); background-size: 5px 5px; }
.section-heading { display: grid; grid-template-columns: 205px 1fr; gap: 28px; align-items: start; }
.heading-copy { max-width: 620px; }
.heading-copy .eyebrow { margin-bottom: 14px; }
.heading-copy h2 { margin-bottom: 19px; }
.heading-intro { max-width: 470px; margin-bottom: 0; color: var(--ink-soft); font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 62px 0 0 232px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { min-height: 280px; padding: 23px 27px 26px 0; position: relative; }
.step + .step { padding-left: 27px; border-left: 1px solid var(--line); }
.step-number { display: block; margin-bottom: 29px; color: var(--amber); font: 17px var(--serif); }
.step h3 { margin: 22px 0 10px; font: 500 19px var(--serif); letter-spacing: -.2px; }
.step p { max-width: 275px; margin-bottom: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.coin-pair { height: 42px; display: flex; align-items: center; gap: 8px; }
.coin-pair i { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--amber); border-radius: 50%; color: var(--amber); font: normal 9px var(--sans); }
.coin-pair i:nth-child(2) { transform: translateY(7px); background: rgba(186, 120, 47, .08); }
.line-sketch { width: 85px; height: 42px; display: flex; flex-direction: column; justify-content: space-between; }
.line-sketch span { display: block; height: 5px; background: var(--ink); }
.line-sketch .broken { display: flex; justify-content: space-between; background: none; }
.line-sketch .broken::before, .line-sketch .broken::after { width: 35px; content: ''; background: var(--ink); }
.mini-hex { height: 42px; display: flex; flex-direction: column-reverse; justify-content: space-between; width: 83px; }
.mini-hex i { height: 4px; background: var(--ink); }
.mini-hex .broken { display: flex; background: transparent; justify-content: space-between; }
.mini-hex .broken::before, .mini-hex .broken::after { width: 32px; content: ''; background: var(--ink); }
.casting-note { margin: 27px 0 0 232px; display: flex; align-items: center; gap: 13px; }
.note-star { color: var(--amber); font-size: 17px; }
.casting-note p { max-width: 490px; margin: 0 auto 0 0; color: var(--ink-soft); font-size: 11px; }
.casting-note a { padding-bottom: 3px; border-bottom: 1px solid var(--amber); color: var(--ink); font-size: 10px; text-decoration: none; white-space: nowrap; }
.casting-note a span { margin-left: 8px; color: var(--amber); }

.reading-section { padding: 111px 0 119px; background: var(--paper-light); border-top: 1px solid var(--line); }
.reading-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr) 215px; gap: 37px; align-items: start; }
.reading-main { max-width: 635px; }
.reading-main .eyebrow { margin-bottom: 14px; }
.reading-main h2 { max-width: 570px; margin-bottom: 20px; }
.reading-lead { max-width: 540px; color: var(--ink-soft); font-size: 13px; line-height: 1.85; }
.reading-list { margin-top: 31px; border-top: 1px solid var(--line); }
.reading-list > div { display: grid; grid-template-columns: 45px 1fr; gap: 8px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.list-index { color: var(--amber); font: 15px var(--serif); }
.reading-list p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.8; }
.reading-list strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.reading-aside { margin-top: 45px; padding-left: 22px; border-left: 1px solid var(--amber); }
.quote-mark { display: block; height: 34px; color: var(--amber); font: 58px/.9 var(--serif); }
.reading-aside blockquote { margin: 12px 0 19px; font: italic 21px/1.45 var(--serif); }
.aside-rule { display: block; width: 28px; height: 1px; margin: 0 0 16px; background: var(--amber); }
.reading-aside p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.85; }

.final-cta { padding: 92px 0 93px; position: relative; overflow: hidden; background: var(--ink); color: var(--paper); text-align: center; }
.final-cta::before, .final-cta::after { content: ''; position: absolute; top: -145px; width: 390px; height: 390px; border: 1px solid rgba(216, 154, 78, .18); border-radius: 50%; }
.final-cta::before { left: -210px; }
.final-cta::after { right: -210px; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-sigil { width: 28px; height: 37px; margin-bottom: 28px; display: flex; flex-direction: column-reverse; justify-content: space-between; }
.cta-sigil span { height: 2px; background: var(--amber-bright); }
.cta-sigil span:nth-child(3) { width: 8px; box-shadow: 12px 0 0 var(--amber-bright); }
.final-cta .eyebrow { margin-bottom: 15px; color: var(--amber-bright); }
.final-cta h2 { margin-bottom: 17px; font-size: clamp(42px, 5vw, 59px); }
.final-cta h2 em { color: var(--amber-bright); }
.final-cta .cta-inner > p:not(.eyebrow) { max-width: 465px; margin-bottom: 27px; color: rgba(246, 242, 233, .73); font-size: 12px; }
.button-amber { background: var(--amber-bright); color: #25251f; }
.button-amber:hover { background: #e2aa67; }
.button-amber span { font-size: 15px; }
.cta-note { margin-top: 17px; color: rgba(246, 242, 233, .5); font: italic 11px var(--serif); }

.site-footer { min-height: 150px; padding: 31px 48px; display: grid; grid-template-columns: 1fr 1.2fr 2fr; align-items: center; column-gap: 30px; background: #f1ede4; }
.footer-brand { font-size: 14px; }
.site-footer > p { max-width: 240px; margin: 0; color: var(--muted); font: italic 12px var(--serif); }
.footer-links { display: flex; justify-content: flex-end; gap: 20px; }
.footer-links a { color: var(--ink-soft); font-size: 10px; text-decoration: none; transition: color .2s ease; }
.site-footer small { grid-column: 1 / -1; justify-self: end; margin-top: 5px; color: var(--muted); font-size: 9px; }

@media (min-width: 1450px) { .hero { min-height: 690px; } }
@media (max-width: 980px) {
  .site-header { padding-inline: 30px; }
  .page-wrap { width: min(100% - 60px, 800px); }
  .hero { grid-template-columns: 1fr .85fr; gap: 35px; padding-top: 70px; }
  .hero-art { min-height: 380px; padding-left: 18px; }
  .hexagram-card { min-height: 285px; }
  .intro-layout { grid-template-columns: 145px 1fr; }
  .intro-aside { display: none; }
  .section-heading { grid-template-columns: 160px 1fr; }
  .steps, .casting-note { margin-left: 188px; }
  .step { padding-right: 17px; }
  .step + .step { padding-left: 17px; }
  .reading-layout { grid-template-columns: 150px 1fr 175px; gap: 22px; }
  .site-footer { padding-inline: 30px; grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .footer-links { grid-column: 1/-1; justify-content: flex-start; }
  .site-footer small { grid-column: 1/-1; justify-self: start; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 70px; }
  .page-wrap { width: calc(100% - 40px); }
  .site-header { min-height: 70px; padding-inline: 20px; gap: 12px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-mark { width: 20px; }
  .main-nav { display: none; }
  .nav-cta { padding: 9px 10px; font-size: 10px; }
  .nav-cta span { margin-left: 4px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 38px; padding-top: 57px; padding-bottom: 52px; }
  .hero h1 { font-size: clamp(44px, 12vw, 62px); }
  .hero-intro { font-size: 14px; }
  .hero-art { min-height: 345px; padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); }
  .hexagram-card { min-height: 265px; }
  .orbit { width: 205px; height: 205px; }
  .orbit-two { width: 155px; height: 155px; }
  .caption-top { right: 6%; }
  .caption-bottom { left: 5%; }
  .hero-index { display: none; }
  .intro-section, .reading-section { padding: 72px 0; }
  .intro-layout, .reading-layout { display: flex; flex-direction: column; gap: 31px; }
  .intro-copy h2, .reading-main h2 { font-size: 43px; }
  .intro-columns { grid-template-columns: 1fr; gap: 0; }
  .intro-columns p { margin-bottom: 12px; }
  .section-heading { display: flex; flex-direction: column; gap: 28px; }
  .heading-copy h2 { font-size: 46px; }
  .steps { margin: 39px 0 0; grid-template-columns: 1fr; border-bottom: 0; }
  .step, .step + .step { min-height: 0; padding: 21px 0 24px; border-left: 0; border-bottom: 1px solid var(--line); }
  .step-number { margin-bottom: 17px; }
  .step h3 { margin-top: 17px; }
  .step p { max-width: 420px; }
  .casting-note { margin: 22px 0 0; align-items: flex-start; flex-wrap: wrap; }
  .casting-note p { width: calc(100% - 38px); flex: initial; }
  .casting-note a { margin-left: 30px; }
  .reading-aside { max-width: 310px; margin-top: 4px; }
  .final-cta { padding: 72px 0; }
  .final-cta h2 { font-size: 45px; }
  .site-footer { padding: 26px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
  .site-footer > p { margin: 0; }
  .footer-links { flex-wrap: wrap; gap: 10px 18px; }
  .site-footer small { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
