/* ==========================================================================
   Cris Dominguez — Artist Portfolio
   Minimal, warm-paper aesthetic. The artwork is the color; the site is not.
   --------------------------------------------------------------------------
   To change the accent color or fonts, edit the tokens in :root only.
   ========================================================================== */

:root {
  /* Palette — warm "sketchbook paper" neutrals + one accent */
  --paper: #f7f4ee;          /* page background (off-white, slightly warm) */
  --paper-2: #efeae1;        /* cards / placeholders */
  --ink: #1c1b19;            /* primary text */
  --muted: #6b665e;          /* secondary text, metadata */
  --line: #e2dbcf;           /* hairlines */
  --accent: #2f6f6a;         /* Pacific sea-teal */
  --accent-ink: #ffffff;
  --accent-soft: #e3ecea;    /* pale sea-teal wash for panels and hovers */
  --accent-deep: #22524e;    /* darker teal for hover states */
  /* Previous option: --accent: #b5532f;  (terracotta / painted boats) */

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark .dot { color: var(--accent); }

.nav-list { display: flex; gap: clamp(16px, 2.5vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  text-decoration: none; font-size: .9rem; letter-spacing: .02em; color: var(--muted);
  padding-block: 6px; border-bottom: 1px solid transparent;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px;
  color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav-list a { display: block; font-size: 1.1rem; padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
}

/* ---------- Language toggle (EN / ES) ----------
   Content is written in pairs: <span lang="en">…</span><span lang="es">…</span>
   English shows by default (and without JS); .lang-es on <html> flips it. */
html:not(.lang-es) [lang="es"],
html.lang-es [lang="en"] { display: none !important; }
/* content that stays in its original language (e.g. poems) */
html.lang-es [lang="en"].always { display: block !important; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: .8rem; letter-spacing: .06em; }
.lang-switch .sep { color: var(--line); }
.lang-switch button {
  font: inherit; background: none; border: 0; cursor: pointer; padding: 8px 6px;
  color: var(--muted); border-bottom: 1px solid transparent;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (min-width: 721px) { .header-tools { margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--line); } }
.header-inner .site-nav { margin-left: auto; }

/* ---------- Page intro ---------- */
main { display: block; min-height: 60vh; }
.page-intro { padding-block: clamp(40px, 8vw, 96px) clamp(24px, 4vw, 48px); }
.eyebrow {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.25rem); margin: 0; max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 20px; }
h3 { font-size: 1.15rem; margin: 0; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 58ch; margin: 20px 0 0; }
.lede em { font-family: var(--font-display); font-style: italic; color: var(--ink); }

/* ---------- Works: filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.filter-btn {
  font: inherit; font-size: .85rem; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  transition: all .15s var(--ease);
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-chip[hidden] { display: none; }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Works: grid ---------- */
.works-grid {
  display: grid; gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  margin: 0 0 clamp(64px, 10vw, 120px); padding: 0; list-style: none;
}
.work { margin: 0; }
.work[hidden] { display: none; }
.work-thumb {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--paper-2); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
}
.work-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.work-thumb:hover img { transform: scale(1.025); }
.work figcaption { padding-top: 12px; }
.work-title { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; margin: 0; }
.work-meta { font-size: .82rem; color: var(--muted); margin: 2px 0 0; }
.works-empty { color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
}
.lightbox::backdrop { background: rgba(20, 18, 16, .35); }
.lightbox-inner {
  height: 100%; display: grid; grid-template-rows: 1fr auto;
  padding: 56px var(--gutter) 24px; gap: 16px;
}
.lightbox-figure { margin: 0; min-height: 0; display: grid; place-items: center; }
.lightbox-figure img { max-height: calc(100vh - 200px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox-caption { text-align: center; max-width: 60ch; margin-inline: auto; }
.lightbox-caption .work-title { font-size: 1.2rem; }
.lightbox-desc { font-size: .92rem; color: var(--muted); margin: 8px 0 0; }
.lb-btn {
  position: absolute; background: none; border: 0; color: var(--ink); cursor: pointer;
  padding: 12px; font: inherit; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
}
.lb-btn:hover { color: var(--accent); }
.lb-close { top: 8px; right: 8px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 1.6rem; }
.lb-prev { left: 4px; } .lb-next { right: 4px; }
@media (max-width: 720px) {
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start; margin-bottom: clamp(48px, 8vw, 96px);
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.portrait { margin: 0; position: sticky; top: 96px; }
@media (max-width: 860px) { .portrait { position: static; max-width: 420px; } }
.portrait img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--paper-2); }
.portrait figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.prose p { margin: 0 0 1.1em; max-width: 62ch; }
.prose .pull {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35; color: var(--ink); border-left: 2px solid var(--accent);
  padding-left: 20px; margin: 32px 0;
}
.section { padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }

/* CV */
.cv { margin-bottom: clamp(64px, 10vw, 120px); }
.cv-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: .85rem; letter-spacing: .04em; padding: 10px 18px;
  border: 1px solid var(--ink); border-radius: 999px; transition: all .15s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.cv-block {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 16px 32px;
  padding-block: 28px; border-top: 1px solid var(--line);
}
@media (max-width: 640px) { .cv-block { grid-template-columns: 1fr; gap: 8px; } }
.cv-block > h3 {
  font-family: var(--font-body); font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px;
}
.cv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cv-item { display: grid; grid-template-columns: 92px 1fr; gap: 4px 16px; }
@media (max-width: 480px) { .cv-item { grid-template-columns: 1fr; } }
.cv-year { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cv-what strong { font-weight: 500; }
.cv-what .where { color: var(--muted); }
.cv-what ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.cv-what li { margin: 2px 0; }
.placeholder-note {
  font-size: .85rem; color: var(--muted); font-style: italic;
  border: 1px dashed var(--line); padding: 10px 14px; border-radius: var(--radius); margin: 0;
}

/* ---------- News ---------- */
.news-layout {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  margin-bottom: clamp(64px, 10vw, 120px);
}
@media (max-width: 900px) { .news-layout { grid-template-columns: 1fr; } }
.post { padding-block: 28px; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; padding-top: 0; }
.post time { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post h3 { font-size: 1.4rem; margin: 6px 0 10px; }
.post p { margin: 0; max-width: 60ch; }
.post img { margin-top: 16px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--paper-2); }
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-left: 8px;
}

.ig-card {
  background: var(--paper-2); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius);
  position: sticky; top: 96px; align-self: start;
}
@media (max-width: 900px) { .ig-card { position: static; } }
.ig-card .handle { font-family: var(--font-display); font-size: 1.4rem; margin: 4px 0 12px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 20px 0; }
.ig-grid a { display: block; aspect-ratio: 1; background: var(--line); overflow: hidden; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; }
.ig-embeds { display: grid; gap: 16px; margin-top: 20px; }
.ig-embeds .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0; border-top: 1px solid var(--line); margin-bottom: clamp(64px, 10vw, 120px);
}
.contact-item { padding: 28px 0; border-bottom: 1px solid var(--line); padding-right: 24px; }
.contact-item h2 {
  font-family: var(--font-body); font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.contact-item a { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); text-decoration: none; word-break: break-word; }
