/* Himapaan Press — release candidate
   System font stacks only: no external request, no tracking, offline-correct. */

:root {
  --paper: #f5f0e4;
  --ivory: #fffdf7;
  --ink: #1e2922;
  --forest: #213b2d;
  --forest-deep: #18271e;
  --moss: #4a5a46;          /* repaired from #62765d — 4.33:1 failed body text */
  --clay: #9d523b;
  --gold: #e3bd70;
  --saffron: #c8922f;       /* non-informational hairlines only, never text */
  --lede: #405047;
  --lane-body: #4f5c54;
  --book-body: #e6ece6;
  --book-fine: #c6d3c7;
  --foot-body: #c9d5ca;
  --chip-ink: #654a18;
  --chip-line: #78591f;
  --line: rgba(30, 41, 34, .18);
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* --- Accessibility primitives (lifted from futuregod/style.css) --- */
.skip-link {
  position: absolute;
  top: -200%;
  left: 12px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--forest);
  color: var(--ivory);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 12px; }

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

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.book :focus-visible,
.footer :focus-visible { outline-color: var(--paper); }

/* --- Header --- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 240, 228, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
}
.brand__name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .02em;
}
.brand__rule {
  display: block;
  width: 46px;
  height: 1px;
  background: var(--saffron);
}
.links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  /* Never shrink below the label: on narrow screens the row scrolls instead
     of squeezing the links into each other. */
  flex: 0 0 auto;
  padding: 0 12px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.links a:hover { color: var(--clay); }
.links__letters {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 18px !important;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}
.btn--primary { background: var(--forest); color: var(--ivory); }
.btn--secondary { border: 1px solid var(--forest); color: var(--forest); }
.btn:hover { opacity: .88; transform: translateY(-2px); }

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
  padding: 84px 0 96px;
}
.eyebrow, .kicker {
  margin: 0;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 22px 0 26px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 12vw, 108px);
  line-height: .93;
  letter-spacing: -.04em;
}
.hero h1 em { display: block; color: var(--forest); font-style: italic; }
.lede {
  max-width: 610px;
  margin: 0;
  color: var(--lede);
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
}
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}
.hero__field {
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(255, 253, 247, .95), rgba(245, 240, 228, 0) 72%);
}
.hero__cover {
  position: relative;
  width: 300px;
  filter: drop-shadow(0 26px 28px rgba(31, 42, 35, .24));
}
.hero__hairline {
  position: absolute;
  bottom: 26px;
  width: 62%;
  height: 1px;
  background: var(--saffron);
  opacity: .55;
}

/* --- Cinematic band: the artwork whole, credited, unscrimmed --- */
.band { padding: 0 0 8px; }
.band img { width: 100%; }
.band picture { display: block; border-block: 1px solid var(--line); }
.band figcaption {
  width: min(1180px, calc(100% - 48px));
  margin: 14px auto 0;
  color: var(--moss);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

/* --- Sections --- */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
}
.section__head {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 58px;
}
.section__note {
  margin: 0;
  color: var(--lede);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

/* --- Publishing lanes: indexed rows, hairline separators --- */
.lanes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lane {
  display: grid;
  grid-template-columns: 58px 132px minmax(200px, 1fr) 1.35fr;
  gap: 26px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.lane__index {
  color: var(--clay);
  font-family: var(--serif);
  font-size: 19px;
}
.lane__label {
  margin: 0;
  color: var(--moss);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lane h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.2;
}
.lane__body { margin: 0; color: var(--lane-body); }

/* --- Future God (inverted) --- */
.book { background: var(--forest); color: var(--book-body); border-top: 0; }
.book h2 { color: var(--ivory); font-size: clamp(38px, 8vw, 92px); }
.book .kicker { color: var(--gold); }
.book-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 84px; align-items: start; }
.covers {
  position: sticky;
  top: 118px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
}
.covers img { box-shadow: 0 18px 34px rgba(0, 0, 0, .33); }
.covers__item--back { transform: translateY(40px); }
.covers figcaption {
  margin-top: 10px;
  color: var(--book-fine);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.book-subtitle {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--book-body);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
}
.pivot {
  margin: 40px 0 24px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
}
.book-copy p { color: var(--book-body); }
.gold-text { color: var(--gold); }
.buy { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 18px; }
.book .btn--primary { background: var(--ivory); color: var(--forest); }
.book .btn--secondary { border-color: var(--book-fine); color: var(--book-body); }
.search-note, .imprint { color: var(--book-fine) !important; font-size: 13px; }
.imprint {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.outbound { margin: 18px 0 0; }
.outbound a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold);
  font-size: 14px;
}

