/* ═══════════════════════════════════════════════════════
   POLARIS PRESS LLC — site.css
   Shared stylesheet. Every page links this one file.
   Edit tokens below to change the whole site at once.
═══════════════════════════════════════════════════════ */

:root {
  /* Core palette — carried from the Direction Series brand */
  --paper:      #F7F3EE;   /* base ground — replaces white */
  --parchment:  #E9E0D0;   /* deeper alternating band */
  --cream:      #F7F3EE;   /* legacy alias */
  --deep:       #1C1C1C;
  --gold:       #B8975A;
  --sage:       #5C6E5A;
  --warm-gray:  #8A8278;
  --charcoal:   #3A3A3A;
  --border:     #D6CBB8;

  /* Polaris accents — night sky. The publisher's own register. */
  --night:      #242433;
  --star:       #5E5E92;
  --night-tint: #F1ECE1;

  /* Type scale */
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body:    'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rhythm */
  --gut:      60px;
  --sect-y:   80px;
  --measure:  68ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--body);
  font-weight: 300;
  background: var(--paper);
  color: var(--deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--night);
  color: var(--cream);
  padding: 12px 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ── SHARED PRIMITIVES ─────────────────────────────── */

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--star);
  margin-bottom: 14px;
}

.rule {
  border: 0;
  height: 1px;
  background: var(--border);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-solid {
  background: var(--deep);
  color: var(--cream);
}
.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--gold);
  color: var(--deep);
}
.btn-ghost {
  border-color: var(--border);
  color: var(--charcoal);
  background: transparent;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--deep);
  color: var(--deep);
}

/* The star mark — Polaris. Used sparingly. */
.star-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: var(--gold);
}
.divider-star {
  background: var(--parchment);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--gut);
}
.divider-star::before,
.divider-star::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-star { padding-top: 4px; padding-bottom: 4px; }
.divider-star svg { width: 28px; height: 28px; fill: var(--gold); opacity: 0.9; }

/* ── NAVIGATION ────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,243,238,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gut);
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-logo .wordmark {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--deep);
  letter-spacing: 0.01em;
}
.site-logo .tagline {
  display: block;
  font-family: var(--body);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-top: 3px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--deep); border-bottom-color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--deep); border-bottom-color: var(--gold); }

.nav-links .nav-porchlight a { color: var(--sage); }
.nav-links .nav-porchlight a:hover { border-bottom-color: var(--sage); }

.nav-links .nav-cta a {
  background: var(--night);
  color: var(--cream);
  padding: 11px 20px;
  border-bottom: 0;
}
.nav-links .nav-cta a:hover,
.nav-links .nav-cta a:focus-visible { background: var(--gold); color: var(--deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 9px 14px;
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  cursor: pointer;
}

/* ── HERO ──────────────────────────────────────────── */

.hero {
  background: var(--paper);
  padding: var(--sect-y) var(--gut);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--gut);
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--deep);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--star); }
.hero p.lede {
  font-size: 15px;
  line-height: 1.85;
  color: var(--charcoal);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.catalog-stack { display: flex; flex-direction: column; gap: 16px; }

.cat-card {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28,28,28,0.07); }

