/* =========================================================================
   Dina Yerima-Avazi — Author site
   Design system: twilight navy + harmattan brass on warm paper.
   Editorial serifs, with a quiet sans for labels and navigation.
   ========================================================================= */

:root {
  /* palette */
  --navy-950: #060E19;
  --navy-900: #0B1626;
  --navy-800: #112038;
  --navy-700: #1B3252;
  --paper:    #F6F0E5;
  --paper-2:  #EEE5D4;
  --card:     #FCF9F2;
  --ink:      #141D2B;
  --ink-2:    #4A5361;
  --cream:    #F4EBDC;
  --mist:     #AEB8C6;
  --brass:    #C9A56C;
  --brass-hi: #E2C794;
  --brown:    #7A5930;   /* accent that is still readable as text on paper */
  --brown-2:  #A67C46;
  --line:     #DBCDB5;
  --line-dk:  rgba(201, 165, 108, .22);

  /* type */
  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --body:    'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:    'Jost', 'Avenir Next', 'Segoe UI', sans-serif;
  --script:  'Pinyon Script', 'Snell Roundhand', cursive;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath d='M0 6h28M23 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}
html.nav-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1.1rem, .3vw + 1.04rem, 1.22rem);
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brown); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s ease; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.12; }
h1 em, h2 em, h3 em { font-weight: 400; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
::selection { background: var(--brass); color: var(--navy-900); }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }

.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tint { background: var(--paper-2); }
.section--flush-top { padding-top: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--brass); color: var(--navy-900);
  font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .9em 1.3em; text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: var(--navy-900); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- small type: kickers, tags, leads ---------------------------------- */
.kicker, .tag {
  font-family: var(--sans); font-weight: 500;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--brown); line-height: 1.5; margin: 0 0 1.2rem;
}
.kicker { display: flex; align-items: center; gap: 1em; }
.kicker::before { content: ""; width: 2.4rem; height: 1px; background: currentColor; opacity: .7; flex: none; }
.kicker--center { justify-content: center; }
.kicker--center::after { content: ""; width: 2.4rem; height: 1px; background: currentColor; opacity: .7; flex: none; }
.tag { font-size: .68rem; letter-spacing: .24em; margin-bottom: .7rem; }

.lead { font-size: 1.18em; line-height: 1.55; color: var(--ink-2); }

.script { font-family: var(--script); font-weight: 400; line-height: 1; }

