/* =========================================================================
   cliveschwartz.com — shared styles
   Anton (name/logo) + Open Sans (everything else)
   Ink #0E0E0E · Nexus Red #D71920 · Nexus Orange #F5821F · Mist #F7F5F1
   ========================================================================= */

:root {
  --ink: #0e0e0e;
  --ink-2: #161616;
  --red: #d71920;
  --orange: #f5821f;
  --paper: #ffffff;
  --mist: #f7f5f1;
  --line: #ece9e4;
  --muted: #5b5852;
  --muted-2: #a3a099;
  --grad: linear-gradient(135deg, #d71920, #f5821f);
  --grad-wide: linear-gradient(110deg, #d71920 0%, #f5821f 100%);
  --maxw: 1200px;
  --pad: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
}
.eyebrow .rule { width: 34px; height: 2px; background: var(--red); display: inline-block; }
.eyebrow.on-dark { color: var(--orange); }

.display {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.0;
}

.accent { color: var(--orange); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---- pill / tag ---------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: #fff;
  background: var(--grad);
  padding: 8px 16px;
  border-radius: 7px;
}
.pill .x { font-family: "Anton", sans-serif; font-size: 18px; line-height: 1; font-weight: 400; }
.kicker { font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--muted-2); }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 16px;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 9px;
  cursor: pointer;
  border: none;
  transition: filter 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.btn-grad { color: #fff; background: var(--grad); }
.btn-grad:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--ink); background: transparent; border: 1.5px solid #cfcbc3; padding: 14.5px 28px; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark { color: #fff; border-color: #3a3a3a; }
.btn-ghost.on-dark:hover { border-color: #fff; }

/* ---- header / nav -------------------------------------------------------- */
.nav {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }
.nav-links a.nav-cta {
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--orange);
  padding: 11px 22px;
  border-radius: 8px;
}
.nav-links a.nav-cta:hover { background: var(--red); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; display: block; }
.nav-toggle span:last-child { background: var(--orange); }

/* ---- hero (light, split) ------------------------------------------------- */
.hero {
  background: var(--mist);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  /* Grow the panel taller on big screens so the portrait isn't squashed into a
     thin band (floor 560px, scales with viewport, capped so it never gets silly). */
  min-height: clamp(560px, 70vh, 820px);
}
.hero-copy { padding: 84px 56px 84px var(--pad); display: flex; flex-direction: column; justify-content: center; }
.hero-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.hero h1 { font-size: 56px; line-height: 1.02; margin: 0 0 24px; }
.hero p { color: var(--muted); font-size: 19px; line-height: 1.55; max-width: 50ch; margin: 0 0 36px; }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-media { position: relative; overflow: hidden; border-left: 1px solid #e0ddd6; background: #eceae5; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* On ultra-wide screens the panel is wide + short, so ease the crop higher to
   keep headroom and never clip the top of the head. */
@media (min-width: 1921px) { .hero-media img { object-position: 50% 22%; } }
.hero-media .edge { position: absolute; left: 0; top: 64px; width: 6px; height: 120px; background: linear-gradient(180deg, #d71920, #f5821f); z-index: 2; }

.hero-fulldark { background: var(--ink); }
.hero-fulldark .hero-copy { max-width: 920px; }
.hero-fulldark h1 { color: #fff; }
.hero-fulldark p { color: #c9c7c1; }

/* ---- topics strip -------------------------------------------------------- */
.topics { background: var(--grad-wide); display: flex; }
.topics div {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 15px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.22);
}
.topics div:last-child { border-right: 0; }

/* ---- generic section ----------------------------------------------------- */
.section { padding: 90px var(--pad); }
.section.dark { background: var(--ink); color: #fff; }
.section.mist { background: var(--mist); }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: 42px; }
.section.dark .section-head h2 { color: #fff; }
.section-head .eyebrow { margin-bottom: 12px; }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* welcome split */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.split h2 { font-size: 46px; }
.split .body { border-top: 2px solid var(--ink); padding-top: 30px; }
.split .body p { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0 0 22px; }
.split .body p:first-child { color: #33312d; font-size: 18px; }
.split .body p:last-child { margin-bottom: 0; }

/* ---- pillars / cards on dark --------------------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pcard { background: var(--ink-2); border: 1px solid #262626; border-radius: 16px; overflow: hidden; }
.pcard .bar { height: 5px; background: var(--grad-wide); }
.pcard .pad { padding: 34px 32px 36px; }
.pcard h3 { font-weight: 800; text-transform: uppercase; color: #fff; font-size: 26px; margin: 0 0 14px; }
.pcard p { color: #b6b4ae; font-size: 16px; line-height: 1.6; margin: 0; }

/* facets (light, on mist) */
.facet { border-top: 3px solid var(--orange); padding-top: 22px; }
.facet h3 { font-weight: 600; text-transform: uppercase; font-size: 22px; margin: 0 0 12px; }
.facet p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* focus area rows (dark) */
.farea { background: var(--ink-2); border: 1px solid #262626; border-radius: 14px; padding: 34px 36px; display: flex; gap: 24px; align-items: flex-start; }
.farea .num { font-family: "Anton", sans-serif; color: var(--orange); font-size: 38px; line-height: 1; min-width: 52px; }
.farea h3 { font-weight: 600; text-transform: uppercase; color: #fff; font-size: 23px; margin: 0 0 10px; }
.farea p { color: #b6b4ae; font-size: 16px; line-height: 1.6; margin: 0; }

/* ---- pull quote ---------------------------------------------------------- */
.quote { text-align: center; padding: 96px var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote .mark { font-family: "Anton", sans-serif; color: var(--orange); font-size: 72px; line-height: 0; height: 40px; }
.quote blockquote { font-weight: 700; text-transform: uppercase; font-size: 44px; line-height: 1.1; margin: 0 auto; max-width: 24ch; }
.quote cite { display: block; margin-top: 30px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; color: var(--muted-2); font-style: normal; }

/* ---- blog cards ---------------------------------------------------------- */
.blog-head { background: var(--mist); padding: 76px var(--pad) 68px; border-bottom: 1px solid var(--line); }
.blog-head h1 { font-size: 54px; line-height: 1.0; margin: 0 0 18px; max-width: 20ch; }
.blog-head p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 56ch; margin: 0; }
.blog-head .eyebrow { margin-bottom: 22px; }

.featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid #eae8e3;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.18s ease;
}
.featured:hover { box-shadow: 0 18px 44px rgba(0,0,0,0.1); }
.featured .media { position: relative; min-height: 360px; background: repeating-linear-gradient(135deg,#efedea 0 15px,#e7e4df 15px 30px); }
.featured .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.featured .body { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; }
.featured h2 { font-weight: 800; text-transform: uppercase; font-size: 38px; line-height: 1.02; margin: 0 0 18px; }
.featured .body p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 0 26px; }
.featured .meta-row { display: flex; align-items: center; gap: 16px; }

.tag-cat { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: #fff; background: var(--ink); padding: 5px 11px; border-radius: 5px; }
.tag-cat.featured-tag { font-size: 12px; background: var(--orange); padding: 7px 14px; border-radius: 6px; }
.read { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; color: var(--orange); }
.meta { font-weight: 600; font-size: 13px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.bcard { text-decoration: none; display: block; background: #fff; border: 1px solid #eae8e3; border-radius: 14px; overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.bcard:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.12); }
.bcard .media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: repeating-linear-gradient(135deg,#efedea 0 13px,#e7e4df 13px 26px); }
.bcard .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.bcard .media .tag-cat { position: absolute; left: 14px; bottom: 14px; }
.bcard .pad { padding: 24px 24px 26px; }
.bcard h3 { font-weight: 600; text-transform: uppercase; font-size: 20px; line-height: 1.1; margin: 0 0 12px; }
.bcard p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }

/* filter chips */
.filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 28px; }
.filter .label { font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; color: var(--muted-2); margin-right: 6px; }
.chip { padding: 9px 18px; border-radius: 999px; font: 600 13px "Open Sans", sans-serif; letter-spacing: 0.02em; cursor: pointer; border: 1px solid #e0dfdb; background: #fff; color: #555; transition: all 0.15s ease; }
.chip:hover { border-color: #b8b5ad; }
.chip.active { border-color: #111; background: #111; color: #fff; }

/* "Latest" header row on home */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 22px; margin-bottom: 44px; gap: 24px; flex-wrap: wrap; }
.head-row h2 { font-size: 40px; }
.head-row .view-all { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; }
.head-row .view-all:hover { color: var(--orange); }

.bcard.has-photo .media .placeholder, .bcard .media img:not([src]) { display: none; }

/* loading / empty state */
.feed-state { padding: 40px 0; color: var(--muted-2); font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- follow / CTA bands -------------------------------------------------- */
.band { padding: 90px var(--pad); }
.band.follow { background: var(--mist); }
.socials { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.social-card { background: #fff; border: 1px solid #e6e3de; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; }
.social-card.dark { background: var(--ink); }
.social-card .ic { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.social-head { display: flex; align-items: center; gap: 14px; }
.social-head .name { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 20px; }
.social-card.dark .social-head .name { color: #fff; }
.social-card .lede { color: #b6b4ae; font-size: 15px; margin-bottom: 18px; }
.social-link { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; text-decoration: none; color: var(--orange); }

.cta-band { background: var(--grad-wide); padding: 72px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-weight: 800; text-transform: uppercase; color: #fff; font-size: 46px; line-height: 0.98; margin: 0; max-width: 18ch; }
.cta-band .btn { background: #fff; color: var(--orange); }
.cta-band .btn:hover { background: var(--ink); color: #fff; filter: none; }

.followband { background: var(--ink); padding: 72px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.followband h2 { font-weight: 800; text-transform: uppercase; color: #fff; font-size: 42px; line-height: 1; margin: 0; max-width: 20ch; }

/* ---- contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: start; padding: 60px var(--pad) 70px; }
.form { display: flex; flex-direction: column; gap: 22px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; }
.form .lab { display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: #8a8782; margin-bottom: 9px; }
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd9d2;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.form input:focus, .form textarea:focus { border-color: var(--orange); }
.form .btn { align-self: flex-start; }
.form-error { color: var(--red); font-size: 14px; font-weight: 600; margin: -6px 0 0; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }
.form-success { background: var(--mist); border: 1px solid #e6e3de; border-radius: 18px; padding: 56px 44px; text-align: center; }
.form-success .check { width: 58px; height: 58px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; color: #fff; font-size: 26px; }
.form-success h3 { font-weight: 800; text-transform: uppercase; font-size: 26px; margin: 0 0 12px; }
.form-success p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 auto; max-width: 38ch; }
.hidden { display: none; }

.details { background: var(--ink); border-radius: 18px; padding: 40px 36px; }
.details .lab { font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: #7e7c76; margin-bottom: 10px; }
.details a.email { font-size: 17px; color: #fff; text-decoration: none; }
.details a.email:hover { color: var(--orange); }
.details hr { border: 0; height: 1px; background: #262626; margin: 28px 0; }
.details .row { display: flex; gap: 10px; margin-bottom: 28px; }
.details .row a { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #333; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; text-decoration: none; transition: all 0.15s ease; }
.details .row a:hover { background: var(--orange); border-color: var(--orange); }
.details p { color: #b6b4ae; font-size: 15px; line-height: 1.6; margin: 0 0 24px; }

/* ---- footer -------------------------------------------------------------- */
.footer { background: var(--ink); padding: 72px var(--pad) 40px; }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid #262626; padding-bottom: 44px; margin-bottom: 30px; flex-wrap: wrap; gap: 24px; }
.footer-top h2 { font-weight: 800; text-transform: uppercase; color: #fff; font-size: 64px; line-height: 0.9; margin: 0 0 16px; }
.footer-top a.email { font-size: 18px; color: #c9c7c1; text-decoration: none; }
.footer-top a.email:hover { color: var(--orange); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 46px; height: 46px; border-radius: 10px; border: 1px solid #333; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; text-decoration: none; transition: all 0.15s ease; }
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; color: #9a988f; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: 13px; color: #6f6d67; }
.footer.compact { padding: 40px var(--pad); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer.compact img { height: 40px; width: auto; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  :root { --pad: 40px; }
  .hero h1 { font-size: 46px; }
  .footer-top h2 { font-size: 52px; }
  .split { gap: 48px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 40px 24px;
    border-top: 1px solid #262626;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; width: 100%; }
  .nav-links a.nav-cta { margin-top: 10px; padding: 12px 22px; width: auto; }
  .nav-toggle { display: flex; }

  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 56px 40px; }
  .hero-media { min-height: 360px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }

  .topics { flex-wrap: wrap; }
  .topics div { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,0.22); }

  .split { grid-template-columns: 1fr; gap: 24px; }
  .split .body { border-top: 0; padding-top: 0; }
  .cards-3, .cards-2, .cards-4, .grid-3 { grid-template-columns: 1fr; }
  .facet { border-top-width: 3px; }

  .featured { grid-template-columns: 1fr; }
  .featured .media { min-height: 240px; }
  .featured .body { padding: 36px 28px; }
  .featured h2 { font-size: 30px; }

  .socials { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .section { padding: 60px 40px; }
  .quote { padding: 64px 40px; }
  .quote blockquote { font-size: 32px; }
  .section-head h2, .head-row h2 { font-size: 30px; }
  .split h2 { font-size: 34px; }
  .blog-head h1 { font-size: 38px; }
  .footer-top h2 { font-size: 40px; }
  .cta-band h2 { font-size: 32px; }
  .followband h2 { font-size: 30px; }

  .footer.compact { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --pad: 22px; }
  .hero h1 { font-size: 34px; }
  .form .two { grid-template-columns: 1fr; }
  .nav-logo img { height: 38px; }
}

/* =========================================================================
   Prose — generic CMS-created pages (layouts/page.njk)
   ========================================================================= */
.page-prose { padding-top: 56px; }
.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.005em; margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 22px; font-weight: 700; margin: 1.4em 0 0.4em; }
.prose p,
.prose ul,
.prose ol { color: var(--muted); font-size: 18px; line-height: 1.7; margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--orange); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--orange);
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.2em;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}
.prose img { border-radius: 12px; margin: 1.5em 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
