/* =============================================================================
   STYLES-V2.CSS — Apple-inspired design system for schechter.com
     • White backgrounds with light-grey (#f5f5f7) accent bands
     • One clean blue accent for subtle but confident color
     • All sans-serif (Hanken Grotesk) — no serif
     • The San Francisco hero photo shown clean, no overlay
     • Soft-shadow cards, generous whitespace
   Same architecture as your original: this shared file loads first, then each
   page adds a small <style> block for anything unique to that page.
   ============================================================================= */


/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


/* =============================================================================
   DESIGN TOKENS
   ============================================================================= */
:root {
  /* — Color: white & grey, Apple-like, with one blue accent — */
  --ink:          #1d1d1f;   /* near-black — primary text */
  --muted:        #6e6e73;   /* grey — secondary text */
  --faint:        #86868b;   /* lighter grey — captions, fine print */
  --line:         #d2d2d7;   /* hairline grey — rules & dividers */
  --bg:           #ffffff;   /* white — default page background */
  --surface:      #ffffff;   /* white — cards */
  --surface-alt:  #f5f5f7;   /* light grey — alternating section bands */
  --accent:       #2767ad;   /* muted, dampened blue — eyebrows, links, buttons */
  --accent-deep:  #2f73bd;   /* slightly brighter — hover */

  /* — Type: one family, used everywhere — */
  --sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* — Structure — */
  --radius:   18px;     /* card corner rounding */
  --shell:    1120px;   /* outer max width */
  --measure:  680px;    /* readable text width */
}


/* =============================================================================
   BASE
   ============================================================================= */
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem;            /* 17px base */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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


/* =============================================================================
   LAYOUT HELPERS
   ============================================================================= */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 2rem; }
.inner { max-width: var(--measure); }

section { padding: 5.5rem 0; }
.section-tight { padding: 4rem 0; }


/* =============================================================================
   NAVIGATION — slim, frosted white
   ============================================================================= */
nav.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--accent); }


/* =============================================================================
   TYPOGRAPHY — all sans-serif, bold headings
   ============================================================================= */
h1, h2, h3 { font-family: var(--sans); letter-spacing: -0.025em; line-height: 1.08; }

h1 { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }

p { text-wrap: pretty; }

/* Eyebrow — small uppercase blue label above a heading */
.eyebrow, .page-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lede { font-size: 1.3rem; color: var(--ink); max-width: var(--measure); }
.section-sub, .page-sub { color: var(--muted); max-width: var(--measure); font-size: 1.12rem; }


/* =============================================================================
   HERO — bold headline on white, then the clean SF photo below (no overlay)
   ============================================================================= */
.hero-text {
  padding: 4.5rem 0 3rem;
}
.hero-text .hero-tagline {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--muted);
  font-weight: 400;
  max-width: 32ch;
  margin-top: 1rem;
  letter-spacing: -0.01em;
}
.hero-photo {
  width: 100%;
  height: clamp(320px, 46vw, 560px);
  object-fit: cover;
  object-position: center 56%;
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 46px -26px rgba(0,0,0,0.55);
}


/* =============================================================================
   INTRO — short statement on white
   ============================================================================= */
.intro { padding-top: 3.25rem; }
.intro p { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; color: var(--ink); max-width: 22ch; font-weight: 600; letter-spacing: -0.02em; }
.intro .inner { max-width: 760px; }
.intro p.sub { font-size: 1.18rem; color: var(--muted); max-width: 56ch; font-weight: 400; letter-spacing: 0; margin-top: 1.1rem; line-height: 1.55; }


/* =============================================================================
   CARDS — white surfaces, soft shadow, on a light-grey band
   ============================================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.1rem 2rem 2.2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 10px 28px -14px rgba(0,0,0,0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 18px 40px -16px rgba(0,0,0,0.18);
}
.card .num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 1rem; color: var(--muted); }


/* =============================================================================
   CLOSING — connect + contact in one band
   ============================================================================= */