/* ---- dark sections ------------------------------------------------------ */
.dark {
  position: relative; isolation: isolate;
  background: var(--navy-900); color: var(--cream);
}
.dark::after {            /* film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .16; mix-blend-mode: soft-light;
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--cream); }
.dark a { color: var(--brass-hi); }
.dark a:hover { color: #fff; }
.dark .kicker, .dark .tag { color: var(--brass); }
.dark .lead { color: #CDD3DC; }

/* ---- buttons & links ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .9em;
  font-family: var(--sans); font-size: .74rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; line-height: 1;
  padding: 1.25em 2.1em; border: 1px solid transparent; border-radius: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--brass, .dark a.btn--brass { background: var(--brass); color: var(--navy-900); }
.btn--brass:hover, .dark a.btn--brass:hover { background: var(--brass-hi); color: var(--navy-900); }
.btn--ink { background: var(--navy-900); color: var(--cream); }
.btn--ink:hover { background: var(--navy-700); color: #fff; }
.btn--line { border-color: rgba(20, 29, 43, .32); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.dark a.btn--line, .dark .btn--line { border-color: rgba(244, 235, 220, .34); color: var(--cream); }
.dark a.btn--line:hover, .dark .btn--line:hover { border-color: var(--brass); background: transparent; color: var(--brass-hi); }
.btn--sm { padding: 1.05em 1.6em; font-size: .68rem; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

.arrow::after {
  content: ""; width: 1.9em; height: .8em; flex: none;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.arrow:hover::after, a:hover > .arrow::after { transform: translateX(.35em); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .9em;
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); padding-bottom: .45em; border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
.link-arrow:hover { color: var(--brown); }
.dark .link-arrow, .dark a.link-arrow { color: var(--cream); }
.dark a.link-arrow:hover { color: var(--brass-hi); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; }

/* ---- header / navigation ----------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 22, 38, .9);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-dk);
  color: var(--cream);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.32rem, 1.2vw + 1rem, 1.62rem);
  letter-spacing: .012em; line-height: 1; white-space: nowrap;
  color: var(--cream); text-decoration: none;
}
.brand:hover { color: #fff; }
.brand em { font-style: italic; font-weight: 400; color: var(--brass-hi); }

.nav-panel { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.2rem); }
.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 1.9vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: .5rem 0;
  font-family: var(--sans); font-size: .72rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--mist); transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: .15rem; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { padding: .95em 1.4em; font-size: .68rem; }

.nav-toggle {
  display: none; width: 2.75rem; height: 2.75rem; margin-right: -.6rem;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--cream);
  position: relative;
}
.nav-toggle span {
  position: absolute; left: .6rem; right: .6rem; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 1.05rem; }
.nav-toggle span:nth-child(2) { top: 1.6rem; }
.nav[data-open="true"] .nav-toggle span:nth-child(1) { top: 1.33rem; transform: rotate(45deg); }
.nav[data-open="true"] .nav-toggle span:nth-child(2) { top: 1.33rem; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .nav-toggle { display: block; }
  .nav-panel {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2rem;
    padding: 1.5rem var(--gutter) 2.5rem; overflow-y: auto;
    background: var(--navy-900);
    opacity: 0; visibility: hidden; transform: translateY(-.6rem);
    transition: opacity .3s ease, transform .4s var(--ease), visibility 0s .4s;
  }
  .nav[data-open="true"] .nav-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line-dk); }
  .nav-links a {
    font-family: var(--display); font-size: 1.9rem; font-weight: 500;
    letter-spacing: 0; text-transform: none; color: var(--cream); padding: .95rem 0;
  }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--brass-hi); font-style: italic; }
  .nav-cta { align-self: flex-start; padding: 1.25em 2.1em; font-size: .74rem; }
}

/* ---- launch-offer bar (switched on from main.js) ------------------------ */
.promo-bar {
  background: var(--brass); color: var(--navy-900); text-align: center;
  font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .8em var(--gutter);
}
.promo-bar a { color: inherit; font-weight: 500; margin-left: .8em; }

/* ---- home: hero --------------------------------------------------------- */
.hero { overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(46% 62% at 76% 44%, rgba(196, 154, 98, .34), transparent 72%),
    radial-gradient(60% 70% at 6% -6%, rgba(46, 82, 138, .42), transparent 70%),
    linear-gradient(180deg, #0B1626 0%, #0E1C31 58%, #091322 100%);
}
.hero-fog {
  position: absolute; z-index: -2; left: -20%; right: -20%; bottom: -34%; height: 78%;
  background:
    radial-gradient(42% 46% at 28% 56%, rgba(222, 204, 170, .13), transparent 72%),
    radial-gradient(38% 42% at 68% 62%, rgba(222, 204, 170, .11), transparent 72%),
    radial-gradient(30% 36% at 50% 40%, rgba(120, 150, 196, .1), transparent 72%);
  filter: blur(18px);
  animation: drift 36s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(5%, -4%, 0) scale(1.08); } }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
  min-height: min(calc(100vh - var(--header-h) - 5rem), 50rem);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem);
}

.slip {
  position: relative; display: inline-block;
  margin: 0 0 clamp(1.5rem, 3vw, 2.2rem) -.35rem;
  padding: .5em 1em .28em .9em;
  font-family: var(--script); font-size: clamp(2.1rem, 3.1vw, 2.9rem); line-height: 1;
  color: #6A4A22; -webkit-text-stroke: .35px currentColor;
  background: linear-gradient(172deg, #FCF6EA 0%, #F0E4CD 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 18px 28px -14px rgba(0, 0, 0, .7);
  transform: rotate(-3deg);
}
.slip::before {           /* the strip of tape holding it to the page */
  content: ""; position: absolute; top: -.36em; left: 50%; width: 2.6em; height: .62em;
  background: rgba(226, 199, 148, .5); border-inline: 1px dashed rgba(255, 255, 255, .28);
  transform: translateX(-50%) rotate(2.5deg);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}

.hero-title {
  font-size: clamp(3.6rem, 8.6vw, 7.6rem); line-height: .9; letter-spacing: -.015em;
  margin: 0 0 clamp(1.4rem, 2.6vw, 2.2rem);
}
.hero-title em { display: block; font-size: .74em; font-style: italic; font-weight: 400; color: var(--brass-hi); padding-left: .06em; }
.hero-lead { font-size: 1.16em; line-height: 1.6; color: #D3D8DF; max-width: 34em; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.hero-meta {
  margin: 1.6rem 0 0; font-family: var(--sans); font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--mist);
}
.hero-meta a { color: var(--cream); }