.contact-item a:hover { text-decoration: underline; }
.contact-item p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: .82rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.footer-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }

/* ---------- Sea-teal accents ----------
   Teal frames the site (header line, labels, buttons, quotes, links)
   but never sits behind the artwork itself. */
::selection { background: var(--accent); color: var(--accent-ink); }
.site-header { border-top: 3px solid var(--accent); }
.wordmark .dot { font-size: 1.15em; line-height: 0; }
.eyebrow { color: var(--accent); font-weight: 500; }
.nav-list a[aria-current="page"] { border-bottom-width: 2px; }
.nav-list a:hover { color: var(--accent); }
.lede em { color: var(--accent); }
h1 + .lede, .page-intro h1 { position: relative; }
.page-intro h1::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 20px;
  background: var(--accent); border-radius: 2px;
}

/* Filters */
.filter-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Works */
.work-thumb { transition: box-shadow .2s var(--ease); }
.work-thumb:hover, .work-thumb:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.work:hover .work-title { color: var(--accent); }
.lb-btn:hover { color: var(--accent); }

/* Buttons */
.btn { border-color: var(--accent); color: var(--accent); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-ink); }

/* About / CV */
.prose .pull { border-left-width: 3px; color: var(--accent-deep); }
.section > h2::before, .cv-head h2::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px;
  background: var(--accent); border-radius: 50%; vertical-align: middle;
}
.cv-block > h3 { color: var(--accent); }
.cv-what .tag, .tag { color: var(--accent); }