.cat-card > span { display: block; }
.cat-card .kicker {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.cat-card .title {
  display: block;
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.2;
}
.cat-card .sub { display: block; font-size: 12px; margin-top: 5px; line-height: 1.5; }
.cat-card .go {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.cat-primary { background: var(--deep); color: var(--cream); }
.cat-primary .kicker { color: var(--gold); }
.cat-primary .sub { color: rgba(255,255,255,0.55); }
.cat-primary .go { color: var(--gold); }

.cat-secondary {
  background: var(--night-tint);
  border: 1px solid var(--border);
  color: var(--deep);
}
.cat-secondary .kicker { color: var(--star); }
.cat-secondary .sub { color: var(--warm-gray); }
.cat-secondary .go { color: #4E6049; }

/* ── CREDENTIAL STRIP ──────────────────────────────── */

.credentials {
  background: var(--night);
  color: #F2EBDD;
  padding: 26px var(--gut);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.09em;
}
.credentials span { white-space: nowrap; }
.credentials .sep { color: var(--gold); opacity: 0.85; font-size: 14px; }

/* ── SECTIONS ──────────────────────────────────────── */

.section { padding: var(--sect-y) var(--gut); }
.section-cream { background: var(--parchment); }
.section-white { background: var(--paper); border-top: 1px solid var(--border); }

.section h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 300;
  line-height: 1.22;
  color: var(--deep);
  margin-bottom: 20px;
}

.section p { font-size: 14.5px; line-height: 1.85; color: var(--charcoal); }
.section p + p { margin-top: 16px; }

/* About the publisher */
.about-grid {
  display: grid;
  grid-template-columns: 262px 1fr;
  gap: var(--gut);
  align-items: start;
}
.portrait {
  width: 100%;
  aspect-ratio: 274 / 432;
  object-fit: cover;
  object-position: center top;
  background: var(--border);
  border: 1px solid var(--border);
}
.portrait-caption {
  font-size: 10px;
  
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-top: 12px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.stat-row .stat-num {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
  color: var(--deep);
  line-height: 1.1;
}
.stat-row .stat-label {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--warm-gray);
  margin-top: 4px;
}

/* Papers / foundation */
.paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 34px;
}
.paper {
  border: 1px solid var(--border);
  background: #FDFBF6;
  padding: 30px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.paper:hover { border-color: var(--star); transform: translateY(-2px); }
.paper .kind {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--star);
  margin-bottom: 12px;
}
.paper h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--deep);
  margin-bottom: 10px;
}
.paper p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--warm-gray);
  flex: 1;
}
.paper .go {
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
}

/* Media & institutions */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.contact-card {
  border: 1px solid var(--border);
  padding: 30px;
  background: #FDFBF6;
}
.contact-card h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--deep);
}
.contact-card p { font-size: 12.5px; line-height: 1.7; color: var(--warm-gray); }
.contact-card a.mail {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.contact-card a.mail:hover { color: var(--gold); }

/* ── FOOTER ────────────────────────────────────────── */

.site-footer {
  background: var(--night);
  color: rgba(255,255,255,0.55);
  padding: 56px var(--gut) 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .wordmark {
  font-family: var(--display);
  font-size: 24px;
  color: var(--cream);
  display: block;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 34ch;
}
.footer-col h4 {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--cream); }
.footer-col a.ext-gold:hover { color: var(--gold); }
.footer-col a.ext-sage:hover { color: #A8C0A5; }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* ── SCROLL REVEAL (one gesture, used lightly) ─────── */

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ────────────────────────────────────── */

@media (max-width: 1000px) {
  :root { --gut: 40px; --sect-y: 62px; }
  .hero { grid-template-columns: 1fr; gap: 44px; }
  .about-grid { grid-template-columns: 240px 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --gut: 24px; --sect-y: 52px; }

  .nav-toggle { display: block; }
  .site-nav { flex-wrap: wrap; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding: 24px 0 8px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links .nav-cta a { display: inline-block; }

  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .portrait { max-width: 260px; }

  .cat-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .credentials { gap: 16px 22px; font-size: 9.5px; }
  .credentials .sep { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: flex-start; }
}


/* ── ABOUT POLARIS PRESS: mission / vision panel ──── */

.prose-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 26px;
}

.creed {
  background: #FDFBF6;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 36px 34px;
}
.creed blockquote {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--deep);
}
.creed .creed-label {
  font-family: var(--body);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--star);
  margin-top: 14px;
}
.creed .rule { margin: 28px 0; }
.creed .creed-body {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--charcoal);
}

/* Outbound foundational document card */
.paper-outbound { background: var(--night-tint); }
.paper-outbound:hover { border-color: var(--sage); }
.paper-outbound .kind { color: #4E6049; }

@media (max-width: 1000px) {
  .prose-grid { grid-template-columns: 1fr; gap: 36px; }
}