.hero-cover { margin: 0; justify-self: center; position: relative; }
.hero-cover .book { width: clamp(15rem, 27vw, 24.5rem); }
.hero-cover a { display: block; transition: transform .6s var(--ease); }
.hero-cover a:hover { transform: translateY(-.4rem); }

/* a book cover, lit from the left with a soft hinge */
.book { position: relative; display: block; line-height: 0; border-radius: 2px 4px 4px 2px; }
.book img { width: 100%; border-radius: inherit; }
.book::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, 0) 1.8%, rgba(0, 0, 0, .16) 3.4%, rgba(0, 0, 0, 0) 6.4%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.book { box-shadow: 0 1px 2px rgba(6, 14, 25, .3), 0 16px 30px -12px rgba(6, 14, 25, .5), 0 40px 70px -32px rgba(6, 14, 25, .6); }
.dark .book { box-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 44px -14px rgba(0, 0, 0, .7), 0 60px 110px -40px rgba(0, 0, 0, .85); }

/* "faded info": latest updates & articles, cross-fading under the hero */
.ticker {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem 2rem;
  padding-block: 1.25rem; border-top: 1px solid var(--line-dk);
  font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
}
.ticker-label { color: var(--brass); display: flex; align-items: center; gap: .9em; }
.ticker-label::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--brass); }
.ticker-items { list-style: none; margin: 0; padding: 0; display: grid; min-width: 0; }
.ticker-items li {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(.35rem);
  transition: opacity 1.1s ease, transform 1.1s var(--ease), visibility 0s 1.1s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ticker-items li.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ticker-items a {
  font-family: var(--display); font-size: 1.2rem; font-style: italic; letter-spacing: .005em;
  text-transform: none; text-decoration: none; color: var(--cream);
}
.ticker-items a span { font-family: var(--sans); font-style: normal; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); margin-right: 1em; }
.dark .ticker-all { color: var(--mist); text-decoration: none; white-space: nowrap; }
.dark .ticker-all:hover { color: var(--cream); }

/* ---- home: welcome letter ---------------------------------------------- */
.welcome-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem); align-items: center;
}
.framed { position: relative; margin: 0; }
.framed::before {
  content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--brown-2); opacity: .6; z-index: 0;
}
.framed img { position: relative; z-index: 1; width: 100%; object-fit: cover; }
.welcome-photo img { aspect-ratio: 4 / 5; object-position: 61% 50%; }
.welcome-letter h2 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 600; margin-bottom: .55em; }
.welcome-letter .lead { color: var(--ink); font-size: 1.22em; line-height: 1.5; }
.welcome-letter p { max-width: 33em; }
.signoff { margin: 2rem 0 0; font-style: italic; color: var(--ink-2); }
.signature {
  display: block; margin-top: .15em; font-family: var(--script); font-style: normal;
  font-size: clamp(3.6rem, 6vw, 5rem); line-height: 1; color: var(--brown);
  -webkit-text-stroke: .3px currentColor; transform: rotate(-4deg); transform-origin: left center;
}

/* ---- section headings --------------------------------------------------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head h2 { margin: 0; }
.section-head .kicker { margin-bottom: 1rem; }
.stat { margin: 0; display: flex; align-items: baseline; gap: .8rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.stat b { font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 5.5vw, 5rem); line-height: .8; letter-spacing: 0; color: var(--brown); }

/* ---- home: the bookshelf ----------------------------------------------- */
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
.shelf-cover {
  display: flex; align-items: flex-end; height: clamp(17rem, 26vw, 23rem);
  padding-bottom: 0; border-bottom: 1px solid var(--line); margin-bottom: 1.8rem;
}
.shelf-cover .book { height: 100%; flex: none; transition: transform .5s var(--ease); }
.shelf-cover .book--square { height: 72%; }   /* a picture book stands shorter on the shelf */
.shelf-cover .book:hover { transform: translateY(-.5rem); }
.shelf-cover .book img { height: 100%; width: auto; max-width: none; }
.shelf-book h3 { margin-bottom: .45em; }
.shelf-book h3 a { color: inherit; text-decoration: none; }
.shelf-book h3 a:hover { color: var(--brown); }
.shelf-book p:not([class]) { color: var(--ink-2); font-size: .98em; max-width: 26em; }
.shelf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.6rem; }

