/* ==========================================================================
   Plum Couch Hospitality — official brand tokens, taken directly from the
   brand board: Couch Orange, Plum, Vintage Yellow, Paper. Roles below were
   chosen by checking real contrast ratios, not by eye: orange and vintage
   yellow are vivid enough to read as backgrounds/borders/large display type,
   but too light-on-paper to use as small body text, so plum carries all
   body and label text, and orange/yellow stay in backgrounds, buttons, and
   decorative accents. Nothing else in this file should need to change to
   adjust the palette further.
   ========================================================================== */
:root {
  --color-bg: #f6efe2;        /* lightened from the official "Paper" swatch, per your note it read too dark */
  --color-bg-alt: #ecdfc4;
  --color-surface: #fbf7ee;
  --color-border: #ddc9a3;
  --color-text: #3b1d24;      /* "Plum", official — carries all body/label text for contrast */
  --color-text-muted: #6e4a52;
  --color-accent: #d07a16;    /* "Couch Orange", official — backgrounds, buttons, borders only */
  --color-accent-hover: #b3660f;
  --color-on-accent: #f6efe2; /* paper, for text on top of the plum footer */
  --color-ink-bg: #3b1d24;    /* "Plum", used as the dark footer background */
  --color-accent-plum: #3b1d24;
  --color-vintage-yellow: #d6b35a; /* decorative accent + text-on-dark only (fails on paper) */
  --color-header-bg: #3b1d24; /* back to the official plum — the contrast problem was the couch mark, not the background, and the cream plane-and-smoke mark reads fine at full depth */
  --font-display: 'Boogaloo', 'Georgia', serif;      /* the retro display headline font */
  --font-serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1080px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--color-bg);
  /* A faint paper-grain texture, generated inline with no external image,
     to nod at the aged, kraft-paper feel of the matchbook without turning
     the whole page into a distressed texture. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--color-accent-hover); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / nav ----
   A lighter tint of the official plum, every page — deep enough to stay in
   the brand's purple family (not washed out to paper), light enough that
   the cream plane-and-smoke mark reads clearly against it. A faint grain
   nods at the matchbook/quote-card poster treatment without going full
   burnt-orange site-wide. */
header.site-header {
  background-color: var(--color-header-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  height: 30px;
  width: auto;
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

/* Nav sits on the lighter-plum header — paper-on-#725c61 checks at 4.7+:1,
   clears AA. */
nav.primary-nav a {
  color: var(--color-on-accent);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.8;
  font-size: 0.95rem;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-on-accent);
  color: var(--color-on-accent);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 1rem;
}

@media (max-width: 720px) {
  nav.primary-nav {
    display: none;
    width: 100%;
  }
  nav.primary-nav.open { display: block; }
  nav.primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 16px 0 8px;
  }
  nav.primary-nav li { padding: 10px 0; border-top: 1px solid var(--color-border); }
  .site-header .wrap { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .brand-mark { height: 22px; }
}

/* ---- Hero ---- */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-content { flex: 1 1 520px; min-width: 0; }

.hero-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 340px;
  max-width: 100%;
}

.hero-visual img.is-compact {
  width: 240px;
}

.hero-visual img.is-photo {
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(59, 29, 36, 0.3);
  transform: rotate(-2deg);
}

@media (max-width: 860px) {
  .hero-grid { flex-direction: column-reverse; gap: 32px; }
  .hero-visual img { width: 260px; }
}

.section-heading-row {
  margin-bottom: 48px;
}
.section-heading-row .section-heading,
.section-heading-row .section-sub { margin-bottom: 0; }
.section-heading-row .section-sub { margin-top: 12px; max-width: 62ch; }

.section-title-icon {
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-title-icon .section-heading { margin: 0; }

.section-emblem {
  width: 104px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.95;
}
@media (max-width: 480px) {
  .section-emblem { width: 64px; }
}

.matchbook-pair {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.matchbook-pair img {
  width: 220px;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(59, 29, 36, 0.22);
}
.matchbook-pair img:first-child { transform: rotate(-2deg); }
.matchbook-pair img:last-child { transform: rotate(2deg); }

.hero .eyebrow {
  color: var(--color-accent-plum);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 24px;
  max-width: 20ch;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 0 32px;
}

.button-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
}

/* Plum text on the orange button, not paper — checked at 4.67:1, paper
   on this orange only manages 2.39:1. */
.btn-primary {
  background: var(--color-accent);
  color: var(--color-text);
}
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-text); }

.btn-secondary {
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-text); background: var(--color-surface); }

/* ---- Sections ---- */
section { padding: 72px 0; border-bottom: 1px solid var(--color-border); }
section:last-of-type { border-bottom: none; }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.section-sub {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 0 48px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.card p { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.stat { text-align: left; }
.stat .num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--color-text);
  display: block;
  border-bottom: 3px solid var(--color-vintage-yellow);
  padding-bottom: 4px;
  margin-bottom: 8px;
}
.stat .label { color: var(--color-text-muted); font-size: 0.9rem; }

blockquote.pull {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.5;
  border-left: 4px solid var(--color-vintage-yellow);
  padding-left: 24px;
  margin: 0;
  color: var(--color-text);
}

