/* Caroline Bush (umbrella) with The Cherry Edit as a themed sub-brand.
   Colours come from the brand kit: oxblood and ivory from the CB monogram, cherry and blush from
   The Cherry Edit's pin templates. The umbrella is the quieter, neutral version; add
   class="theme-cherry" to a page's <body> (page key "theme": "cherry") or to any element to
   switch it to The Cherry Edit palette.
   System fonts only: no third-party font requests, so visitors' browsers talk to our host alone. */
:root {
  --oxblood: #6b1e24;
  --cherry: #c43a3f;
  --blush: #f9e3e1;
  --petal: #f2b8bb;
  --ivory: #faf6ef;
  --sand: #f2ebe1;
  --cream: #fbf6ec;

  /* umbrella theme */
  --bg: var(--ivory);
  --surface: var(--sand);
  --ink: #2a1f20;
  --muted: #6c5f5c;
  --line: #e4d9ce;
  --accent: var(--oxblood);
  --accent-soft: #9a4a52;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  --wide: 72rem;
  --gutter: clamp(1rem, 5vw, 3rem);
}
.theme-cherry {
  --bg: var(--cream);
  --surface: var(--blush);
  --ink: #2b1a1b;
  --muted: #6e5a58;
  --line: #e6d3cf;
  --accent: var(--oxblood);
  --accent-soft: var(--cherry);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-soft); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--accent); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.35rem; }
em { font-style: italic; color: var(--accent-soft); }
code { font-size: 0.9em; background: var(--surface); padding: 0.05em 0.35em; border-radius: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 1rem; z-index: 10; }

.kicker {
  font: 600 0.75rem/1.2 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 1rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }

/* header */
.site-header {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.wordmark img { height: 3.25rem; width: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-header nav a {
  font: 500 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: 0.4rem 0; border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* sections */
main > section { padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.hero { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; }
.hero h1 { max-width: 16ch; }
.hero-sub { font: italic 400 clamp(1.35rem, 3vw, 1.9rem)/1.3 var(--serif); color: var(--ink); margin: 0 0 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 2rem; }
.button {
  display: inline-block; background: var(--accent); color: var(--cream);
  font: 600 0.8rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1rem 1.6rem; border-radius: 999px; text-decoration: none;
}
.button:hover { background: var(--accent-soft); color: var(--cream); }
.text-link { font-weight: 500; }
.section-head { max-width: var(--wide); margin: 0 auto 2.5rem; }

/* home */
.hero-home { padding-top: clamp(4rem, 12vw, 8rem) !important; padding-bottom: clamp(4rem, 10vw, 7rem) !important; }
.hero-home h1 { font-size: clamp(3.2rem, 10vw, 6.75rem); margin-bottom: 0.2em; }
.hero-home h1::after { content: "\2726"; font-size: 0.32em; color: var(--petal); vertical-align: super; margin-left: 0.15em; }

.brands { background: var(--surface); }
.brand-cards {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem;
}
.brand-card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.brand-card.theme-cherry { background: var(--blush); border-color: #efc9c5; }
.brand-card-label { font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem; }
.brand-card h3 { margin-bottom: 1rem; }
.brand-card-logo { width: min(100%, 20rem); }
.brand-card-title { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; }
.brand-card p { color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 0.5rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  font: 500 0.75rem/1 var(--sans); letter-spacing: 0.06em;
  padding: 0.45rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--bg);
}
.theme-cherry .tags li { border-color: #efc9c5; background: var(--cream); }
.status { font: italic 400 1.1rem/1.4 var(--serif); color: var(--accent) !important; margin: 0 0 1.5rem; }
.card-link { margin: auto 0 0; font-weight: 600; }
.card-link a { text-decoration: none; }
.card-link a:hover { text-decoration: underline; }

.future-inner { max-width: 52rem; margin: 0 auto; text-align: center; }
.future-inner > p { color: var(--muted); max-width: 56ch; margin: 0 auto; }
.lineage {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; counter-reset: none;
}
.lineage li {
  position: relative; padding: 1rem 0.75rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.lineage li + li::before {
  content: "\2192"; position: absolute; left: -0.7rem; top: 50%; transform: translate(-50%, -50%);
  color: var(--accent-soft); font-size: 0.9rem;
}
.lineage span { font: 400 1.15rem/1.2 var(--serif); color: var(--accent); }
.lineage small { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lineage li:first-child { background: var(--accent); border-color: var(--accent); }
.lineage li:first-child span, .lineage li:first-child small { color: var(--cream); }
.lineage-next { border-style: dashed !important; background: transparent !important; }

.contact-band { background: var(--accent); color: var(--cream); text-align: center; }
.contact-band h2 { color: var(--cream); }
.contact-band a { color: var(--cream); }
.contact-band a:hover { color: var(--petal); }

/* The Cherry Edit */
.brand-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.brand-hero-logo { margin: 0; }
.brand-hero-logo img { width: min(100%, 26rem); margin-left: auto; }
.edits { background: var(--surface); }
.edit-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--wide);
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 2rem;
  border-top: 1px solid var(--accent);
}
.edit-list li { padding: 1.75rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); }
.edit-list .num { font: italic 400 1rem/1 var(--serif); color: var(--accent-soft); }
.edit-list h3 { margin-top: 0.75rem; font-size: 1.7rem; }
.edit-list p { margin: 0; color: var(--muted); }

.approach-grid {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2.5rem;
}
.approach-grid p { color: var(--muted); margin: 0; }

.split { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 1rem 3rem; align-items: start; }
.split p { margin-top: 0; }
.pinterest-band { background: var(--accent); color: var(--cream); }
.pinterest-band h2, .pinterest-band a, .pinterest-band .kicker { color: var(--cream); }
.pinterest-band .kicker { opacity: 0.8; }
.disclosure-band { color: var(--muted); }
.disclosure-band h2 { font-size: 1.5rem; }
.parent-band { text-align: center; border-top: 1px solid var(--line); padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.parent-band p { margin: 0; font: italic 400 1.15rem/1.5 var(--serif); }

/* Tech UGC */
.focus { background: var(--surface); }
.focus-grid {
  list-style: none; padding: 0; margin: 0 auto; max-width: var(--wide);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem;
}
.focus-grid li { border-top: 1px solid var(--accent); padding: 1.25rem 0 1.5rem; }
.focus-grid h3 { margin-bottom: 0.35rem; }
.focus-grid p { margin: 0; color: var(--muted); }
.portfolio { border-top: 1px solid var(--line); }
.portfolio h2 { font-style: italic; }

/* inner pages */
.page-head { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding-bottom: 1rem !important; }
.prose { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem); }
.prose h2 { margin-top: 2.75rem; font-size: 1.75rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.3rem; }
.prose li { margin: 0.35rem 0; }
.toc { background: var(--surface); padding: 1.25rem 1.5rem; border-radius: 4px; }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2 14rem; }
.toc li { margin: 0 0 0.35rem; break-inside: avoid; }
.contact-grid { display: grid; gap: 1rem; }
.big-link { font: 400 clamp(1.3rem, 3vw, 1.75rem)/1.3 var(--serif); word-break: break-word; }

.about-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.about-brand {
  display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem 1.4rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  color: var(--muted); text-decoration: none;
}
.about-brand:hover { border-color: var(--accent); color: var(--muted); }
.about-brand-name { font: 400 1.4rem/1.2 var(--serif); color: var(--accent); }
.about-cta { margin-top: 2.5rem; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 3rem var(--gutter) 2rem;
  color: var(--muted); font-size: 0.9rem; background: var(--bg);
}
.footer-grid {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 2rem;
}
.footer-grid p { margin: 0 0 0.5rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.footer-mark { font: 400 1.4rem/1.1 var(--serif); color: var(--accent); }
.footer-label { font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.disclosure { max-width: var(--wide); margin: 2.5rem auto 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.copyright { max-width: var(--wide); margin: 0 auto; }

/* draft-only helpers (never present in a production build) */
.draft-banner { background: #fff3c4; color: #5a4300; text-align: center; font-size: 0.85rem; padding: 0.5rem 1rem; }
.review {
  display: block; max-width: var(--measure); margin: 1rem auto; padding: 0.9rem 1.1rem;
  background: #fff3c4; border-left: 4px solid #d9a400; color: #5a4300; font-size: 0.9rem;
}
main > .review { margin: 0 auto 2rem; width: calc(100% - 2 * var(--gutter)); }
.todo { background: #fff3c4; color: #7a5a00; padding: 0 0.25em; border-radius: 2px; }

@media (max-width: 48rem) {
  .brand-hero, .split { grid-template-columns: 1fr; }
  .brand-hero-logo { order: -1; }
  .brand-hero-logo img { width: min(70%, 18rem); margin: 0; }
  .lineage { grid-template-columns: 1fr; max-width: 20rem; margin-inline: auto; gap: 1.25rem; }
  .lineage li + li::before { content: "\2193"; left: 50%; top: -0.65rem; }
  .edit-list, .focus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 40rem) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .wordmark img { height: 2.75rem; }
  .site-header nav { gap: 0.5rem 0.9rem; }
  .site-header nav a { font-size: 0.7rem; letter-spacing: 0.08em; }
  .edit-list, .focus-grid { grid-template-columns: 1fr; }
  .edit-list li { padding-right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  a, .button { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
}