/* ---- updates & articles ------------------------------------------------- */
.journal-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.feature-post { display: block; text-decoration: none; color: inherit; }
.feature-post figure { margin: 0 0 1.8rem; overflow: hidden; background: var(--navy-800); }
.feature-post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-post:hover img { transform: scale(1.035); }
.feature-post h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: .35em; }
.feature-post p:not([class]) { color: var(--ink-2); max-width: 32em; }
.feature-post:hover h3 { color: var(--brown); }

.post-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-rows li { border-bottom: 1px solid var(--line); }
.post-row { display: block; padding: 1.7rem 0; text-decoration: none; color: inherit; }
.post-row h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); margin: 0 0 .3em; transition: color .2s ease; }
.post-row p:not([class]) { margin: 0; color: var(--ink-2); font-size: .96em; }
a.post-row:hover h3 { color: var(--brown); }
.post-row.is-soon h3 { color: var(--ink-2); font-style: italic; }

/* blog index */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.filter {
  font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  padding: .95em 1.5em; background: transparent; color: var(--ink-2); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; transition: all .2s ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--cream); }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.post-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: border-color .3s ease, box-shadow .4s ease, transform .4s var(--ease);
}
.post-card[hidden] { display: none; }
a.post-card:hover { border-color: var(--brown-2); transform: translateY(-.25rem); box-shadow: 0 28px 50px -34px rgba(20, 29, 43, .5); color: inherit; }
.post-card figure { margin: 0; overflow: hidden; background: var(--navy-800); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
a.post-card:hover img { transform: scale(1.035); }
.post-card-body { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; flex: 1; }
.post-card h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: .4em; }
.post-card p:not([class]) { color: var(--ink-2); font-size: .98em; }
.post-card .link-arrow { margin-top: auto; align-self: flex-start; }
.post-card--wide { grid-column: 1 / -1; flex-direction: row; }
.post-card--wide figure { flex: 0 0 52%; }
.post-card--wide img { height: 100%; aspect-ratio: auto; min-height: 20rem; }
.post-card--wide .post-card-body { justify-content: center; }
.post-card.is-soon { background: transparent; border-style: dashed; }
.post-card.is-soon h2 { color: var(--ink-2); font-style: italic; }

/* ---- mailing list ------------------------------------------------------- */
.newsletter { overflow: hidden; padding-block: clamp(4rem, 9vw, 7.5rem); }
.newsletter::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(50% 80% at 12% 100%, rgba(196, 154, 98, .2), transparent 70%),
    radial-gradient(50% 70% at 100% 0%, rgba(46, 82, 138, .34), transparent 70%),
    var(--navy-900);
}
.haze-art {
  position: absolute; z-index: -2; pointer-events: none;
  background: url("/assets/images/haze-tower.jpg") center / cover no-repeat;
  mix-blend-mode: screen; opacity: .2; filter: blur(1.5px);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 18%, transparent 72%);
}
.newsletter-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.newsletter h2 { margin-bottom: .45em; }
.newsletter h2 em { color: var(--brass-hi); font-style: italic; }

/* ---- forms -------------------------------------------------------------- */
.form { --f-line: rgba(20, 29, 43, .28); --f-text: var(--ink); --f-label: var(--brown); --f-hint: var(--ink-2); --f-focus: var(--ink); }
.dark .form { --f-line: rgba(244, 235, 220, .28); --f-text: var(--cream); --f-label: var(--brass); --f-hint: var(--mist); --f-focus: var(--brass-hi); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 2rem; }
.field { display: flex; flex-direction: column; gap: .2rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--f-label); }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1.12rem; line-height: 1.4; color: var(--f-text);
  background: transparent; border: 0; border-bottom: 1px solid var(--f-line); border-radius: 0;
  padding: .5em 0 .6em; transition: border-color .25s ease, box-shadow .25s ease;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--f-hint); opacity: .7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--f-focus); box-shadow: 0 1px 0 var(--f-focus); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--f-text); caret-color: var(--f-text); transition: background-color 600000s 0s, color 600000s 0s; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 2.2rem; }