/* News */
.post time { color: var(--accent); font-weight: 500; }
.ig-card { background: var(--accent-soft); border-top: 3px solid var(--accent); }

/* Contact */
.contact-item h2 { color: var(--accent); }
.contact-item a:hover { color: var(--accent); }

/* Footer */
.site-footer { background: var(--accent); color: color-mix(in srgb, var(--accent-ink) 82%, var(--accent)); border-top: 0; }
.site-footer a:hover { color: var(--accent-ink); }

/* ---------- Works page v2: sections, collections, viewer ---------- */
.works-app { margin-bottom: clamp(64px, 10vw, 120px); }
.chip-count { font-size: .75em; opacity: .65; margin-left: 2px; font-variant-numeric: tabular-nums; }
.work-section { padding-top: 8px; margin-bottom: clamp(40px, 6vw, 72px); }
.work-section[hidden] { display: none; }
.section-title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px;
}
.section-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* square thumbnails keep mixed portrait/landscape work tidy */
.work-thumb { aspect-ratio: 1 / 1; position: relative; }
.work-caption { padding-top: 12px; }
.work-caption .eyebrow { margin: 0 0 4px; font-size: .7rem; }
.badge {
  position: absolute; right: 10px; bottom: 10px; min-width: 28px; height: 28px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink);
  border-radius: 999px; font-size: .75rem; font-weight: 600;
}
.badge::before { content: ""; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: 2px -2px 0 -0.5px var(--paper), 2px -2px 0 1px currentColor; }

.statement-link {
  font: inherit; font-size: .8rem; letter-spacing: .02em; color: var(--accent);
  background: none; border: 0; padding: 4px 0; margin-top: 4px; cursor: pointer;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.statement-link:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

/* collection cards */
.collections-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.collection-card { margin: 0; }
.collection-open {
  display: grid; grid-template-columns: 3fr 1fr; gap: 6px; width: 100%; padding: 0; border: 0;
  background: none; cursor: zoom-in; border-radius: var(--radius); transition: box-shadow .2s var(--ease);
}
.collection-open:hover, .collection-open:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.collection-cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.collection-cover img, .collection-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.collection-open:hover .collection-cover img { transform: scale(1.02); }
.collection-strip { display: grid; grid-template-rows: repeat(3, 1fr); gap: 6px; min-height: 0; }
.collection-strip img { aspect-ratio: auto; background: var(--paper-2); min-height: 0; }
.collection-title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-style: italic; margin: 0; }
.collection-card:hover .collection-title { color: var(--accent); }

/* viewer v2 */
.lightbox { background: var(--paper); }
.lb-layout {
  height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(16px, 3vw, 40px); padding: 56px clamp(16px, 3vw, 40px) 24px;
}
.lb-figure { margin: 0; min-height: 0; display: grid; place-items: center; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 96px); width: auto; height: auto; object-fit: contain; }
.lb-info { align-self: center; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 96px); overflow: auto; padding-right: 4px; }
.lb-title { font-size: clamp(1.4rem, 2.4vw, 2rem); font-style: italic; margin: 0; }
.lb-kicker { margin: 0; }
.lb-statement { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.lb-statement summary {
  cursor: pointer; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); list-style: none; display: flex; align-items: center; gap: 8px;
}
.lb-statement summary::-webkit-details-marker { display: none; }
.lb-statement summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.lb-statement[open] summary::after { content: "–"; }
.lb-statement-text { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.55; margin: 12px 0 0; color: var(--ink); }
.lb-nav { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.lb-nav .lb-btn { position: static; transform: none; border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; padding: 0; font-size: 1.1rem; }
.lb-nav .lb-btn:hover { border-color: var(--accent); }
.lb-count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-close { position: absolute; top: 8px; right: 8px; }
@media (max-width: 899px) {
  .lb-layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 52px 16px 16px; gap: 12px; }
  .lb-figure img { max-height: 58vh; }
  .lb-info { max-height: 38vh; align-self: start; }
  .lb-nav { margin-top: 8px; }
}

