/* ─────────────────────────────────────────────────────────────
   justindohrmann.com — shared theme (Oct 2026 refresh)

   Loaded AFTER each page's own <style> block, so it only restyles:
   fonts, colors, buttons, cards and spacing. Page structure and
   layout grids still live in each page. Used by index.html,
   story.html, web-design.html and reading.html (the demo sites in
   samples/ have their own styles).

   To change the whole look, edit the tokens in :root below.
   ───────────────────────────────────────────────────────────── */

:root {
  --navy:      #0B1A26;   /* deep ink navy-teal — main dark surface */
  --navy-dark: #07121B;   /* footer / overlays */
  --navy-mid:  #143042;   /* raised dark surface */
  --white:     #FFFFFF;
  --off-white: #F3F7F5;   /* cool paper */
  --light-bg:  #E8F0EC;
  --brass:     #0E7A6D;   /* teal accent on light backgrounds (name kept so page CSS still works) */
  --accent-lt: #B8F36B;   /* lime — primary buttons on dark */
  --accent-tq: #3DDCC4;   /* turquoise — labels and highlights on dark */
  --body-text: #141A24;
  --muted:     #55636A;
  --border:    #DAE4E0;
  --radius:    18px;
  --radius-sm: 10px;
  --display:   'Instrument Serif', 'Playfair Display', Georgia, serif;
  --sans:      'Manrope', 'Source Sans 3', system-ui, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, monospace;
  --ease:      cubic-bezier(.2,.8,.2,1);
}

body { font-family: var(--sans); color: var(--body-text); letter-spacing: -0.005em; }
::selection { background: var(--accent-tq); color: var(--navy); }

/* ── Display type: everything that was Playfair ── */
.nav-logo, .hero-name, .section-title, .page-title, .service-title, .service-num,
.track-title, .testi-name, .testi-mark, .cred-name, .footer-brand, .mobile-menu a,
.stat-number, .story-block h3, .panel-head, .pillar-title, .contact-title, .mission-meta strong,
.book-title, .book-cover-fallback .fb-num, .book-cover-fallback .fb-title,
.client h3, .concept h3, .inc h3, .inc-num, .step h3, .step::before {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
}
/* Intro text, quotes and testimonials: plain, easy-to-read sans (no italic script anywhere) */
.hero-pitch, .page-intro, .testi-text, .mission-quote, .panel-quote p, .concept .style, .book-author {
  font-family: var(--sans);
  font-style: normal;
  letter-spacing: 0;
}
em, cite { font-style: normal; }
.hero-pitch, .page-intro { font-size: 1.12rem; line-height: 1.7; font-weight: 400; color: rgba(255,255,255,0.8); }
.testi-text { font-size: 1rem; line-height: 1.75; color: var(--body-text); }
.mission-quote { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.3; }
.panel-quote p { font-size: 0.98rem; line-height: 1.7; }