.form-note { margin: 0; font-size: .92rem; font-style: italic; color: var(--f-hint); }
.form-status { margin: 1.2rem 0 0; min-height: 1.6em; font-style: italic; color: var(--f-label); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- inner page heads --------------------------------------------------- */
.page-head { overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(44% 90% at 88% 60%, rgba(196, 154, 98, .22), transparent 72%),
    radial-gradient(60% 90% at 0% 0%, rgba(46, 82, 138, .38), transparent 70%),
    var(--navy-900);
}
.page-head .haze-art { right: 3%; bottom: -14%; height: 118%; aspect-ratio: 1016 / 950; opacity: .24; }
.page-head h1 { margin: 0; max-width: 16ch; }
.page-head h1 em { font-style: italic; color: var(--brass-hi); }
.page-head .lead { margin: 1.6rem 0 0; max-width: 34em; }
.page-head--center { text-align: center; }
.page-head--center h1, .page-head--center .lead { margin-inline: auto; }
.page-head--center h1 { max-width: 20ch; }
.back-link {
  display: inline-flex; align-items: center; gap: .8em; margin-bottom: 2rem;
  font-family: var(--sans); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
}
.dark a.back-link { color: var(--mist); }
.dark a.back-link:hover { color: var(--cream); }
.back-link::before { content: ""; width: 1.9em; height: .8em; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transform: scaleX(-1); }

/* ---- books index -------------------------------------------------------- */
.book-feature {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem);
  align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--line);
}
.book-feature:first-child { padding-top: 0; }
.book-feature:last-child { border-bottom: 0; padding-bottom: 0; }
.book-feature:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.book-feature:nth-child(even) .book-feature-cover { order: 2; }
.book-feature-cover { display: flex; justify-content: center; }
.book-feature-cover .book { width: min(100%, 20rem); transition: transform .5s var(--ease); }
.book-feature-cover .book:hover { transform: translateY(-.4rem); }
.book-feature h2 { margin-bottom: .25em; }
.book-feature h2 a { color: inherit; text-decoration: none; }
.book-feature h2 a:hover { color: var(--brown); }
.subtitle { font-family: var(--display); font-style: italic; font-size: 1.35em; line-height: 1.3; color: var(--ink-2); margin-bottom: 1.2em; }
.book-feature .btn-row { margin-top: 2rem; }
.muted { color: var(--ink-2); font-style: italic; font-size: .95em; }

/* a few words in Dina's own voice */
.author-note {
  position: relative; margin: 0 0 2rem; padding: 0 0 0 1.6rem; border-left: 1px solid var(--brown-2);
  font-style: italic; font-size: 1.08em; line-height: 1.6; color: var(--ink);
}
.author-note p { margin-bottom: .6em; }
.author-note cite { display: block; font-family: var(--sans); font-style: normal; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brown); }

/* ---- single book -------------------------------------------------------- */
.book-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.book-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(40% 80% at 20% 70%, rgba(196, 154, 98, .3), transparent 72%),
    radial-gradient(60% 90% at 100% 0%, rgba(46, 82, 138, .4), transparent 70%),
    var(--navy-900);
}
.book-hero-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.book-hero-cover { margin: 0 0 clamp(-7rem, -9vw, -4rem); justify-self: center; width: min(100%, 22rem); position: relative; z-index: 2; }
.book-hero-copy { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.book-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: .2em; }
.book-hero .subtitle { color: #CDD3DC; }
.byline { font-family: var(--sans); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); margin-bottom: 2rem; }
.book-hero .btn-row { margin-top: 2.2rem; }

.book-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); padding-top: clamp(6rem, 12vw, 10rem); }
.facts { margin: 0; align-self: start; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--sans); font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); padding-top: .4em; }
.facts dd { margin: 0; font-size: .98em; line-height: 1.5; }
.fineprint { font-size: .86rem; font-style: italic; color: var(--ink-2); margin-top: 1.4rem; }

.band { background: var(--paper-2); }
.band-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: start; }
.band-inner h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 0; }
.band-inner p:not([class]) { max-width: 34em; }

.mini-shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.mini-book { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.8rem; align-items: center; text-decoration: none; color: inherit; }
.mini-book h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin: 0 0 .3em; transition: color .2s ease; }
.mini-book:hover h3 { color: var(--brown); }
.mini-book .tag { margin-bottom: .5rem; }

