/* lisabarretta.com: an astrologer's almanac by candlelight (BJ: "should feel spooky, mystical").
   Night-sky ink, parchment type, one candle-gold accent for rules, rings and links. One family, IM Fell, cut from
   17th-century printing types: English for reading, English SC for names and headings. Her zodiac wheel turns
   slowly behind her name; stars twinkle and fog drifts, all still for visitors who ask for less motion. */
:root {
  color-scheme: dark;
  --night: #0b0910;
  --night-2: #110e16;
  --smoke: #17131d;
  --ink: #ede5d6;
  --ink-2: #bdb2bf;
  --ink-3: #8a8091;
  --gold: #c9a35f;
  --gold-dim: rgb(201 163 95 / .38);
  --gold-faint: rgb(201 163 95 / .14);
  --hair: rgb(237 229 214 / .12);
  --glass: rgb(11 9 16 / .72);
  --fell: "IM Fell English", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --fell-sc: "IM Fell English SC", "IM Fell English", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--fell); font-size: 1.2rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--night); }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; padding: 8px 14px; background: var(--ink); color: var(--night); }
.skip:focus { left: 8px; }
.nw { white-space: nowrap; }

/* Header: a slim glass bar; under a phone's status bar it sticks below the inset */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 62px; }
.mark { font-family: var(--fell-sc); font-size: 1.3rem; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 2.6vw, 30px); }
.nav a { font-family: var(--fell-sc); font-size: 1.08rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--gold); }

/* Hero: her name under a turning zodiac wheel, in a starfield with a little fog */
.hero { position: relative; display: grid; place-items: center; min-height: clamp(560px, 86vh, 880px); overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 60% 50% at 50% 46%, rgb(201 163 95 / .1), transparent 70%), radial-gradient(circle at 80% 12%, rgb(237 229 214 / .07), transparent 26%), var(--night); }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background-size: 640px 640px; }
.hero::after { background-position: 220px 140px; animation: twinkle 7s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .15; } to { opacity: .95; } }
.wheel { position: absolute; z-index: -1; width: min(108vw, 820px); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--gold); opacity: .5; }
.wheel__turn { transform-origin: 0 0; animation: turn 360s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.wheel circle, .wheel line, .wheel polygon { fill: none; stroke: currentColor; stroke-width: .6; vector-effect: non-scaling-stroke; }
.wheel circle:nth-child(1), .wheel circle:nth-child(3) { stroke-width: 1; }
.wheel polygon { stroke-opacity: .55; }
.wheel .dot { fill: currentColor; stroke: none; }
.wheel text { fill: currentColor; font-size: 17px; text-anchor: middle; dominant-baseline: central; font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif; }
.hero__fog { position: absolute; inset: auto -20% -12% -20%; height: 46%; z-index: -1; pointer-events: none; filter: blur(24px); opacity: .55;
  background: radial-gradient(ellipse 30% 55% at 25% 70%, rgb(189 178 191 / .22), transparent 70%), radial-gradient(ellipse 34% 50% at 70% 75%, rgb(189 178 191 / .18), transparent 70%); animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(6%); } }
.hero__in { text-align: center; padding-block: 96px; }
.hero__name { font-family: var(--fell-sc); font-weight: 400; font-size: clamp(3.4rem, 11vw, 8.6rem); line-height: .92; letter-spacing: .01em; text-wrap: balance; text-shadow: 0 0 40px rgb(201 163 95 / .28), 0 2px 0 rgb(0 0 0 / .6); }
.hero__name span { display: inline-block; }
.hero__tag { margin-top: 22px; font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.7rem); color: var(--ink-2); }

/* Sections */
.sec { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--hair); scroll-margin-top: 62px; }
.sec__title { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(28px, 4vw, 48px); font-family: var(--fell-sc); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.sec__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-dim), transparent); }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px 10px; border: 1px solid var(--gold-dim); border-radius: 999px; font-family: var(--fell-sc); font-size: 1.1rem; line-height: 1.2; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.arrow { width: 11px; height: 11px; flex: none; }

