/* ==========================================================================
   Vanessa Barron: portfolio styles
   Shared by index.html and email-sms-campaigns.html
   Sections: 1 colors, 2 base, 3 top bar, 4 home page, 5 project pages, 6 small screens
   ========================================================================== */

/* 1. Colors ------------------------------------------------------------- */
:root {
  --bg: #efeee8;       /* page background */
  --band: #e3e2d9;     /* alternating section background, skill pills */
  --ink: #1d2a22;      /* main text */
  --muted: #5a6159;    /* secondary text */
  --line: #cccabd;     /* borders and dividers */
  --accent: #2c4a37;   /* dark green accent */
  --photo: #c8c6b8;    /* color behind photos while they load */
  --cta: #2c4a37;      /* dark green behind the Resume button (same as --accent) */
  --cta-ink: #ffffff;  /* Resume button text */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171c18;
    --band: #1f261f;
    --ink: #efeee8;
    --muted: #a8aca2;
    --line: #3a443a;
    --accent: #9cc4a4;
    --photo: #3a463b;
    --cta: #263a2b;
    --cta-ink: #9cc4a4;
  }
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 20; padding: 8px 12px; background: var(--bg); }

.wrap { max-width: 1000px; margin: 0 auto; }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 24px; }
.band { background: var(--band); }
.section-title { margin-bottom: 40px; text-align: center; font-size: 2.75rem; }

.site-footer { padding: 28px 24px; text-align: center; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; }

