/* Jo Bautista — artist site. No web fonts, no frameworks: fast on any connection. */
:root {
  --paper: #f6f1e8;
  --paper-2: #ece4d6;
  --ink: #1d1a16;
  --ink-soft: #5a5248;
  --line: #d9cfbf;
  --accent: #a8462a;      /* terracotta / clay */
  --accent-ink: #fff;
  --gold: #b8871f;        /* araw (sun) */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15130f; --paper-2: #1f1c17; --ink: #efe8dc; --ink-soft: #b3a998;
    --line: #36302747; --accent: #e08a5c; --accent-ink: #15130f; --gold: #e2b54c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15130f; --paper-2: #1f1c17; --ink: #efe8dc; --ink-soft: #b3a998;
  --line: #36302747; --accent: #e08a5c; --accent-ink: #15130f; --gold: #e2b54c;
  color-scheme: dark;
}

*, *::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: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }

.eyebrow { display: block; font: 600 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: clamp(12px, 3vw, 28px); font-size: .92rem; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; white-space: nowrap; padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--accent); }

/* Buttons */
.btn { display: inline-block; padding: .8em 1.4em; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Hero */
.hero { padding: clamp(32px, 7vw, 88px) 0 clamp(40px, 7vw, 96px); }
.hero .wrap { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { margin-bottom: .25em; }
.hero .lede { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.4; max-width: 30ch; }
.hero .meta { color: var(--ink-soft); font-size: .95rem; }
.hero figure { margin: 0; }
.hero img { width: 100%; border-radius: 4px; }
figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: .6rem; }

/* Sections */
section { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head p { color: var(--ink-soft); }
.statement { font-family: var(--serif); font-size: clamp(1.35rem, 3.2vw, 2.1rem); line-height: 1.35; max-width: 34ch; }

/* Collections */
.collections { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { text-decoration: none; display: block; }
.card .frame { background: var(--paper-2); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover img { transform: scale(1.03); }
.card h3 { margin: 1rem 0 .2rem; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: .3rem 0 0; }
.card .more { font-size: .9rem; font-weight: 600; color: var(--accent); }

/* Works grid: even tiles, read left to right, so the media mix is deliberate */
.works { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 560px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .works { grid-template-columns: repeat(3, 1fr); } }
.work { margin: 0; }
.work .frame { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.work .frame img, .work .frame video, .work .frame iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.work .frame video { background: #000; }
.work figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .7rem; }
.work figcaption b { display: block; font: 400 1.05rem/1.3 var(--serif); color: var(--ink); margin: .15rem 0 .1rem; }
.work .kind { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.work .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.6); }
.work .play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.work a.frame:hover .play { background: var(--accent); }
.work .bbc-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 12%; text-decoration: none; color: var(--ink); }
.work .bbc-card img { width: auto; height: 56px; object-fit: contain; filter: grayscale(1); mix-blend-mode: multiply; }
.work .bbc-title { font: 400 clamp(1.4rem, 2.4vw, 1.8rem)/1.2 var(--serif); }
.work .bbc-more { font-weight: 600; font-size: .92rem; color: var(--accent); }

/* Exhibitions */
.shows { list-style: none; margin: 0; padding: 0; }
.shows li { display: grid; grid-template-columns: 1fr; gap: 2px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .shows li { grid-template-columns: 9rem 1fr; } }
.shows time { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; font-size: .92rem; }
.shows strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; display: block; }
.shows span { color: var(--ink-soft); font-size: .95rem; }

/* Split block (about / speaking teaser) */
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts li span { color: var(--ink-soft); display: block; font-size: .85rem; }

/* Collection pages: one artwork per row */
.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 48px); }
.page-hero .intro { max-width: 62ch; color: var(--ink-soft); }
.page-hero .intro p:first-child { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.4; color: var(--ink); }
.artwork { display: grid; gap: clamp(20px, 4vw, 56px); grid-template-columns: 1fr; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); align-items: start; }
@media (min-width: 860px) { .artwork { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .artwork figure { position: sticky; top: 84px; } }
.artwork figure { margin: 0; }
.artwork img { width: 100%; border-radius: 3px; background: var(--paper-2); }
.artwork .medium { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.2rem; }
.artwork .text { max-width: 60ch; }
.artwork ol { padding-left: 1.2em; }
.artwork li { margin-bottom: .6em; }

details { margin-top: .4rem; }
summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; padding: 4px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: " +"; }
details[open] summary::after { content: " –"; }
details[open] summary { margin-bottom: .6rem; }