/* ---- Post/case-study index list ---- */
.grid-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.grid-quotes img {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(59, 29, 36, 0.18);
}
@media (max-width: 860px) {
  .grid-quotes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-quotes { grid-template-columns: 1fr; gap: 20px; }
}

.principle-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  counter-reset: principle;
}
.principle-list li.principle-item {
  counter-increment: principle;
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
}
.principle-list li.principle-item:last-child { border-bottom: 1px solid var(--color-border); }
.principle-list li.principle-item::before {
  content: counter(principle);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-accent);
  flex-shrink: 0;
  width: 28px;
}
.principle-list .principle-text { color: var(--color-text); }
.principle-list .principle-text strong { display: block; margin-bottom: 2px; }
.principle-list .principle-text span { color: var(--color-text-muted); font-size: 0.95rem; }

/* A single quote card, dropped in as a breather between principle items —
   not a gallery, just an occasional accent. Alternating rotation gives it
   the same scrapbook/matchbook feel as the pair on the homepage. */
.principle-list li.principle-accent {
  list-style: none;
  padding: 36px 0;
  text-align: center;
}
.principle-accent img {
  width: 300px;
  max-width: 80%;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(59, 29, 36, 0.22);
  transform: rotate(-1.5deg);
}
.principle-list li.principle-accent:nth-of-type(even) img { transform: rotate(1.5deg); }

.role-entry {
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
}
.role-entry:last-child { border-bottom: 1px solid var(--color-border); }
.role-entry .role-title { font-family: var(--font-serif); font-size: 1.25rem; margin: 0 0 4px; }
.role-entry .role-meta {
  color: var(--color-accent-hover);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.role-entry p { margin: 0; color: var(--color-text-muted); }

/* Role entries with a pulled-out headline figure (Work page, "Programs built and run") */
.role-entry-figured {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.role-figure {
  flex: 0 0 104px;
}
.role-figure .num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-text);
  display: block;
  border-bottom: 3px solid var(--color-vintage-yellow);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.role-figure .label {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}
.role-entry-figured .role-body { flex: 1 1 auto; min-width: 0; }
@media (max-width: 600px) {
  .role-entry-figured { flex-direction: column; gap: 10px; }
  .role-figure { flex-basis: auto; }
}

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}
.post-list li:first-child { padding-top: 0; }
.post-list a.post-title {
  color: var(--color-text);
  font-size: 1.2rem;
  font-family: var(--font-serif);
}
.post-list .post-meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ---- Insights index: blog-style cards ---- */
.post-card-list { list-style: none; margin: 0; padding: 0; }
.post-card {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}
.post-card:first-child { padding-top: 0; }
.post-card-thumb {
  flex: 0 0 220px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(59, 29, 36, 0.18);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card-thumb.is-placeholder {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  box-shadow: none;
}
.post-card-body { flex: 1 1 auto; min-width: 0; }
.post-card-meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.post-card-title {
  display: block;
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 10px;
}
.post-card-excerpt { color: var(--color-text-muted); margin: 0; }
@media (max-width: 640px) {
  .post-card { flex-direction: column; gap: 16px; }
  .post-card-thumb { flex-basis: auto; width: 100%; }
}

/* Mobile spacing pass: more breathing room between repeating text blocks
   and a clean single-column stack for the stat row, so the same copy reads
   lighter on a narrow screen without cutting a word. */
@media (max-width: 640px) {
  .role-entry { padding: 32px 0; }
  .principle-list li.principle-item { padding: 26px 0; gap: 14px; }
  .stat-row { grid-template-columns: 1fr; gap: 32px; }
  .stat .num { font-size: 2rem; }
  .section-title-icon { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-title-icon .section-emblem { width: 130px; }
}

/* ---- Hero emblem: standalone crest above a hero H1 ---- */
.hero-emblem {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
  opacity: 0.95;
}

/* ---- Swipeable image carousel (Instagram-deck style posts) ---- */
.carousel {
  max-width: 420px;
  margin: 0 auto 16px;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(59, 29, 36, 0.25);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  display: block;
}
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.carousel-btn:hover {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
}
.carousel-counter {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  min-width: 52px;
  text-align: center;
}
.carousel-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 10px 0 0;
}
@media (min-width: 640px) {
  .carousel-hint { display: none; }
}

/* ---- Embedded YouTube video (podcast episodes) ---- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(59, 29, 36, 0.22);
  margin: 0 0 32px;
  background: var(--color-ink-bg);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.placeholder-note {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---- Contact / form ---- */
form.contact-form { display: grid; gap: 18px; max-width: 560px; }
form.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.calendly-embed {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 700px;
}

/* ---- Footer ----
   Dark ink background, the same tone the matchbook itself was photographed
   against, as a deliberate bookend to the orange header. */
footer.site-footer {
  padding: 40px 0;
  background: var(--color-ink-bg);
  color: #cdb193;
  font-size: 0.85rem;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-mark {
  height: 16px;
  width: auto;
  opacity: 0.85;
}
footer.site-footer a { color: var(--color-on-accent); text-decoration-color: var(--color-vintage-yellow); }
footer.site-footer a:hover { color: var(--color-vintage-yellow); text-decoration-color: var(--color-vintage-yellow); }