/* ---- prose (articles, long text) --------------------------------------- */
.prose { font-size: 1.08em; line-height: 1.78; }
.prose > p { max-width: 36em; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 1.8em 0 .6em; }
.prose > :first-child { margin-top: 0; }
.prose blockquote { margin: 2em 0; padding-left: 1.6rem; border-left: 1px solid var(--brown-2); font-style: italic; font-size: 1.12em; color: var(--ink); }
.dropcap::first-letter {
  float: left; font-family: var(--display); font-weight: 500; font-size: 4.9em; line-height: .76;
  padding: .06em .1em 0 0; color: var(--brown);
}

.article-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); text-align: center; }
.article-head h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); max-width: 22ch; margin-inline: auto; }
.article-head .kicker a { color: inherit; text-decoration: none; }
.article-head .kicker a:hover { color: var(--ink); }
.article-byline { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin: 1.6rem 0 0; }
.article-figure { margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); width: min(100% - 2 * var(--gutter), 68rem); }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 40%; }
.article-body { padding-bottom: clamp(3rem, 7vw, 6rem); }
.article-body .prose > p { margin-inline: auto; }
.article-body .prose > * { max-width: 36em; margin-inline: auto; }

.end-cover { text-align: center; margin: clamp(3rem, 6vw, 4.5rem) auto 0; padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.end-cover .book { width: 13.5rem; margin: 0 auto 2rem; }
.end-cover h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .3em; }
.end-cover .btn-row { justify-content: center; margin-top: 1.6rem; }

.paper-card { background: var(--card); border: 1px solid var(--line); padding: clamp(1.6rem, 4vw, 2.6rem); margin-block: 2.5em; }
.paper-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 .3em; }
.paper-card p:not([class]) { margin-bottom: .5em; color: var(--ink-2); }
.paper-card .link-arrow { margin-top: 1.2rem; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.share span { color: var(--ink-2); }
.share a, .share button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .4em; text-decoration-color: var(--brown-2); }
.share a:hover, .share button:hover { color: var(--brown); }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-top: 2.5rem; }

/* ---- about -------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.about-photo { position: sticky; top: calc(var(--header-h) + 2rem); }
.about-photo img { aspect-ratio: 4 / 5; object-position: 50% 12%; }
.about-grid .facts { margin-top: 2.5rem; }
.about-grid .btn-row { margin-top: 2.5rem; }

.pullquote { text-align: center; }
.pullquote blockquote { margin: 0 auto; max-width: 24em; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.24; color: var(--cream); text-wrap: balance; }
.pullquote blockquote::before { content: "\201C"; display: block; font-size: 2.6em; line-height: .5; color: var(--brass); margin-bottom: .1em; font-style: normal; }
.pullquote figcaption { margin-top: 2rem; font-family: var(--sans); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); }
.pullquote { margin: 0; padding-block: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.pullquote::before { content: ""; position: absolute; inset: 0; z-index: -3; background: radial-gradient(50% 90% at 50% 110%, rgba(196, 154, 98, .22), transparent 70%), var(--navy-900); }

/* ---- contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.handles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.handles a {
  display: grid; grid-template-columns: 1.4rem 1fr auto; align-items: center; gap: 1.2rem;
  padding: 1.3rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.handles svg { width: 1.2rem; height: 1.2rem; fill: var(--brown); }
.handles b { font-family: var(--display); font-weight: 500; font-size: 1.5rem; line-height: 1.1; display: block; transition: color .2s ease; }
.handles small { font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.handles i { width: 1.6rem; height: .7rem; background: var(--brown); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .3s var(--ease); }
.handles a:hover b { color: var(--brown); }
.handles a:hover i { transform: translateX(.35em); }
.contact-card { background: var(--card); border: 1px solid var(--line); padding: clamp(1.8rem, 4.5vw, 3.5rem); }
.contact-card h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }

/* ---- coming-soon pages -------------------------------------------------- */
.soon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.soon-card { background: var(--card); border: 1px solid var(--line); padding: clamp(1.8rem, 4vw, 3rem); }
.soon-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .4em; }
.soon-card p:not([class]) { color: var(--ink-2); }
.soon-card p:last-child { margin-bottom: 0; }

.gift-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }

