/* An introduction to Astraea, painted in the same colours as its own world. */
html[data-world="astro"], body[data-world="astro"] { background: #100f20; }
body[data-world="astro"] {
  --ag-ink: #100f20;
  --ag-plum: #2b2034;
  --ag-paper: #e8ddc9;
  --ag-muted: #c4b7c9;
  --ag-coral: #d49a8c;
  --ag-gold: #c9ab73;
  --silver: #eee4d5;
  --muted: #c4b7c9;
  --line: #e8ddc92b;
  background: var(--ag-ink);
  color: var(--silver);
}
body[data-world="astro"] .inner-shell { background: var(--ag-ink); overflow: hidden; }
body[data-world="astro"] .inner-content { max-width: none; padding: 0; }
body[data-world="astro"] .back-link { display: none; }
body[data-world="astro"] .header-book { background: var(--ag-paper); color: #302739; border-color: var(--ag-paper); }
body[data-world="astro"] .desktop-nav a[aria-current="page"]::after { background: var(--ag-coral); }
body[data-world="astro"] .site-footer { max-width: none; color: var(--ag-paper); border-color: var(--line); background: var(--ag-ink); }
body[data-world="astro"] .site-footer :is(p,nav) { color: var(--ag-muted); }
body[data-world="astro"] dialog { background: #221a2e; color: var(--ag-paper); border-color: #e8ddc94a; }
body[data-world="astro"] dialog::backdrop { background: #090812cf; }
body[data-world="astro"] dialog .button-primary { background: var(--ag-paper); color: #302739; border-color: var(--ag-paper); }
#page-astro { position: relative; }
#page-astro :is(a,button,[role="tabpanel"]):focus-visible { outline: 2px solid #e6c994; outline-offset: 5px; }
#page-astro h3:focus { outline: none; }
#page-astro em { color: #d8b7c5; }
#page-astro .ag-eyebrow { font: 400 10px/1.7 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: #d1b785; }
.ag-hero { min-height: 680px; height: min(740px,calc(100svh - 88px)); position: relative; display: flex; align-items: center; isolation: isolate; background: #100f20; overflow: hidden; }
.ag-observatory { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ag-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg,#100f208c,transparent 67%),linear-gradient(0deg,#100f20 0%,#100f2000 22%,#100f2000 93%,#100f2033); }
.ag-hero-inner { width: 100%; max-width: 1600px; margin: 0 auto; padding: 35px clamp(28px,6vw,100px) 90px; }
.ag-brand { display: flex; align-items: center; gap: 18px; color: var(--ag-paper); font: 500 65px/.9 Georgia,"Times New Roman",serif; letter-spacing: -3px; }
.ag-brand svg { width: 43px; height: 43px; stroke-width: .9; color: #bc9b67; }
.ag-brand .ag-mark-dot { fill: currentColor; stroke: none; }
.ag-hero .ag-eyebrow { margin-top: 17px; color: #cfb983; font-size: 9px; letter-spacing: 1.7px; }
.ag-hero h2 { font: 500 clamp(55px,5.7vw,83px)/1.02 var(--serif); letter-spacing: -1.3px; margin-top: 39px; max-width: 760px; }
.ag-hero h2 em { color: #d1b8d0; }
#page-astro .ag-hero-description { color: #ded4dd; font: 400 15px/1.85 var(--sans); margin-top: 27px; }
.ag-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; margin-top: 31px; }
.ag-primary { display: inline-flex; justify-content: center; align-items: center; gap: 23px; min-height: 49px; padding: 12px 26px; background: var(--ag-paper); color: #302739; font: 500 21px/1.2 var(--serif); border: 1px solid var(--ag-paper); border-radius: 2px; transition: background .2s,transform .2s; }
.ag-primary svg { width: 21px; height: 20px; }
.ag-primary:hover { background: #f5ecdd; transform: translateY(-2px); }
.ag-text-link { display: inline-flex; align-items: center; gap: 17px; min-height: 44px; padding: 8px 0; font: 500 21px/1.2 var(--serif); color: var(--ag-paper); border-bottom: 1px solid #d2ae9070; transition: color .2s,border-color .2s; }
.ag-text-link svg { width: 22px; height: 20px; transition: transform .2s; }
.ag-text-link:hover { color: #fff6e9; border-color: #e8ddc9; }
.ag-text-link:hover svg { transform: translate(3px,-2px); }
.ag-hero-foot { position: absolute; left: clamp(28px,6vw,100px); right: clamp(28px,6vw,100px); bottom: 25px; display: flex; align-items: center; justify-content: space-between; color: #cabdce; }
.ag-hero-foot > span { font: 400 9px/1.6 var(--sans); text-transform: uppercase; letter-spacing: 1.6px; }
.ag-hero-foot button { display: inline-flex; align-items: center; gap: 15px; border: 0; background: transparent; color: #e8ddc9; min-height: 44px; padding: 0; font: 400 11px/1.4 var(--sans); }
.ag-hero-foot button svg { width: 20px; height: 18px; transform: rotate(90deg); }
.ag-content { max-width: 1500px; padding: 0 clamp(28px,6vw,100px); margin: 0 auto; }
.ag-introduction { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(45px,8vw,130px); align-items: start; padding: 78px 0 81px; border-bottom: 1px solid var(--line); }
#page-astro h3 { font: 500 clamp(40px,3.9vw,57px)/1.07 var(--serif); letter-spacing: -.6px; }
.ag-introduction h3 { margin-top: 23px; }
.ag-introduction-copy { padding-top: 5px; }
.ag-introduction-copy > p { font: 400 14px/1.9 var(--sans); color: #cbbfce; }
.ag-introduction-copy > p + p { margin-top: 17px; }
.ag-introduction-copy .ag-text-link { margin-top: 18px; font-size: 20px; }
.ag-readings { padding-top: 71px; --ag-reading-accent: #cfaf76; }
.ag-readings[data-active-reading="synastry"] { --ag-reading-accent: #d49a8c; }
.ag-readings[data-active-reading="written"] { --ag-reading-accent: #c2b4d0; }
.ag-readings-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 38px; }
.ag-readings-heading h3 { margin-top: 19px; }
.ag-readings-heading > p { font: 400 13px/1.85 var(--sans); color: #c1b4c6; padding-bottom: 3px; }
.ag-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--line); }
.ag-tabs button { display: flex; align-items: flex-start; gap: 16px; position: relative; border: 0; background: transparent; padding: 24px 28px; text-align: left; color: #c3b4c9; min-height: 105px; transition: background .2s,color .2s; }
.ag-tabs button + button { border-left: 1px solid var(--line); }
.ag-tabs button:first-child { padding-left: 0; }
.ag-tabs button::after { content: ""; position: absolute; bottom: -1px; left: 28px; right: 28px; height: 2px; background: var(--ag-reading-accent); opacity: 0; transition: opacity .2s; }
.ag-tabs button:first-child::after { left: 0; }
.ag-tabs button[aria-selected="true"] { color: #f1e7d8; background: #e8ddc904; }
.ag-tabs button[aria-selected="true"]::after { opacity: 1; }
.ag-tabs button:hover { color: #f1e7d8; background: #e8ddc908; }
.ag-tab-number { padding-top: 8px; color: #b4a1b8; font: 400 10px/1.4 var(--sans); }
.ag-tabs button > span:last-child { font: 500 31px/1.15 var(--serif); }
.ag-tabs small { display: block; margin-top: 7px; font: 400 11px/1.6 var(--sans); color: #ac9eb2; }
.ag-panels { padding-top: 42px; }
.ag-reading-panel { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px,8vw,120px); align-items: center; min-height: 510px; }
.ag-reading-art { position: relative; margin: 0; max-width: 500px; }
.ag-reading-art img { display: block; width: 100%; height: 470px; object-fit: cover; object-position: center; border-radius: 2px; border: 1px solid #e8ddc92b; }
.ag-reading-art::after { content: ""; position: absolute; top: 14px; left: 14px; right: 14px; bottom: 51px; border: 1px solid #e8ddc91f; pointer-events: none; }
.ag-reading-art figcaption { padding-top: 15px; font: 400 9px/1.7 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: #c4b1c9; }
.ag-reading-copy { padding: 6px 0 35px; max-width: 510px; }
.ag-reading-copy .ag-eyebrow { color: var(--ag-reading-accent); }
#page-astro .ag-reading-copy h4 { font: 500 clamp(39px,3.7vw,54px)/1.07 var(--serif); letter-spacing: -.5px; margin: 24px 0; }
#page-astro .ag-reading-copy h4 em { color: var(--ag-reading-accent); }
.ag-reading-copy > p:not(.ag-eyebrow):not(.ag-reading-note) { color: #cbbecd; font: 400 14px/1.9 var(--sans); max-width: 430px; }
.ag-reading-details { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; margin: 19px 0 23px; border-block: 1px solid var(--line); max-width: 430px; }
.ag-reading-details span { color: #c7b9cc; font: 400 12px/1.65 var(--sans); }
.ag-reading-details strong { flex: none; font: 500 31px/1 var(--serif); color: #e8ddc9; }
.ag-reading-copy .ag-primary { font-size: 20px; padding-inline: 24px; }
#page-astro .ag-reading-note { margin-top: 17px; font: 400 10px/1.8 var(--sans); color: #ad9fb5; }
.ag-closing { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 72px; padding: 42px 0 49px; border-top: 1px solid var(--line); }
.ag-closing > p { font: 500 37px/1.12 var(--serif); color: #e1d5e1; }
.ag-closing > p em { color: #d4b1bd; }
.ag-closing .ag-text-link { font-size: 26px; }
@media(min-width:1600px) {
  .ag-hero { height: 760px; min-height: 760px; }
  .ag-observatory { object-position: center 45%; }
}
@media(min-width:801px) and (max-width:1100px) {
  .ag-hero { min-height: 650px; }
  .ag-hero-inner { padding-left: 4vw; padding-right: 4vw; }
  .ag-hero h2 { font-size: clamp(51px,6.2vw,68px); max-width: 610px; }
  .ag-observatory { object-position: 57% center; }
  .ag-hero::after { background: linear-gradient(90deg,#100f20c7,transparent 86%),linear-gradient(0deg,#100f20,transparent 25%); }
  .ag-hero-foot { left: 4vw; right: 4vw; }
  .ag-content { padding-inline: 4vw; }
  .ag-introduction { column-gap: 45px; }
  .ag-introduction h3 { font-size: 39px; }
  .ag-reading-panel { gap: 48px; }
  .ag-reading-art img { height: 440px; }
  .ag-reading-copy { padding-bottom: 20px; }
}
@media(max-width:800px) {
  .ag-hero { display: flex; flex-direction: column; align-items: stretch; height: auto; min-height: 0; overflow: visible; padding-top: 38px; background: var(--ag-ink); }
  .ag-hero::after { display: none; }
  .ag-hero-inner { order: 0; padding: 0 26px; max-width: 570px; }
  .ag-brand { font-size: 58px; gap: 16px; letter-spacing: -3px; }
  .ag-brand svg { width: 39px; height: 39px; }
  .ag-hero .ag-eyebrow { font-size: 8px; letter-spacing: 1.65px; margin-top: 15px; }
  .ag-hero h2 { font-size: clamp(43px,10.2vw,61px); line-height: 1.04; letter-spacing: -.8px; margin-top: 31px; max-width: 480px; }
  #page-astro .ag-hero-description { font-size: 14px; line-height: 1.85; margin-top: 23px; }
  .ag-hero-actions { gap: 19px; margin-top: 25px; }
  .ag-primary { font-size: 20px; gap: 17px; padding: 11px 22px; min-height: 47px; }
  .ag-primary svg { width: 18px; height: 18px; }
  .ag-text-link { font-size: 20px; gap: 12px; }
  .ag-text-link svg { width: 20px; height: 18px; }
  .ag-observatory { order: 1; position: relative; inset: auto; z-index: 0; display: block; width: 100%; height: min(94vw,510px); margin-top: 32px; object-fit: cover; object-position: 78% center; mask-image: linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent); -webkit-mask-image: linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent); }
  .ag-hero-foot { order: 2; position: static; width: 100%; max-width: 570px; margin: -2px auto 0; padding: 0 26px 13px; }
  .ag-hero-foot > span { font-size: 8px; letter-spacing: 1.1px; }
  .ag-hero-foot button { font-size: 10px; gap: 10px; }
  .ag-content { max-width: 600px; padding-inline: 26px; }
  .ag-introduction { grid-template-columns: 1fr; gap: 25px; padding: 39px 0 45px; }
  #page-astro .ag-eyebrow { font-size: 9px; letter-spacing: 1.6px; }
  .ag-introduction h3 { margin-top: 20px; }
  #page-astro h3 { font-size: clamp(35px,9vw,46px); line-height: 1.08; letter-spacing: -.4px; }
  .ag-introduction-copy { padding-top: 0; }
  .ag-introduction-copy > p { font-size: 13px; line-height: 1.9; }
  .ag-introduction-copy > p + p { margin-top: 15px; }
  .ag-introduction-copy .ag-text-link { margin-top: 17px; }
  .ag-readings { padding-top: 43px; scroll-margin-top: 24px; }
  .ag-readings-heading { display: block; margin-bottom: 28px; }
  .ag-readings-heading h3 { margin-top: 19px; }
  .ag-readings-heading > p { margin-top: 20px; padding: 0; font-size: 13px; line-height: 1.8; }
  .ag-tabs button { padding: 19px 13px; min-height: 101px; flex-direction: column; gap: 7px; }
  .ag-tabs button:first-child { padding-left: 0; }
  .ag-tabs button:last-child { padding-right: 0; }
  .ag-tab-number { padding: 0; font-size: 9px; }
  .ag-tabs button > span:last-child { font-size: 25px; }
  .ag-tabs small { font-size: 9px; line-height: 1.5; margin-top: 8px; max-width: 100px; }
  .ag-tabs button::after { left: 13px; right: 13px; }
  .ag-panels { padding-top: 26px; }
  .ag-reading-panel { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .ag-reading-art { max-width: none; }
  .ag-reading-art img { height: auto; aspect-ratio: 1.2; width: 100%; object-position: center 44%; }
  .ag-reading-art::after { top: 11px; left: 11px; right: 11px; bottom: 44px; }
  .ag-reading-art figcaption { padding-top: 12px; font-size: 8px; letter-spacing: 1px; }
  .ag-reading-copy { padding: 0; max-width: none; }
  #page-astro .ag-reading-copy h4 { font-size: clamp(38px,9.7vw,47px); margin: 19px 0; }
  .ag-reading-copy > p:not(.ag-eyebrow):not(.ag-reading-note) { font-size: 13px; line-height: 1.9; max-width: none; }
  .ag-reading-details { margin: 23px 0 22px; padding: 20px 0; max-width: none; }
  .ag-reading-details span { font-size: 11px; max-width: 215px; }
  .ag-reading-details strong { font-size: 29px; }
  #page-astro .ag-reading-note { font-size: 10px; margin-top: 15px; }
  .ag-closing { margin-top: 43px; padding: 30px 0 35px; align-items: flex-start; gap: 24px; }
  .ag-closing > p { font-size: 30px; }
  .ag-closing .ag-text-link { font-size: 22px; max-width: 145px; }
}
@media(max-width:390px) {
  .ag-hero-actions { gap: 13px; }
  .ag-hero-actions .ag-primary { padding-inline: 18px; font-size: 19px; gap: 12px; }
  .ag-hero-actions .ag-text-link { font-size: 18px; gap: 8px; }
  .ag-tabs button { padding-inline: 10px; }
  .ag-tabs button > span:last-child { font-size: 23px; }
  .ag-closing { flex-direction: column; gap: 14px; }
  .ag-closing .ag-text-link { max-width: none; }
}
@media(max-width:359px) {
  .ag-hero-inner, .ag-hero-foot, .ag-content { padding-inline: 21px; }
  .ag-hero h2 { font-size: 41px; }
  .ag-brand { font-size: 53px; }
  .ag-tabs button > span:last-child { font-size: 22px; }
  .ag-tabs small { font-size: 8px; }
  .ag-tabs button { padding-inline: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  #page-astro .ag-primary, #page-astro .ag-text-link, #page-astro .ag-text-link svg, #page-astro .ag-tabs button, #page-astro .ag-tabs button::after { transition: none; }
  #page-astro .ag-primary:hover, #page-astro .ag-text-link:hover svg { transform: none; }
}