.closing { background: var(--surface-alt); border-top: 1px solid var(--line); }
.closing-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 760px) { .closing-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 6px 16px -10px rgba(0,0,0,0.2);
  transition: color 0.18s, transform 0.18s;
}
.social-link:hover { color: var(--accent); transform: translateY(-2px); }
.social-link svg { width: 22px; height: 22px; }


/* =============================================================================
   BUTTONS — Apple-style blue pill
   ============================================================================= */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 980px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, transform 0.18s;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--faint); cursor: not-allowed; transform: none; }


/* =============================================================================
   FOOTER
   ============================================================================= */
footer.site {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  background: var(--bg);
}
footer.site .shell { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
footer.site .copy { font-size: 0.88rem; color: var(--faint); }
footer.site nav { display: flex; gap: 1.5rem; }
footer.site a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.18s; }
footer.site a:hover { color: var(--accent); }


/* =============================================================================
   INTERIOR PAGES — shared scaffold for Books, Contact, Privacy
   ============================================================================= */
.page { max-width: 880px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.page > h1 { margin-bottom: 0.6rem; }
.page-eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.page-sub { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin-bottom: 3rem; }

/* Slim grey header band used on Contact */
.page-header { background: var(--surface-alt); border-bottom: 1px solid var(--line); padding: 3.5rem 0 3rem; }
.page-header .shell h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-header .shell .page-eyebrow { margin-bottom: 0.75rem; }


/* =============================================================================
   BOOKS
   ============================================================================= */
.category { margin-bottom: 3.5rem; }
.category-title {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); padding-bottom: 0.6rem; border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.book {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 10px 28px -16px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book:hover { transform: translateY(-3px); box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 16px 36px -18px rgba(0,0,0,0.18); }
.book-content { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.book-cover { width: 84px; height: 126px; object-fit: cover; border-radius: 6px; flex-shrink: 0; box-shadow: 0 4px 14px -6px rgba(0,0,0,0.3); }
.book-title { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
.book-title a { color: var(--ink); text-decoration: none; transition: color 0.15s; }
.book-title a:hover { color: var(--accent); }
.book-author { font-size: 0.92rem; color: var(--muted); }
.book-author a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--line); transition: color 0.15s; }
.book-author a:hover { color: var(--accent); }
.book-desc { font-size: 0.96rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.5; }


/* =============================================================================
   CONTACT FORM
   ============================================================================= */
.note {
  padding: 1.4rem 1.6rem; background: var(--surface-alt);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.97rem; color: var(--muted); margin-bottom: 2.5rem;
}
.note p { margin-bottom: 0.5rem; }
.note ul { margin: 0.5rem 0 1rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; }
.note strong { color: var(--ink); }

label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; margin-top: 1.25rem; }
input, textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 1rem; font-family: inherit; background: var(--surface);
  color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
textarea { resize: vertical; min-height: 130px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.math-row { display: flex; align-items: center; gap: 0.85rem; margin-top: 0.4rem; }
.math-question { font-weight: 600; font-size: 1rem; white-space: nowrap; }
.math-row input { width: 92px; flex-shrink: 0; }
.refresh-btn { background: none; border: none; cursor: pointer; color: var(--accent); font-size: 1.2rem; line-height: 1; padding: 0.4rem; }

.form-msg { margin-top: 1.25rem; padding: 0.9rem 1.1rem; border-radius: 10px; font-size: 0.96rem; display: none; }
.form-msg.success { background: #e3f5e9; color: #1d6b3a; display: block; }
.form-msg.error   { background: #fce6e6; color: #a32020; display: block; }


/* =============================================================================
   PRIVACY
   ============================================================================= */
.legal h2 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.015em; margin: 2.25rem 0 0.6rem; }
.legal p { color: var(--muted); margin-bottom: 0.8rem; max-width: 70ch; }
.legal p.page-eyebrow { color: var(--accent); }
.legal p strong { color: var(--ink); }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .updated { color: var(--faint); font-size: 0.9rem; margin-bottom: 2.5rem; }