/* Books: three cards, each cover in a thin gold frame like a tarot card */
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.book { display: flex; flex-direction: column; gap: 22px; padding: 16px 16px 24px; border: 1px solid var(--gold-faint); border-radius: 18px; background: linear-gradient(180deg, var(--smoke), var(--night-2)); }
.book__cover { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3; padding: 14px; border: 1px solid var(--gold-dim); border-radius: 10px; }
.book__cover img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 16px 40px rgb(0 0 0 / .55); transition: transform .8s var(--ease); }
.book:hover .book__cover img { transform: translateY(-4px) rotate(-.6deg); }
.book__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding-inline: 6px; }
.book__title { font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.book__sub { font-style: italic; color: var(--ink-2); line-height: 1.35; }
.book__blurb { color: var(--ink-2); font-size: 1.08rem; }
.book__links { margin-top: auto; padding-top: 8px; }
.book__extra a { font-size: 1.02rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--gold-dim); text-underline-offset: 4px; }
.book__extra a:hover { color: var(--ink); }
.book__extra .arrow { display: inline-block; margin-left: 5px; vertical-align: 1px; }

/* About: her portrait in an arched window */
.about { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__photo { width: clamp(150px, 16vw, 200px); padding: 8px; border: 1px solid var(--gold-dim); border-radius: 999px 999px 10px 10px; }
.about__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 6px 6px; filter: saturate(.85) contrast(1.05); }
.about__text { display: grid; gap: 1em; max-width: 40em; }
.about__text .sec__title { margin-bottom: .2em; }
.about__text p { color: var(--ink-2); }
.about__text p:first-of-type { color: var(--ink); font-size: 1.32rem; line-height: 1.5; }
.groups { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.groups a { display: inline-flex; align-items: center; gap: 7px; padding: 4px 14px 5px; border: 1px solid var(--gold-dim); border-radius: 999px; font-family: var(--fell-sc); font-size: 1.05rem; color: var(--ink-2); letter-spacing: .04em; text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.groups a:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.groups .arrow { width: 9px; height: 9px; }

/* On Screen: Ancient Aliens and Surviving Death, side by side; the pictures share the poster's shape */
.screen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.show { display: flex; flex-direction: column; border: 1px solid var(--gold-faint); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, var(--smoke), var(--night-2)); }
.show__media { display: flex; flex-direction: column; align-items: center; justify-content: center; height: clamp(380px, 40vw, 500px); overflow: hidden; background: #000; }
.show__media img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }   /* posters show whole, never cropped */
.show__media--card { position: relative; gap: 12px; padding: 32px; text-align: center;
  background: radial-gradient(circle at 50% 42%, rgb(201 163 95 / .16), transparent 55%), radial-gradient(circle at 50% 42%, transparent 0 34%, var(--gold-faint) 34% 34.4%, transparent 34.6% 40%, var(--gold-faint) 40% 40.3%, transparent 40.5%), #07060a; }
.show__net { font-family: var(--fell-sc); letter-spacing: .3em; font-size: 1rem; color: var(--gold); }
.show__name { font-family: var(--fell-sc); font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: .95; }
.show__rule { width: 72px; height: 1px; margin: 4px auto; background: var(--gold-dim); }
.show__ep { font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--ink); }
.show__num { font-family: var(--fell-sc); color: var(--ink-3); font-size: 1.05rem; }
.show__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px 26px 28px; }
.show__kicker { font-family: var(--fell-sc); color: var(--gold); font-size: 1.05rem; letter-spacing: .04em; }
.show__title { font-weight: 400; font-size: 1.65rem; line-height: 1.2; }
.show__title em { font-style: normal; }
.show__line { color: var(--ink-2); }
.show__meta { color: var(--ink-3); font-size: 1.02rem; }
.show__links { margin-top: auto; padding-top: 8px; }

/* The bottom line: her X handle and a link to her posts (BJ: "make x section smaller"), then email (BJ: "we forgot her
   email on the bottom"; a mailto link like Erica's, the address isn't written out) */
.xband { padding-block: clamp(26px, 3.4vw, 40px); border-top: 1px solid var(--hair); scroll-margin-top: 62px; }
.xband__in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; }
.xband__handle { font-family: var(--fell-sc); font-size: 1.3rem; color: var(--gold); }
.xband__link { font-size: 1.2rem; }
.xband__link a { text-decoration: underline; text-decoration-color: var(--gold-dim); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.xband__link a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.xband__link .arrow { display: inline-block; width: 11px; height: 11px; margin-left: 6px; vertical-align: 1px; }
.xband__mail { margin-left: auto; }

.foot { padding-block: 28px 36px; border-top: 1px solid var(--hair); color: var(--ink-3); font-size: 1rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

@media (max-width: 960px) {
  .books { grid-template-columns: minmax(0, 1fr); }
  .book { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 760px) {
  body { font-size: 1.14rem; }
  .screen { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__photo { width: 160px; }
}
@media (max-width: 560px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .book__cover { max-width: 300px; }
}
@media (max-width: 560px) {
  .xband__mail { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 420px) {
  .nav .opt { display: none; }
  .mark { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