@media (max-width: 560px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .work-title { font-size: .95rem; }
  .work-meta { font-size: .75rem; }
  .statement-link { font-size: .75rem; }
  .badge { right: 6px; bottom: 6px; height: 24px; min-width: 24px; font-size: .7rem; }
}
.spotify-embed { display: block; border: 0; border-radius: 12px; margin-top: 16px; max-width: 520px; }

/* ---------- Writing page ---------- */
.poems { list-style: none; margin: 0 0 clamp(64px, 10vw, 120px); padding: 0; max-width: 720px; }
.poem { border-top: 1px solid var(--line); }
.poem:last-child { border-bottom: 1px solid var(--line); }
.poem summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 20px 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}
.poem summary::-webkit-details-marker { display: none; }
.poem summary::after { content: "+"; color: var(--accent); font-family: var(--font-body); font-size: 1.3rem; }
.poem[open] summary::after { content: "–"; }
.poem summary:hover { color: var(--accent); }
.poem-body { white-space: pre-line; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.7; padding: 0 0 28px 20px; border-left: 2px solid var(--accent); margin: 0 0 24px; }
.writing-note { color: var(--muted); font-size: .9rem; max-width: 62ch; }


/* ==========================================================================
   TEXTURE & BOLDNESS LAYER
   Paper grain + fibers, a spiral/constellation motif (from her own themes),
   bigger type, print-style offset shadows, a teal band and a torn footer edge.
   Everything here is decorative; delete this block to return to the plain look.
   ========================================================================== */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .10 0 0 0 0 .08 0 0 0 .085 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .15 0 0 0 0 .11 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%232f6f6a' stroke-linecap='round'%3E%3Cpath d='M206.0,200.0 L206.3,200.2 L206.5,200.5 L206.8,200.8 L207.0,201.1 L207.2,201.4 L207.4,201.7 L207.6,202.0 L207.8,202.4 L208.0,202.8 L208.1,203.2 L208.2,203.6 L208.3,204.0 L208.4,204.4 L208.5,204.9 L208.5,205.4 L208.5,205.8 L208.5,206.3 L208.5,206.8 L208.4,207.3 L208.3,207.8 L208.2,208.3 L208.1,208.8 L207.9,209.3 L207.8,209.8 L207.6,210.3 L207.3,210.8 L207.0,211.3 L206.8,211.7 L206.4,212.2 L206.1,212.7 L205.7,213.2 L205.3,213.6 L204.9,214.1 L204.4,214.5 L204.0,214.9 L203.5,215.3 L202.9,215.7 L202.4,216.1 L201.8,216.4 L201.2,216.7 L200.6,217.0 L200.0,217.3 L199.3,217.6 L198.6,217.8 L197.9,218.0 L197.2,218.2 L196.5,218.3 L195.7,218.5 L195.0,218.5 L194.2,218.6 L193.4,218.6 L192.6,218.6 L191.8,218.6 L191.0,218.5 L190.2,218.4 L189.4,218.2 L188.6,218.1 L187.7,217.8 L186.9,217.6 L186.1,217.3 L185.3,217.0 L184.5,216.6 L183.7,216.2 L182.9,215.8 L182.1,215.3 L181.3,214.8 L180.6,214.2 L179.8,213.6 L179.1,213.0 L178.4,212.4 L177.7,211.7 L177.1,210.9 L176.4,210.2 L175.8,209.4 L175.2,208.6 L174.6,207.7 L174.1,206.8 L173.6,205.9 L173.1,205.0 L172.7,204.0 L172.3,203.0 L172.0,202.0 L171.6,200.9 L171.3,199.9 L171.1,198.8 L170.9,197.7 L170.7,196.6 L170.6,195.4 L170.5,194.3 L170.5,193.1 L170.5,191.9 L170.6,190.8 L170.7,189.6 L170.9,188.4 L171.1,187.2 L171.3,186.0 L171.7,184.8 L172.0,183.6 L172.4,182.4 L172.9,181.3 L173.4,180.1 L173.9,179.0 L174.5,177.8 L175.2,176.7 L175.9,175.6 L176.6,174.5 L177.4,173.4 L178.3,172.4 L179.2,171.4 L180.1,170.4 L181.1,169.5 L182.1,168.5 L183.2,167.6 L184.3,166.8 L185.4,166.0 L186.6,165.2 L187.8,164.5 L189.1,163.8 L190.4,163.1 L191.7,162.5 L193.1,162.0 L194.5,161.5 L195.9,161.0 L197.3,160.6 L198.8,160.3 L200.3,160.0 L201.8,159.8 L203.3,159.6 L204.9,159.5 L206.4,159.4 L208.0,159.4 L209.6,159.5 L211.1,159.6 L212.7,159.8 L214.3,160.1 L215.9,160.4 L217.5,160.8 L219.1,161.2 L220.6,161.7 L222.2,162.3 L223.7,162.9 L225.3,163.6 L226.8,164.4 L228.2,165.2 L229.7,166.1 L231.1,167.0 L232.5,168.0 L233.9,169.1 L235.3,170.2 L236.6,171.4 L237.8,172.6 L239.1,173.9 L240.2,175.2 L241.4,176.6 L242.5,178.0 L243.5,179.5 L244.5,181.1 L245.4,182.7 L246.3,184.3 L247.1,185.9 L247.9,187.7 L248.5,189.4 L249.2,191.2 L249.7,193.0 L250.2,194.8 L250.7,196.7 L251.0,198.6 L251.3,200.5 L251.5,202.4 L251.7,204.4 L251.7,206.3 L251.7,208.3 L251.6,210.3 L251.5,212.3 L251.2,214.3 L250.9,216.3 L250.5,218.3 L250.1,220.2 L249.5,222.2 L248.9,224.2 L248.2,226.1 L247.4,228.0 L246.6,229.9 L245.6,231.8 L244.6,233.7 L243.5,235.5 L242.4,237.3 L241.1,239.0 L239.8,240.7 L238.5,242.4 L237.0,244.0 L235.5,245.6 L234.0,247.1 L232.3,248.6 L230.6,250.0 L228.9,251.3 L227.0,252.6 L225.2,253.8 L223.2,255.0 L221.3,256.0 L219.2,257.1 L217.2,258.0 L215.0,258.9 L212.9,259.6 L210.7,260.3 L208.5,261.0 L206.2,261.5 L203.9,262.0 L201.6,262.3 L199.2,262.6 L196.9,262.8 L194.5,262.9 L192.1,263.0 L189.7,262.9 L187.3,262.7 L184.9,262.5 L182.5,262.1 L180.1,261.7 L177.7,261.1 L175.4,260.5 L173.0,259.8 L170.7,259.0 L168.3,258.1 L166.1,257.1 L163.8,256.0 L161.6,254.8 L159.4,253.6 L157.2,252.2 L155.1,250.8 L153.1,249.3 L151.1,247.6 L149.1,246.0 L147.2,244.2 L145.4,242.4 L143.6,240.4 L141.9,238.4 L140.3,236.4 L138.7,234.3 L137.3,232.1 L135.9,229.8 L134.5,227.5 L133.3,225.1 L132.2,222.7 L131.1,220.2 L130.1,217.7 L129.2,215.1 L128.5,212.5 L127.8,209.8 L127.2,207.1 L126.7,204.4 L126.3,201.7 L126.0,198.9 L125.9,196.1 L125.8,193.3 L125.8,190.5 L126.0,187.7 L126.2,184.9 L126.6,182.1 L127.0,179.3 L127.6,176.5 L128.3,173.7 L129.1,170.9 L130.0,168.2 L131.0,165.5 L132.1,162.8 L133.3,160.1 L134.6,157.5 L136.0,154.9 L137.5,152.4 L139.1,149.9 L140.9,147.5 L142.7,145.1 L144.6,142.8 L146.6,140.6 L148.7,138.4 L150.9,136.3 L153.1,134.3 L155.5,132.4 L157.9,130.5 L160.4,128.8 L163.0,127.1 L165.6,125.5 L168.3,124.0 L171.1,122.6 L173.9,121.3 L176.8,120.2 L179.7,119.1 L182.7,118.1 L185.8,117.3 L188.8,116.5 L191.9,115.9 L195.1,115.4 L198.3,115.0 L201.4,114.7 L204.6,114.6 L207.9,114.5 L211.1,114.6 L214.3,114.8 L217.6,115.2 L220.8,115.6 L224.0,116.2 L227.2,116.9 L230.4,117.7 L233.6,118.7 L236.7,119.7 L239.8,120.9 L242.9,122.2 L245.9,123.7 L248.9,125.2 L251.8,126.9 L254.7,128.7 L257.5,130.5 L260.2,132.5 L262.9,134.6 L265.5,136.9 L268.0,139.2 L270.4,141.6 L272.8,144.1 L275.0,146.7 L277.2,149.4 L279.3,152.2 L281.2,155.1 L283.1,158.0 L284.9,161.1 L286.5,164.2 L288.1,167.3 L289.5,170.6 L290.8,173.9 L291.9,177.2 L293.0,180.6 L293.9,184.1 L294.7,187.6 L295.4,191.1 L295.9,194.7 L296.3,198.3 L296.6,201.9 L296.7,205.5 L296.7,209.1 L296.6,212.8 L296.3,216.4 L295.9,220.1 L295.3,223.7 L294.6,227.4 L293.8,231.0 L292.8,234.6 L291.7,238.1 L290.5,241.6 L289.1,245.1 L287.6,248.6 L285.9,251.9 L284.1,255.3 L282.2,258.5 L280.2,261.7 L278.0,264.9 L275.7,267.9 L273.3,270.9 L270.8,273.8 L268.2,276.6 L265.4,279.3 L262.6,281.9 L259.6,284.4 L256.6,286.8 L253.4,289.1 L250.2,291.3 L246.9,293.3 L243.4,295.3 L239.9,297.1 L236.4,298.8 L232.7,300.3 L229.0,301.7 L225.3,303.0 L221.4,304.1 L217.6,305.1 L213.6,306.0 L209.7,306.7 L205.7,307.3 L201.7,307.7 L197.7,307.9 L193.6,308.0 L189.5,308.0 L185.5,307.8 L181.4,307.4 L177.3,306.9 L173.3,306.3 L169.2,305.4 L165.2,304.5 L161.2,303.3 L157.3,302.1 L153.4,300.6 L149.5,299.1 L145.7,297.3 L142.0,295.5 L138.3,293.5 L134.7,291.3 L131.1,289.0 L127.7,286.6 L124.3,284.0 L121.0,281.3 L117.8,278.5 L114.8,275.5 L111.8,272.4 L108.9,269.2 L106.2,265.9 L103.5,262.5 L101.0,259.0 L98.7,255.4 L96.4,251.7 L94.3,247.9 L92.3,244.0 L90.5,240.0 L88.8,236.0 L87.3,231.9 L85.9,227.7 L84.7,223.4 L83.6,219.2 L82.7,214.8 L82.0,210.4 L81.4,206.0 L81.0,201.6 L80.8,197.1 L80.7,192.6 L80.8,188.1 L81.0,183.7 L81.5,179.2 L82.1,174.7 L82.8,170.2 L83.8,165.8 L84.9,161.4 L86.2,157.0 L87.6,152.6 L89.2,148.4 L91.0,144.1 L92.9,139.9 L95.0,135.8 L97.3,131.8 L99.7,127.8 L102.2,124.0 L104.9,120.2 L107.8,116.5 L110.8,112.9 L113.9,109.4 L117.2,106.1 L120.6,102.8 L124.1,99.7 L127.8,96.7 L131.6,93.9 L135.4,91.1 L139.4,88.6 L143.5,86.1 L147.7,83.9 L152.0,81.7 L156.4,79.8 L160.8,78.0 L165.4,76.3 L170.0,74.8 L174.6,73.5 L179.3,72.4 L184.1,71.5 L188.9,70.7 L193.7,70.1 L198.6,69.7 L203.5,69.4 L208.4,69.4 L213.3,69.5 L218.2,69.9 L223.1,70.4 L228.0,71.1 L232.9,71.9 L237.7,73.0 L242.5,74.2 L247.3,75.7 L252.0,77.3 L256.7,79.1 L261.3,81.0 L265.9,83.2 L270.3,85.5 L274.7,88.0 L279.0,90.7 L283.2,93.5 L287.3,96.5 L291.3,99.6 L295.2,102.9 L299.0,106.4 L302.6,110.0 L306.1,113.7 L309.5,117.6 L312.7,121.6 L315.8,125.7 L318.8,130.0 L321.5,134.3 L324.2,138.8 L326.6,143.4 L328.9,148.1 L331.0,152.8 L332.9,157.7 L334.7,162.6 L336.2,167.6 L337.6,172.7 L338.8,177.8 L339.8,183.0 L340.6,188.2 L341.2,193.5 L341.7,198.8 L341.9,204.1 L341.9,209.4 L341.7,214.8 L341.3,220.1 L340.7,225.4 L339.9,230.7 L338.9,236.0 L337.8,241.3 L336.4,246.5 L334.8,251.7 L333.0,256.8 L331.0,261.9 L328.9,266.8 L326.5,271.7 L324.0,276.6 L321.2,281.3' stroke-width='1.6' opacity='.55'/%3E%3Cg stroke-width='1' opacity='.45' stroke-dasharray='2 5'%3E%3Cline x1='52' y1='70' x2='118' y2='28'/%3E%3Cline x1='118' y1='28' x2='300' y2='40'/%3E%3Cline x1='300' y1='40' x2='368' y2='120'/%3E%3Cline x1='368' y1='120' x2='382' y2='262'/%3E%3Cline x1='382' y1='262' x2='318' y2='360'/%3E%3Cline x1='318' y1='360' x2='196' y2='388'/%3E%3Cline x1='196' y1='388' x2='70' y2='330'/%3E%3Cline x1='70' y1='330' x2='22' y2='214'/%3E%3Cline x1='22' y1='214' x2='52' y2='70'/%3E%3Cline x1='52' y1='70' x2='130' y2='240'/%3E%3Cline x1='130' y1='240' x2='200' y2='200'/%3E%3Cline x1='200' y1='200' x2='268' y2='150'/%3E%3Cline x1='268' y1='150' x2='300' y2='40'/%3E%3Cline x1='268' y1='150' x2='382' y2='262'/%3E%3Cline x1='130' y1='240' x2='70' y2='330'/%3E%3Cline x1='200' y1='200' x2='196' y2='388'/%3E%3Cline x1='118' y1='28' x2='268' y2='150'/%3E%3Cline x1='22' y1='214' x2='130' y2='240'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%232f6f6a'%3E%3Ccircle cx='52' cy='70' r='3.4'/%3E%3Ccircle cx='118' cy='28' r='3.4'/%3E%3Ccircle cx='300' cy='40' r='3.4'/%3E%3Ccircle cx='368' cy='120' r='3.4'/%3E%3Ccircle cx='382' cy='262' r='3.4'/%3E%3Ccircle cx='318' cy='360' r='3.4'/%3E%3Ccircle cx='196' cy='388' r='3.4'/%3E%3Ccircle cx='70' cy='330' r='3.4'/%3E%3Ccircle cx='22' cy='214' r='3.4'/%3E%3Ccircle cx='200' cy='200' r='5'/%3E%3Ccircle cx='268' cy='150' r='3.4'/%3E%3Ccircle cx='130' cy='240' r='3.4'/%3E%3C/g%3E%3C/svg%3E");
  --deckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath fill='%232f6f6a' d='M0 24V12 L40 9 L85 14 L130 8 L180 13 L230 7 L275 12 L330 9 L380 15 L430 8 L480 12 L540 6 L590 13 L640 9 L700 14 L750 7 L800 12 L860 8 L910 14 L960 9 L1010 13 L1060 7 L1110 12 L1160 9 L1200 13 V24Z'/%3E%3C/svg%3E");
  --shadow-print: 6px 6px 0 var(--accent);
}
body { background-color: var(--paper); background-image: var(--grain), var(--fibers); background-attachment: fixed; }
.site-header { background: color-mix(in srgb, var(--paper) 88%, transparent); }