/* 3. Top bar ------------------------------------------------------------ */
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1000px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
/* The VB logo is a shape (images/logo-mask.png) filled with the accent color, so it adapts to dark mode. */
.logo {
  display: block; width: 59px; height: 40px;
  background: var(--accent);
  -webkit-mask: url("../images/logo-mask.png") center / contain no-repeat;
          mask: url("../images/logo-mask.png") center / contain no-repeat;
}
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a { padding: 6px 0; color: var(--ink); font-size: 0.95rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.nav nav a:hover { border-bottom-color: var(--accent); }

/* 4. Home page ---------------------------------------------------------- */
/* Hero: photo fills the box, text sits in the sky. */
.hero { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--photo); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-text { position: absolute; top: 0; right: 0; width: 46%; padding: 30px 36px 0 0; text-align: right; color: #1d2a22; }
.hero h1 { margin-bottom: 10px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.hero p { margin: 0 0 0 auto; font-size: clamp(0.78rem, 1.2vw, 0.9rem); line-height: 1.5; }
.hero p + p { margin-top: 10px; }
.hero-text a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Project groups and cards */
.group { margin-bottom: 44px; }
#marketing { margin-bottom: 72px; }
.group:last-child { margin-bottom: 0; }
.group-title { margin-bottom: 18px; padding-bottom: 8px; font-size: 1.6rem; border-bottom: 2px solid var(--line); }
#marketing .group-title, #writing .group-title { font-size: 2.1rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 32px; }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); border-radius: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 10px 28px rgba(29, 42, 34, 0.14); transform: translateY(-3px); }
.card .thumb { position: relative; overflow: hidden; aspect-ratio: 5 / 2; }
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card h3 { margin: 0 0 8px; padding: 26px 24px 0; font-size: 1.3rem; line-height: 1.25; }
.card p { margin: 0; padding: 0 24px; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.card .more { margin-top: auto; padding: 22px 24px 26px; font-size: 0.95rem; font-weight: 700; text-decoration: none; }
.card .more::after { content: ""; position: absolute; inset: 0; }  /* makes the whole card clickable */
.card .more:focus-visible { outline-offset: -3px; }
.card .soon { margin-top: auto; padding: 22px 24px 26px; color: var(--muted); font-size: 0.9rem; }

/* Resume section */
.resume .row { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 6px 32px; padding: 20px 0; }
.resume .when { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding-top: 4px; color: var(--muted); font-size: 0.9rem; }
.resume .role { margin: 0; font-size: 1.15rem; }
.resume .org { margin: 2px 0 10px; color: var(--muted); font-size: 0.95rem; }
.resume ul { margin: 0; padding-left: 18px; }
.resume li { margin-bottom: 6px; }
.resume .inline-list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; line-height: 1.8; }
.resume .inline-list li { margin: 0; }
.resume .inline-list li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--muted); }
.resume .row:has(.inline-list) { padding: 14px 0; }
.resume .row:has(.inline-list) .when { padding-top: 2px; }
.resume .chip-label { margin: 22px 0 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.resume .chip-label + .chips { padding-top: 10px; }
.resume .chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0 0; list-style: none; }
.resume .chips li { margin: 0; padding: 8px 16px; font-size: 0.95rem; background: var(--band); border: 1px solid var(--line); border-radius: 999px; }
.resume-cta { display: block; margin-top: 18px; padding: 26px 24px; font-size: 1.4rem; font-weight: 700; text-align: center; text-decoration: none; color: var(--cta-ink); background: var(--cta); border: 1px solid var(--line); border-radius: 6px; }
.resume-cta:hover { border-color: var(--accent); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.contact .icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 12px; color: var(--accent); background: var(--bg); border-radius: 50%; }
.ico { display: block; background: var(--accent); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.ico-phone { -webkit-mask-image: url("../images/icon-phone.png"); mask-image: url("../images/icon-phone.png"); }
.ico-email { -webkit-mask-image: url("../images/icon-email.png"); mask-image: url("../images/icon-email.png"); }
.ico-linkedin { -webkit-mask-image: url("../images/icon-linkedin.png"); mask-image: url("../images/icon-linkedin.png"); }
.ico-work { -webkit-mask-image: url("../images/icon-work.png"); mask-image: url("../images/icon-work.png"); }
.ico-education { -webkit-mask-image: url("../images/icon-education.png"); mask-image: url("../images/icon-education.png"); }
.contact .ico { width: 48px; height: 48px; }
.resume .row-ico-right { position: absolute; right: 0; bottom: 22px; }
.resume .row-ico { width: 88px; height: 88px; margin-bottom: 2px; }
.resume li { position: relative; }
.resume .row-ico-left { position: absolute; left: -250px; top: 50%; transform: translateY(-50%); margin: 0; }
.contact p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.contact b { display: block; color: var(--ink); }
.contact a { font-weight: 700; }

/* 5. Project pages ------------------------------------------------------ */
.crumb { display: inline-block; margin-bottom: 22px; font-weight: 700; text-decoration: none; }
.crumb:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-head { padding: 56px 0 28px; }
.page-head h1 { font-size: 2.75rem; }
.lede { margin: 24px 0 40px; color: var(--muted); font-size: 1.1rem; }
/* Project facts box (role, company, timeline, tools) */
.facts { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 16px 32px; margin: 0 0 8px; padding: 20px 24px; background: var(--band); border-radius: 6px; }
.facts div { min-width: 0; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; }
.page-hero { display: block; width: 100%; height: auto; border-radius: 6px; }

.entry { padding: 48px 0; border-top: 1px solid var(--line); }
.entry h2 { margin-bottom: 24px; font-size: 2rem; }
.entry h3 { margin: 30px 0 6px; font-size: 1.2rem; }
.entry p { margin: 0; }
.entry p + p { margin-top: 14px; }
.entry .sub { margin: -12px 0 8px; color: var(--muted); font-size: 1.05rem; }
.entry ul { margin: 12px 0 0; padding-left: 20px; }
.entry li { margin-bottom: 8px; }
.entry p + ul, .entry ul + p { margin-top: 16px; }

/* Screenshot rows: .c3 = three across, .c2 = two across */
.shots { display: grid; gap: 14px; margin: 28px 0 0; }
.shots + .shots { margin-top: 14px; }
.shots.c3 { grid-template-columns: repeat(3, 1fr); }
.shots.c2 { grid-template-columns: repeat(2, 1fr); }
.shots.c1 { grid-template-columns: 1fr; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
/* Dashed box that stands in for a picture until you add one */
.shot .placeholder { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 12px; color: var(--muted); font-size: 0.9rem; text-align: center; background: var(--band); border: 1px dashed var(--line); border-radius: 6px; }
/* Project facts (role, company, timeline, tools) */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin: 0 0 40px; }
.lede + .facts { margin-top: -16px; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; }
.read-link { display: inline-block; margin-top: 16px; font-weight: 700; }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 0.85rem; text-align: center; }
.foot-link { padding: 36px 0 64px; border-top: 1px solid var(--line); }
.foot-link .crumb { margin: 0; }

/* 6. Small screens ------------------------------------------------------ */
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; aspect-ratio: auto; }
  .hero > img { position: static; height: auto; aspect-ratio: 3 / 2; }
  .hero-text { position: static; width: auto; padding: 28px 24px; text-align: center; color: var(--ink); }
  .hero h1 { font-size: 2.1rem; }
  .hero p { margin: 0 auto; max-width: 56ch; font-size: 1rem; }
}
@media (max-width: 760px) {
  .nav-in { padding: 10px 16px; }
  .nav nav { gap: 18px; }
  .section-title { font-size: 2.2rem; }
  .grid, .contact, .shots.c3, .shots.c2, .facts { grid-template-columns: 1fr; }
  .resume .row { grid-template-columns: 1fr; }
  .resume .row-ico { display: none; }
  .page-head { padding: 36px 0 28px; }
  .page-head h1 { font-size: 2.1rem; }
  .entry { padding: 36px 0; }
  .facts { grid-template-columns: 1fr; }
  .entry h2 { font-size: 1.6rem; }
}
.shot.map { max-width: 620px; margin: 28px auto 0; }
.shot.map + p { margin-top: 24px; }
.diagram { width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; background: var(--ink); -webkit-mask: url("../images/diagram-cob-stages.png") center / contain no-repeat; mask: url("../images/diagram-cob-stages.png") center / contain no-repeat; }
.shots + p { margin-top: 24px; }

/* Light/dark screenshot toggle (no JavaScript): radios + sibling selectors */
.theme-demo { position: relative; margin-top: 24px; }
.theme-demo input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.theme-demo .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--band); }
.theme-demo .seg label { padding: 6px 18px; border-radius: 999px; font-size: 0.9rem; cursor: pointer; color: var(--ink); }
#gt-light:checked ~ .seg label[for="gt-light"], #gt-dark:checked ~ .seg label[for="gt-dark"] { background: var(--cta); color: var(--cta-ink); }
#gt-light:focus-visible ~ .seg label[for="gt-light"], #gt-dark:focus-visible ~ .seg label[for="gt-dark"] { outline: 2px solid var(--accent); outline-offset: 2px; }
#gt-light:checked ~ .shots .is-dark, #gt-dark:checked ~ .shots .is-light { display: none; }
.theme-demo .shots { margin-top: 16px; }

.shot.portrait { max-width: 420px; margin: 28px auto 0; }
.shot video { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #000; }
.quote { margin: 8px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--muted); }

.shot.square { max-width: 520px; margin: 28px auto 0; }

/* Small thumbnail beside a wide screenshot */
.shots.pair { grid-template-columns: 220px 1fr; align-items: center; }
.shots.c2 { align-items: start; }
@media (max-width: 760px) { .shots.pair { grid-template-columns: 1fr; } .shots.pair .shot:first-child { max-width: 220px; } }