.hero-name { font-size: clamp(3.6rem, 7vw, 7rem); line-height: 0.92; letter-spacing: -0.025em; }
.hero h1, .page-title { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; }
.hero h1 { font-size: clamp(3rem, 5.4vw, 5.4rem); }
.page-title { font-size: clamp(2.8rem, 5vw, 5rem); }
.hero h1 em, .page-title em, .wd-band h2 em { font-style: normal; background: linear-gradient(90deg, var(--accent-tq), var(--accent-lt)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.section-title, .contact-title { font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; }

/* ── Labels: kickers become mono with an accent dot ── */
.hero-kicker, .page-kicker, .section-kicker, .contact-kicker, .stat-label, .mission-cite,
.pillar-label, .book-num, .book-category-pill, .client-tag, .concept .industry, .step small,
.panel-quote cite {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-kicker, .page-kicker, .section-kicker, .contact-kicker {
  font-size: 0.72rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.hero-kicker::before, .page-kicker::before, .section-kicker::before, .contact-kicker::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}
.contact-center .contact-kicker, .contact-center .section-kicker { justify-content: center; }
.hero-kicker, .page-kicker,
.bg-navy .section-kicker, .wd-band .section-kicker, .contact-kicker, .panel-quote cite { color: var(--accent-tq) !important; }

/* The thin rules under kickers become a short gradient bar */
.hero-rule, .page-rule, .section-rule, .contact-rule, .testi-rule {
  height: 3px; border-radius: 3px; width: 2.8rem;
  background: linear-gradient(90deg, var(--accent-tq), var(--accent-lt));
}

/* ── NAV: translucent bar, sentence-case links, pill CTA ── */
nav { background: color-mix(in srgb, var(--navy) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: rgba(255,255,255,0.08); }
.nav-logo { font-size: 1.45rem; }
.nav-links li a { border-left: 0; font-family: var(--sans); font-size: 0.86rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,0.68); padding: 0 1rem; position: relative; }
.nav-links li a::after { content: ''; position: absolute; left: 50%; bottom: 16px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-tq); transform: translateX(-50%) scale(0); transition: transform 0.25s var(--ease); }
.nav-links li a:hover, .nav-links li a.active, .nav-links li a.current { background: transparent; color: var(--white); }
.nav-links li a:hover::after, .nav-links li a.active::after, .nav-links li a.current::after { transform: translateX(-50%) scale(1); }
.nav-cta { height: 40px; line-height: 40px; padding: 0 1.3rem; border-radius: 999px; background: var(--accent-lt); color: var(--navy); font-family: var(--sans); font-size: 0.84rem; font-weight: 700; letter-spacing: 0; text-transform: none; transition: transform 0.2s var(--ease), background 0.2s; }
.nav-cta::after { content: ' →'; }
.nav-cta:hover { background: var(--white); transform: translateY(-1px); }
.mobile-menu { background: var(--navy-dark); }
.mobile-menu a { font-size: 1.9rem; }
.mobile-menu-cta { border-radius: 999px; background: var(--accent-lt) !important; color: var(--navy) !important; font-family: var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; font-size: 1rem !important; font-weight: 700 !important; }

/* ── BUTTONS: pills with a sliding arrow ── */
.btn-primary, .btn-ghost, .btn-navy, .btn-submit, .book-cta, .contact-link, .text-link {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.btn-primary, .btn-ghost, .btn-navy, .btn-submit {
  border-radius: 999px;
  padding: 1rem 1.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.btn-primary { background: var(--accent-lt); border-color: var(--accent-lt); color: var(--navy); box-shadow: 0 10px 30px -12px rgba(184,243,107,0.55); }
.btn-primary::after, .btn-navy::after, .btn-submit::after { content: '→'; display: inline-block; margin-left: 0.55rem; transition: transform 0.25s var(--ease); }
.btn-primary:hover { background: var(--white); border-color: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn-primary:hover::after, .btn-navy:hover::after, .btn-submit:hover::after { transform: translateX(4px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.3); color: var(--white); font-weight: 600; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--brass); border-color: var(--brass); color: var(--white); transform: translateY(-2px); }
.btn-submit { background: var(--accent-lt); border-color: var(--accent-lt); color: var(--navy); }
.btn-submit:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

/* ── HEROES: soft accent glow + finer grid ── */
.hero, .page-hero { background: var(--navy); }
.hero::after, .page-hero::after {
  content: ''; position: absolute; pointer-events: none; z-index: 0;
  width: 60vw; height: 60vw; left: -18vw; top: -24vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,220,196,0.16) 0%, rgba(61,220,196,0) 62%);
}
.hero::before, .page-hero::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 75%);
}
.hero-right img, .page-hero .hero-right img { filter: contrast(1.05) saturate(0.95); }
.hero-right::before { background: linear-gradient(to right, var(--navy) 0%, rgba(11,26,38,0.2) 30%, transparent 55%), linear-gradient(to top, var(--navy) 0%, transparent 20%); }

/* ── STATS BAR ── */
.stats { border-top: 0; background: var(--off-white); }
.stat-number { font-size: 3.4rem; color: var(--navy); letter-spacing: -0.03em; }
.stat-label { font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); }