/* Hero / page intros: bigger, heavier type + motif + ink wash */
.page-intro { position: relative; isolation: isolate; overflow-x: clip; }
.page-intro::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(620px, 70vw); aspect-ratio: 1; right: -4%; top: 4%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%);
}
.page-intro::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: clamp(170px, 22vw, 300px); aspect-ratio: 1; right: 0; top: 28px; transform: rotate(-8deg);
  background: var(--motif) center / contain no-repeat;
}
/* homepage: the motif goes big */
.page-intro:has(+ .works-app)::after { width: clamp(220px, 34vw, 440px); top: 50%; transform: translateY(-46%) rotate(-8deg); }
h1 { font-size: clamp(2.8rem, 7.8vw, 6.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: .96; max-width: 13ch; font-optical-sizing: auto; }
h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.page-intro h1::after { width: 88px; height: 5px; margin-top: 26px; border-radius: 3px; }
@media (max-width: 720px) {
  .page-intro::after, .page-intro:has(+ .works-app)::after { width: 140px; right: -24px; top: 20px; transform: rotate(-8deg); opacity: .4; }
  .page-intro::before { width: 320px; right: -30%; }
}

/* Works: numbered section headings */
.works-app { counter-reset: sec; }
.section-title { counter-increment: sec; font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 500; letter-spacing: -0.02em;
                  border-bottom: 2px solid var(--ink); padding-bottom: 14px; align-items: baseline; }
.section-title::before {
  content: counter(sec, decimal-leading-zero); width: auto; height: auto; border-radius: 0; background: none;
  font-family: var(--font-display); font-style: italic; font-size: .62em; color: var(--accent); font-weight: 400; min-width: 1.6em;
}

/* Collections: full-bleed teal band with its own grain */
.work-section[data-section="collections"] {
  position: relative; padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 56px);
  box-shadow: 0 0 0 100vmax var(--accent-soft); clip-path: inset(0 -100vmax);
  background: var(--accent-soft);
}
.work-section[data-section="collections"] .section-title { border-bottom-color: var(--accent); }