/* --- Author --- */
.author-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 84px; align-items: center; }
.portrait { position: relative; }
.portrait img { width: 100%; max-height: 660px; object-fit: cover; object-position: center top; }
.portrait figcaption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  padding: 9px 14px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
}
.author-bio {
  margin: 22px 0 30px;
  color: var(--lede);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

/* --- Bhutan horizon: no photograph, no offer --- */
.horizon { background: var(--ivory); }
.horizon-inner { max-width: 820px; }
.horizon__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px; }
.chip {
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  color: var(--chip-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.horizon__body {
  margin: 26px 0 0;
  color: var(--lede);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
}
.horizon__disclaimer { margin: 18px 0 28px; color: var(--ink); }

/* --- Letters --- */
.letters-inner { max-width: 700px; margin-inline: auto; text-align: center; }
.letters__body { margin: 18px 0 34px; font-family: var(--serif); font-size: 19px; }
.letters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 580px;
  margin-inline: auto;
}
.letters-form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 16px var(--sans);
}
.letters-form input[type="email"]::placeholder { color: var(--moss); }
.letters-form button {
  min-height: 52px;
  min-width: 44px;
  padding: 0 26px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s ease;
}
.letters-form button:hover { opacity: .88; }
.form-assist { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { flex: 1 0 100%; min-height: 24px; font-size: 14px; }
.form-status--error { color: var(--clay); font-weight: 700; }
.form-status--success { color: var(--forest); font-weight: 700; }
.letters__trust { margin: 20px 0 0; color: var(--moss); font-size: 13px; }
.letters__privacy { margin: 2px 0 0; }
.letters__privacy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--forest);
  font-size: 13px;
}

/* --- Prose page (privacy) --- */
.prose-page { border-top: 0; }
.prose-page__inner { max-width: 720px; }
.prose-page h1 {
  margin: 14px 0 26px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.prose-page h2 {
  margin: 44px 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.01em;
}
.prose-page p { color: var(--lede); }
.prose-page .lede { margin-bottom: 8px; }
.prose-page .btn { margin-top: 34px; }

/* --- Footer --- */
.footer { background: var(--forest-deep); color: var(--foot-body); padding: 58px 0; }
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.foot__mark { margin: 0; color: var(--paper); font-family: var(--serif); font-size: 30px; }
.foot__left p.foot__line { max-width: 460px; }
.foot__line { margin: 8px 0 0; font-size: 13px; }
.foot__right { text-align: right; }
.foot__links { display: flex; justify-content: flex-end; gap: 4px; margin: 0 -10px 4px 0; }
.foot__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  color: var(--paper);
  font-size: 13px;
}

/* --- Scroll reveal: visible by default, so the page reads without JS --- */
.reveal { opacity: 1; }
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- Breakpoints --- */
@media (max-width: 900px) {
  .top { position: relative; }
  .nav { flex-wrap: wrap; padding: 12px 0; }
  .links { order: 2; width: 100%; overflow-x: auto; padding-bottom: 6px; gap: 2px; }
  .links a { white-space: nowrap; }
  .hero, .section__head, .book-grid, .author-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; gap: 24px; }
  .hero__art { min-height: 460px; }
  .section__head { gap: 32px; align-items: start; margin-bottom: 42px; }
  .section { padding: 80px 0; }
  .lane { grid-template-columns: 48px 1fr; gap: 8px 20px; }
  .lane__label { grid-column: 2; }
  .lane h3 { grid-column: 2; }
  .lane__body { grid-column: 2; }
  .book-grid, .author-grid { gap: 56px; }
  .covers { position: relative; top: auto; max-width: 540px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot__right { text-align: left; }
  .foot__links { justify-content: flex-start; margin-left: -10px; }
}

@media (max-width: 560px) {
  .wrap, .band figcaption { width: min(1180px, calc(100% - 28px)); }
  .brand__name { font-size: 18px; }
  .brand__rule { width: 28px; }
  .links {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .hero__art { min-height: 380px; }
  .hero__cover { width: 220px; }
  .hero__hairline { bottom: 14px; }
  .covers { grid-template-columns: 1fr; gap: 22px; max-width: 260px; margin-inline: auto; }
  .covers__item--back { transform: none; }
  .letters-form { flex-direction: column; }
  .letters-form input[type="email"] {
    flex: 0 0 auto;
    width: 100%;
    height: 52px;
  }
  .foot__mark { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  a, button, .btn, .reveal { transform: none !important; }
  html.js .reveal { opacity: 1 !important; }
}