/* ---- 404 ---------------------------------------------------------------- */
.lost { min-height: 72vh; display: grid; place-items: center; text-align: center; overflow: hidden; padding-block: 5rem; }
.lost::before { content: ""; position: absolute; inset: 0; z-index: -3; background: radial-gradient(50% 70% at 50% 60%, rgba(196, 154, 98, .22), transparent 72%), var(--navy-900); }
.lost .haze-art { left: 50%; top: 50%; width: min(44rem, 110vw); aspect-ratio: 1016 / 950; transform: translate(-50%, -50%); opacity: .22; }
.lost .script { font-size: clamp(2.6rem, 6vw, 4rem); color: var(--brass-hi); margin: 0 0 .2em; }
.lost .btn-row { justify-content: center; margin-top: 2.2rem; }

/* ---- footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-950); padding-block: clamp(4rem, 8vw, 6.5rem) 2rem; border-top: 1px solid var(--line-dk); }
.footer-follow { padding-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line-dk); }
.footer-follow p:not([class]) { margin: 1.4rem 0 0; max-width: 24em; color: var(--mist); font-size: .98em; }
.dark a.follow-link {
  display: inline-flex; align-items: center; gap: .5em; text-decoration: none; color: var(--cream);
  font-family: var(--display); font-weight: 500; font-size: clamp(2.1rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.01em;
}
.follow-link em { font-style: italic; font-weight: 400; color: var(--brass-hi); }
.follow-link::after { width: .9em; height: .36em; }
.dark a.follow-link:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer-grid p:not([class]) { color: var(--mist); font-size: .96em; max-width: 24em; margin: 1.2rem 0 0; }
.footer-grid h4 { font-family: var(--sans); font-size: .66rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); margin: .5rem 0 1.2rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.dark .footer-links a { color: var(--cream); text-decoration: none; font-size: 1.02em; }
.dark .footer-links a:hover { color: var(--brass-hi); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dk);
  font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; color: #7F8A9A;
}
.footer-bottom p { margin: 0; }

/* ---- motion ------------------------------------------------------------- */
/* content is visible by default; the hidden→animate state only applies when
   JS is available (html.js), so nothing is ever lost if scripts fail. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

.rise { animation: rise 1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.slip.rise { animation-name: rise-slip; }
@keyframes rise-slip { from { opacity: 0; transform: translateY(18px) rotate(-7deg); } }
.hero-cover.rise { animation-duration: 1.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .rise, .hero-fog { animation: none; }
  .ticker-items li { transition: none; }
}

/* ---- accessibility ------------------------------------------------------ */
a:focus-visible, button:focus-visible { outline: 2px solid var(--brown); outline-offset: 4px; }
.dark a:focus-visible, .dark button:focus-visible, .site-header a:focus-visible, .site-header button:focus-visible { outline-color: var(--brass-hi); }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 3rem; }
  .hero-cover { order: 2; }
  .hero-cover .book { width: min(17rem, 68vw); }
  .ticker { grid-template-columns: auto 1fr; }
  .ticker-all { display: none; }
  .welcome-grid, .newsletter-grid, .about-grid, .contact-grid, .journal-grid, .band-inner { grid-template-columns: 1fr; }
  .welcome-photo, .about-photo { max-width: 30rem; }
  .about-photo { position: relative; top: 0; }
  .framed::before { inset: .8rem -.8rem -.8rem .8rem; }
  .shelf, .gift-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .shelf-cover { height: 19rem; }
  .book-feature, .book-feature:nth-child(even), .book-hero-grid, .book-body { grid-template-columns: 1fr; }
  .book-feature:nth-child(even) .book-feature-cover { order: 0; }
  .book-feature-cover { justify-content: flex-start; }
  .book-feature-cover .book { width: min(70%, 15rem); }
  .book-hero-grid { gap: 2.5rem; }
  .book-hero-cover { order: 2; width: min(64%, 16rem); justify-self: start; margin-bottom: -4rem; }
  .book-hero-copy { padding-bottom: 0; }
  .book-body { padding-top: 6.5rem; }
  .book-body .facts { order: 2; }
  .post-grid, .soon-grid, .mini-shelf { grid-template-columns: 1fr; }
  .post-card--wide { flex-direction: column; }
  .post-card--wide img { min-height: 0; aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .1rem; }
  .mini-book { grid-template-columns: 5.5rem 1fr; gap: 1.2rem; }
  .ticker { gap: 1rem; }
  .ticker-items a { font-size: 1.05rem; }
  .ticker-items a span { display: none; }
  .btn-row .btn { flex: 1 1 auto; }
  .footer-bottom { flex-direction: column; }
}