/* ── SECTIONS ── */
.section { padding: 7rem 0; }
.section.bg-light, .bg-light { background: var(--off-white); }
.section-sub { font-size: 1.05rem; color: var(--muted); }
.section.bg-navy { background: var(--navy); position: relative; }

/* ── CARDS: rounded, separated, lift on hover ── */
.services-grid, .track-grid, .testi-grid, .included { gap: 1rem; background: transparent; }
.service-card, .testimonial, .inc {
  border: 1px solid var(--border); border-top: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.25s;
}
.service-card:hover, .testimonial:hover, .inc:hover {
  transform: translateY(-4px); border-color: var(--brass); border-top-color: var(--brass);
  box-shadow: 0 24px 48px -28px rgba(11,26,38,0.35);
}
.service-num, .inc-num { color: var(--brass); font-size: 1rem; font-family: var(--mono); letter-spacing: 0.06em; }
.service-title, .inc h3 { font-size: 1.6rem; color: var(--navy); }
.testimonial { background: var(--white); }
.testi-mark { color: var(--brass); opacity: 0.9; font-size: 4.5rem; line-height: 0.6; margin-bottom: 1.4rem; }
.testi-name { font-size: 1.3rem; }

.track-item { border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.035); transition: transform 0.35s var(--ease), border-color 0.25s, background 0.25s; }
.track-item:hover { transform: translateY(-4px); border-color: var(--accent-tq); border-top-color: var(--accent-tq); background: rgba(255,255,255,0.06); }
.track-title { font-size: 1.5rem; }
.track-desc { color: rgba(255,255,255,0.62); }

.creds-row { gap: 1rem; background: transparent; }
.cred-item { border-left: 0; border: 1px solid var(--border); border-radius: var(--radius); position: relative; padding-left: 2.4rem; }
.cred-item::before { content: ''; position: absolute; left: 1.2rem; top: 1.95rem; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.cred-name { font-size: 1.3rem; }

/* ── CONTACT LINKS ── */
.contact-link { border-radius: 999px; font-size: 0.92rem; font-weight: 600; padding: 0.9rem 1.5rem; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s; }
.contact-link:hover { transform: translateY(-2px); }
.bg-light .contact-link { background: var(--white); }
.contact-alt { font-family: var(--mono); letter-spacing: 0.04em; font-size: 0.72rem; }

/* ── FORMS (My Story) ── */
.form-field label { font-family: var(--mono); letter-spacing: 0.06em; color: rgba(255,255,255,0.5); }
.form-field input, .form-field textarea { border-radius: var(--radius-sm); font-family: var(--sans); font-weight: 400; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent-tq); box-shadow: 0 0 0 3px rgba(61,220,196,0.22); }

/* ── MY STORY specifics ── */
.mission { border-top: 0; }
.mission-meta strong { font-size: 1.35rem; }
.story-block h3 { font-size: 2.1rem; line-height: 1.1; }
.story-block p, .vision-p { font-size: 1.02rem; line-height: 1.85; }
.sidebar-panel { border-radius: var(--radius); overflow: hidden; }
.side-photo { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.side-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 42%; display: block; }
.page-hero .hero-right::before { background: linear-gradient(to right, var(--navy) 0%, rgba(11,26,38,0.12) 16%, transparent 30%), linear-gradient(to top, var(--navy) 0%, transparent 16%); }
.panel-head { font-size: 1.3rem; padding: 1.1rem 1.4rem; }
.panel-body { border-radius: 0 0 var(--radius) var(--radius); background: var(--white); }
.panel-list li::before { width: 6px; height: 6px; }
.panel-quote { border-radius: var(--radius); }
.pillars { border-top: 0; display: grid; gap: 0.8rem; }
.pillar { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; background: var(--white); transition: transform 0.3s var(--ease), border-color 0.2s; }
.pillar:hover { transform: translateX(4px); border-color: var(--brass); }
.pillar-title { font-size: 1.45rem; }
.pillar-label { color: var(--brass); }