/* Glossary terms: help readers outside the Philippines */
dfn { font-style: normal; border-bottom: 1px dotted var(--gold); cursor: help; }
.glossary { background: var(--paper-2); border-radius: 6px; padding: clamp(18px, 3vw, 28px); margin-top: 2rem; font-size: .95rem; }
.glossary h3 { font-size: 1.15rem; }
.glossary dl { margin: 0; display: grid; gap: 10px; }
.glossary dt { font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.glossary dd { margin: 0; color: var(--ink-soft); }

/* Speaking list */
.talks { list-style: none; padding: 0; margin: 0; }
.talks li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.talks strong { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; display: block; }
.talks span { color: var(--ink-soft); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }

/* Contact + footer */
.contact { text-align: center; }
.contact .statement { margin: 0 auto 1rem; }
.contact .actions { justify-content: center; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .88rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card img { transition: none; }
}

/* Exhibitions read as part of About */
section.continued { border-top: 0; padding-top: 0; }

/* Contact stands out in the menu */
.nav { align-items: center; }
.nav a.nav-cta { border: 1px solid var(--ink); border-radius: 999px; padding: 5px 14px; }
.nav a.nav-cta:hover { border-color: var(--accent); }

/* Pricing */
.card .price { color: var(--ink); font-weight: 600; font-size: .92rem; margin: .5rem 0 .3rem; }
.price-line { margin-top: 1.4rem; font-size: 1rem; }
.price-line a { color: var(--accent); font-weight: 600; }

/* Anchor jumps land below the sticky menu */
section[id] { scroll-margin-top: 64px; }

/* Closing line of About */
.closing { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.4; margin-top: 1.4rem; }

/* "Featured in" strip: quiet, greyscale, never louder than the art */
.featured { padding: 0 0 clamp(40px, 6vw, 64px); }
.featured .eyebrow { margin-bottom: 1rem; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(24px, 5vw, 56px); }
.logos a { display: block; text-decoration: none; color: var(--ink); }
.logos img, .logos .tedx { opacity: .62; transition: opacity .2s; }
.logos a:hover img, .logos a.tedx:hover { opacity: 1; color: var(--ink); }
.logos img { height: 30px; width: auto; filter: grayscale(1); mix-blend-mode: multiply; }
.logos img.logo-wide { height: 20px; }
.logos img.logo-reverse { filter: grayscale(1) invert(1); height: 42px; }
.tedx { font: 400 1.15rem/1 var(--sans); letter-spacing: -0.01em; }
.tedx b { font-weight: 800; letter-spacing: -0.03em; color: #e62b1e; } /* TEDx brand rules: the TEDx mark stays red */
.tedx sup { font-size: .6em; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logos img { filter: grayscale(1) invert(1); mix-blend-mode: screen; }
  :root:not([data-theme="light"]) .logos img.logo-reverse { filter: grayscale(1); }
}
:root[data-theme="dark"] .logos img { filter: grayscale(1) invert(1); mix-blend-mode: screen; }
:root[data-theme="dark"] .logos img.logo-reverse { filter: grayscale(1); }

/* Speaking page media */
.stage-photo { margin: clamp(28px, 5vw, 48px) 0 0; }
.stage-photo img { width: 100%; border-radius: 4px; }
.videos { display: grid; gap: clamp(24px, 3vw, 36px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .videos { grid-template-columns: repeat(2, 1fr); } }
.video { text-decoration: none; display: block; }
.video .thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.video .thumb img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.video .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.6); }
.video .play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.video:hover .play { background: var(--accent); }
.video strong { display: block; font: 400 1.15rem/1.3 var(--serif); margin-top: .9rem; }
.video > span:last-child { color: var(--ink-soft); font-size: .92rem; }
.press-link { margin-top: 2rem; color: var(--ink-soft); font-size: .95rem; }
/* BBC StoryWorks: larger mark, note sits to its right */
.logos a.logo-with-note { display: flex; align-items: center; gap: 12px; }
.logos a.logo-with-note img { height: 46px; opacity: .85; }
.logo-note { font-size: .74rem; line-height: 1.35; color: var(--ink-soft); max-width: 19ch; padding-left: 12px; border-left: 1px solid var(--line); }

/* Feature tag + links in the Exhibitions and features list */
.shows strong a { text-decoration: none; }
.shows strong a:hover { text-decoration: underline; }
.press-head { margin-top: clamp(48px, 7vw, 72px); margin-bottom: 0; }

/* Night-studio hero: always dark, whatever the site theme */
.hero-night { position: relative; background: #0b0a09; color: #f3ede3; padding: 0; overflow: hidden; }
.hero-night .hero-bg { display: block; width: 100%; height: 62vh; min-height: 320px; object-fit: cover; object-position: 67% 40%; filter: brightness(1.25) contrast(1.04); }
.hero-night .wrap { display: block; padding-top: 28px; padding-bottom: 48px; }
.hero-night .eyebrow { color: #c9bfae; }
.hero-night .lede { color: #f3ede3; }
.hero-night .btn-ghost { color: #f3ede3; border-color: #f3ede3; }
.hero-night .btn-ghost:hover { color: #fff; border-color: #fff; }
.hero-night .btn:not(.btn-ghost) { background: #c4603c; color: #fff; }
@media (min-width: 860px) {
  .hero-night { min-height: min(88vh, 66.4vw); display: flex; align-items: flex-start; }
  .hero-night .hero-bg { position: absolute; inset: 0; height: 100%; min-height: 0; object-position: 50% 40%; }
  .hero-night::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,7,6,.55) 0%, rgba(8,7,6,.25) 28%, rgba(8,7,6,0) 42%); z-index: 1; }
  .hero-night .wrap { position: relative; z-index: 2; width: 100%; padding-top: clamp(48px, 9vh, 96px); padding-bottom: 48px; }
  .hero-night .hero-text { max-width: min(32rem, 36vw); }
  .hero-night h1 { font-size: clamp(2.8rem, 5.4vw, 4.6rem); }
  .hero-night .lede { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
}
.hero-night + .featured { padding-top: clamp(32px, 5vw, 48px); }
.hero-cta-note { margin-top: 1.1rem; font-size: .95rem; color: #c9bfae; }
.hero-cta-note a { white-space: nowrap; color: #f3ede3; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-cta-note a:hover { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .work .bbc-card img { filter: grayscale(1) invert(1); mix-blend-mode: screen; } }
:root[data-theme="dark"] .work .bbc-card img { filter: grayscale(1) invert(1); mix-blend-mode: screen; }

/* Monster Series gallery */
.monster-grid { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: 1fr; padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
@media (min-width: 720px) { .monster-grid { grid-template-columns: repeat(2, 1fr); align-items: start; } }
.monster-grid figure { margin: 0; }
.monster-grid img { width: 100%; height: auto; border-radius: 3px; background: var(--paper-2); }
.monster-grid figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: .7rem; }
.monster-grid figcaption b { display: block; font: 400 1.15rem/1.3 var(--serif); color: var(--ink); }
.sold { display: inline-block; margin-left: 8px; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; vertical-align: 1px; }
.intro .show-note { font-size: .92rem; font-family: var(--sans); color: var(--ink-soft); margin-top: 1.2rem; }
.closing a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Speaking: feedback with student photos */
.feedback { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .feedback { grid-template-columns: 1.1fr .9fr; } }
.feedback-photos { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.feedback-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; background: var(--paper-2); }
.feedback-photos .tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.feedback-photos .wide { aspect-ratio: 16 / 10; }
.stars { position: relative; display: inline-block; font-size: 1.9rem; letter-spacing: .08em; color: var(--line); line-height: 1; margin: .2rem 0 .4rem; }
.stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #e3a92b; }
.rating { margin-bottom: .6rem; }
/* Speaking: formats with photos */
.formats { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .formats { grid-template-columns: repeat(4, 1fr); } }
.formats figure { margin: 0; }
.formats img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--paper-2); }
.formats figcaption { font: 400 1.02rem/1.3 var(--serif); color: var(--ink); margin-top: .6rem; }
.video .tag-read { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.video:hover .tag-read { background: var(--accent); }
.talks span a { color: var(--accent); font-weight: 600; }
.talks strong a { text-decoration: none; }
.talks strong a:hover { text-decoration: underline; }
.text-link { color: var(--accent); font-weight: 600; }
.text-link:hover { color: var(--accent); text-decoration-thickness: 2px; }
.nowrap { white-space: nowrap; }
