/* ============================================================
   SELECTED WORK — designed cover cards
   Scoped under .selwork so it wins over the site's global
   element rules (body.home-lite h2/h3/p, etc.).
   Fonts loaded in index.html <head> (Poppins, Mulish, Newsreader).
   ============================================================ */

.selwork {
  --violet: oklch(0.52 0.20 300);   /* accent */
  --ink:    oklch(0.24 0.02 300);   /* headings */
  --body:   oklch(0.52 0.015 300);  /* body text */
  --line:   oklch(0.93 0.006 300);  /* borders */
  --shadow: oklch(0.40 0.05 300 / 0.55);

  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  font-family: 'Mulish', system-ui, sans-serif;
}

/* --- section heading --- */
.selwork .work__head { text-align: center; margin-bottom: 52px; }
.selwork .work__eyebrow {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet); margin: 0 0 16px;
}
.selwork .work__title {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.12; color: var(--ink);
  margin: 0 auto 12px; max-width: 22ch;
}
.selwork .work__sub { font-size: 16px; color: var(--body); margin: 0; }

/* --- shared card shell --- */
.selwork .card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 14px 34px -28px var(--shadow);
}

/* --- cover (the designed top) --- */
.selwork .card__cover {
  height: 210px; padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  background: oklch(0.95 0.03 var(--h));
}
.selwork .card__kicker {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: oklch(0.45 0.12 var(--h));
}
.selwork .card__fig {
  font-family: 'Newsreader', serif; font-weight: 400; line-height: 0.98;
  color: oklch(0.40 0.14 var(--h));
  white-space: pre-line;
  font-size: var(--fig, 60px);
}
.selwork .card__figsub {
  font-family: 'Newsreader', serif; font-style: italic;
  font-size: 20px; line-height: 1.15;
  color: oklch(0.46 0.10 var(--h)); margin-top: 6px;
}

/* --- card body --- */
.selwork .card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.selwork .card__tag {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet); margin: 0 0 12px;
}
.selwork .card__h {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 19px; line-height: 1.28; color: var(--ink); margin: 0 0 14px;
  max-width: none;
}
.selwork .card__h a { color: inherit; text-decoration: none; }
.selwork .card__h a:hover, .selwork .card__h a:focus-visible { color: var(--violet); }
.selwork .card__p { font-size: 14.5px; line-height: 1.55; color: var(--body); margin: 0; }
.selwork .card__listen {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: 'Spline Sans Mono', monospace; font-size: 11.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--violet); text-decoration: none;
  border: 1px solid oklch(0.86 0.05 300); border-radius: 100px; padding: 7px 13px;
  transition: border-color .2s, background .2s;
  align-self: flex-start;
}
.selwork .card__listen:hover { border-color: var(--violet); background: oklch(0.96 0.02 300); }

/* --- 3-up grid --- */
.selwork .work__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 900px) { .selwork .work__grid { grid-template-columns: 1fr; } }

/* --- hover / focus on the whole card --- */
.selwork .card { transition: transform .25s ease, box-shadow .25s ease; }
.selwork .card:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -26px var(--shadow); }
.selwork .card__cover:focus-visible { outline: 2px solid var(--violet); outline-offset: -3px; }

/* ============================================================
   FEATURED CARD (full-width, dark cover)
   ============================================================ */
.selwork .feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; margin-bottom: 30px;
  box-shadow: 0 18px 40px -30px var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.selwork .feature:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -28px var(--shadow); }
@media (max-width: 900px) { .selwork .feature { grid-template-columns: 1fr; } }

.selwork .feature__cover {
  background: oklch(0.36 0.09 300); color: #fff;
  padding: 48px; min-height: 340px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none;
}
.selwork .feature__cover:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.selwork .feature__kicker {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(0.82 0.06 300);
}
.selwork .feature__ghost {
  position: absolute; right: -30px; bottom: -80px;
  font-family: 'Newsreader', serif; font-size: 300px; line-height: 0.8;
  color: oklch(1 0 0 / 0.06); pointer-events: none;
}
.selwork .feature__fig {
  position: relative; font-family: 'Newsreader', serif; font-weight: 400;
  font-size: clamp(40px, 5vw, 56px); line-height: 1.0; color: #fff;
}
.selwork .feature__figsub {
  font-family: 'Newsreader', serif; font-style: italic;
  font-size: 27px; color: oklch(0.88 0.05 300); margin-top: 10px;
}
.selwork .feature__chips { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; position: relative; }
.selwork .chip {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: 0.04em;
  color: oklch(0.36 0.09 300); background: oklch(0.90 0.05 300);
  padding: 6px 12px; border-radius: 100px;
}
.selwork .feature__body {
  padding: 44px; display: flex; flex-direction: column; justify-content: center;
}
.selwork .feature__tag {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--violet); margin: 0 0 14px;
}
.selwork .feature__h {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 27px; line-height: 1.22; color: var(--ink); margin: 0 0 16px;
  max-width: none;
}
.selwork .feature__h a { color: inherit; text-decoration: none; }
.selwork .feature__h a:hover, .selwork .feature__h a:focus-visible { color: var(--violet); }
.selwork .feature__p { font-size: 16px; line-height: 1.6; color: var(--body); margin: 0; }