/* ── READING ── */
.affiliate-notice { border-top: 0; }
.filter-bar { background: color-mix(in srgb, var(--white) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.filter-inner { gap: 0.4rem; align-items: center; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.filter-btn { height: 36px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--border); font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.book-entry { border-bottom-color: var(--border); }
.book-cover-img, .book-cover-fallback { border-radius: 6px; box-shadow: 0 14px 30px -12px rgba(11,26,38,0.45); }
.book-title { font-size: 1.85rem; line-height: 1.08; }
.book-category-pill { border-radius: 999px; font-size: 0.62rem; padding: 0.22rem 0.65rem; }
.book-stars { color: var(--brass); }
.book-author-note { border-left: 3px solid var(--brass); border-radius: 2px; }
.book-cta { border-radius: 999px; padding: 0.7rem 1.3rem; font-size: 0.85rem; font-weight: 700; transition: background 0.2s, transform 0.25s var(--ease); }
.book-cta:hover { background: var(--brass); transform: translateY(-2px); }

/* ── WEB DESIGN page specifics ── */
.client-tag { border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.66rem; background: var(--navy); }
.client h3 { font-size: 2.4rem; line-height: 1.05; }
.client li::before { border-radius: 50%; transform: translateY(-50%); }
.text-link { font-size: 0.95rem; font-weight: 700; border-bottom-width: 2px; }
.concept h3 { font-size: 1.8rem; }
.concept .open { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0; text-transform: none; color: var(--accent-tq); }
.step::before { font-family: var(--mono); font-size: 0.85rem; color: var(--brass); }
.step h3 { font-size: 1.6rem; }
.frame { border-radius: 14px; }

/* ── FOOTER ── */
footer { background: var(--navy-dark); }
.footer-brand { font-size: 1.35rem; color: rgba(255,255,255,0.8); }
.footer-links a { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--accent-tq); }
.footer-credit { color: rgba(255,255,255,0.4); }
.footer-credit a { color: rgba(255,255,255,0.6); }

/* ── "Now building websites" band on the home page ── */
.wd-band { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.wd-band-inner { max-width: 1200px; margin: 0 auto; padding: 4.5rem 3rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.wd-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0.6rem 0 1rem; }
.wd-band p { color: rgba(255,255,255,0.68); font-size: 1.05rem; line-height: 1.7; max-width: 46ch; margin-bottom: 2rem; }
.wd-thumbs { position: relative; height: 300px; }
.wd-thumbs a { position: absolute; width: 62%; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); transition: transform 0.45s var(--ease); }
.wd-thumbs img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.wd-thumbs a:nth-child(1) { left: 0; top: 10%; transform: rotate(-5deg); }
.wd-thumbs a:nth-child(2) { right: 0; top: 0; transform: rotate(4deg); }
.wd-thumbs a:nth-child(3) { left: 20%; bottom: 0; transform: rotate(-1deg); z-index: 2; }
.wd-thumbs:hover a:nth-child(1) { transform: rotate(-8deg) translate(-12px, -4px); }
.wd-thumbs:hover a:nth-child(2) { transform: rotate(7deg) translate(12px, -8px); }
.wd-thumbs:hover a:nth-child(3) { transform: rotate(0) translateY(8px); }

@media (max-width: 960px) {
  .hero-right::before, .page-hero .hero-right::before { background: linear-gradient(to bottom, transparent 55%, var(--navy) 100%); }
  .hero .hero-right img { object-position: 50% 30%; }
  .nav-logo { font-size: 1.3rem; }
  .section { padding: 4.5rem 0; }
  .hero-name { font-size: 3.6rem; }
  .stat-number { font-size: 2.1rem; }
  .stat-label { font-size: 0.58rem; letter-spacing: 0.02em; }
  .services-grid, .track-grid, .testi-grid, .included, .creds-row { gap: 0.8rem; }
  .story-block h3 { font-size: 1.8rem; }
  .book-title { font-size: 1.4rem; }
  .client h3 { font-size: 2rem; }
  .wd-band-inner { grid-template-columns: 1fr; padding: 3.5rem 1.25rem; }
  .wd-thumbs { height: 230px; }
}
@media (max-width: 480px) {
  .hero-name { font-size: 3.1rem; }
  .stat-number { font-size: 1.7rem; }
  .book-title { font-size: 1.2rem; }
}