/* Print-style offset shadows on hover / active */
.work-thumb, .collection-open { transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.work-thumb:hover, .work-thumb:focus-visible,
.collection-open:hover, .collection-open:focus-visible { transform: translate(-3px, -3px); box-shadow: var(--shadow-print); }
.filter-btn { border-width: 1.5px; font-weight: 500; }
.filter-btn[aria-pressed="true"] { box-shadow: 3px 3px 0 var(--ink); }
.btn { border-width: 1.5px; font-weight: 500; }
.btn:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.portrait img { box-shadow: 10px 10px 0 var(--accent); }
.portrait figcaption { margin-top: 20px; }
.ig-card { box-shadow: 8px 8px 0 var(--accent); border-top: 0; }

/* Bolder labels */
.eyebrow { font-weight: 600; letter-spacing: .18em; }
.prose .pull { border-left-width: 4px; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }

/* Torn-paper top edge on the teal footer */
.site-footer { position: relative; margin-top: 32px; background-image: var(--grain); }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px;
  background: var(--deckle) center / 100% 100% no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .work-thumb:hover, .collection-open:hover, .btn:hover { transform: none; }
}
@media print { body { background-image: none; } .page-intro::before, .page-intro::after, .site-footer::before { display: none; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print (for the CV page) ---------- */
@media print {
  .site-header, .site-footer, .filters, .btn, .ig-card { display: none !important; }
  body { background: #fff; }
  .about-grid { grid-template-columns: 1fr; }
}
