:root {
  /* Bloc Design identity (Paquete Aura): Pantone 2728 C blue, 172 C orange, 467/2728 60% sand, 426 C charcoal */
  --paper: #ffffff;
  --paper-2: #f2f2f1;
  --ink: #24272a;
  --ink-2: #4a4e52;
  --muted: #7d8085;
  --line: #e1e2e3;
  --blue: #0047ba;
  --orange: #ff4713;
  --sand: #e6d5b9;
  --accent: var(--blue);
  color-scheme: light;
  --serif: 'IBM Plex Sans', system-ui, sans-serif;   /* display: Plex Sans Light, set large */
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 3.2vw, 44px);
  --max: 1480px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Masthead ───────────────────────────── */
.masthead { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.masthead__row { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 28px; }
.wordmark { font: 600 30px/1 var(--sans); letter-spacing: -0.035em; color: var(--blue); display: inline-flex; align-items: baseline; }
.wordmark span { color: var(--blue); }
.wordmark small { font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: 14px; transform: translateY(-4px); }
@media (max-width: 640px) { .wordmark small { display: none; } }
.wordmark--sm { font-size: 28px; margin-bottom: 10px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 13px; letter-spacing: 0.02em; }
.nav a { color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--ink); border-color: var(--ink); }
.search-toggle { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.search-toggle:hover { background: var(--paper-2); }
.searchbar { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 14px; }
.searchbar input { width: 100%; font: 300 26px/1.2 var(--serif); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; color: var(--ink); outline: none; }
.searchbar input::placeholder { color: var(--muted); }
@media (max-width: 640px) {
  .masthead__row { gap: 12px; flex-wrap: wrap; }
  .wordmark { font-size: 28px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; }
  .search-toggle { margin-left: auto; }
}

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); min-height: 70vh; }

/* ── Feature of the week ───────────────── */
.feature { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: clamp(20px, 3vw, 48px); padding: clamp(24px, 4vw, 56px) 0 clamp(36px, 5vw, 72px); border-bottom: 1px solid var(--line); align-items: end; }
.feature__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.feature:hover .feature__media img { transform: scale(1.025); }
.feature__thumbs { display: flex; gap: 8px; margin-top: 8px; }
.feature__thumbs button { flex: 1; aspect-ratio: 3/2; overflow: hidden; opacity: .55; transition: opacity .2s; background: var(--paper-2); }
.feature__thumbs button.is-on, .feature__thumbs button:hover { opacity: 1; }
.feature__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.eyebrow b { color: var(--orange); font-weight: 600; }
.feature__title { font: 300 clamp(40px, 5.2vw, 76px)/1.02 var(--serif); letter-spacing: -0.03em; margin: 14px 0 18px; text-wrap: balance; }
.feature__by { font-size: 15px; color: var(--ink-2); margin: 0 0 18px; }
.feature__excerpt { font: 300 21px/1.4 var(--serif); color: var(--ink-2); margin: 0 0 26px; max-width: 34ch; }
.more { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 500; letter-spacing: .02em; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.more:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; align-items: start; } .feature__excerpt { max-width: none; } }

/* ── Section heads + filters ─────────────── */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 40px 0 20px; flex-wrap: wrap; }
.section-head h2 { font: 300 clamp(30px, 3.4vw, 44px)/1.02 var(--serif); margin: 0; letter-spacing: -0.03em; }
.section-head h2 em { color: var(--muted); font-style: normal; font-weight: 300; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }
.day { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 34px 0 14px; border-top: 1px solid var(--line); margin-top: 18px; display: flex; justify-content: space-between; }
.day:first-of-type { border-top: 0; margin-top: 0; padding-top: 4px; }

/* ── Cards ───────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 30px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { display: block; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .5s; opacity: 0; }
.card__media img.is-loaded { opacity: 1; }
.card__media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img { transform: scale(1.03); }
.card:hover .card__media img.alt.is-loaded { opacity: 1; }
.card__meta { display: flex; gap: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; flex-wrap: wrap; }
.card__meta span + span::before { content: '·'; margin-right: 8px; }
.card__title { font: 300 25px/1.1 var(--serif); margin: 0 0 6px; text-wrap: balance; }
.card:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card__by { font-size: 13px; color: var(--ink-2); margin: 0; }
.card__src { font-size: 12px; color: var(--muted); margin-top: 4px; }
.grid--lead .card:first-child { grid-column: span 2; }
.grid--lead .card:first-child .card__media { aspect-ratio: 16 / 9.4; }
.grid--lead .card:first-child .card__title { font-size: 34px; }
@media (max-width: 600px) { .grid--lead .card:first-child { grid-column: auto; } .grid--lead .card:first-child .card__media { aspect-ratio: 4/3; } }

.loadmore { display: block; margin: 56px auto 24px; padding: 14px 30px; border: 1px solid var(--ink); font-size: 13px; letter-spacing: .04em; }
.loadmore:hover { background: var(--ink); color: var(--paper); }
.empty { padding: 80px 0; text-align: center; color: var(--muted); font: 400 24px var(--serif); }

/* ── Ads — quiet, always labelled ─────────────── */
.ad { position: relative; background: color-mix(in srgb, var(--sand) 45%, var(--paper)); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.ad__label { position: absolute; top: 8px; left: 10px; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); opacity: .8; }
.ad__ph { font-size: 11px; letter-spacing: .06em; opacity: .55; text-align: center; line-height: 1.6; }
.ad ins { display: block; width: 100%; }
.ad--card { aspect-ratio: 4 / 3; align-self: start; }
.ad--card + .ad__foot { display: none; }
.ad--banner { min-height: 100px; margin: 44px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; padding: 22px 0; }
.ad--banner .ad__slot { width: min(728px, 100%); min-height: 90px; background: color-mix(in srgb, var(--sand) 45%, var(--paper)); display: grid; place-items: center; }
.ad--side { width: 100%; min-height: 250px; margin-top: 34px; }
.adwrap { display: flex; flex-direction: column; }
.adwrap .ad__foot { font-size: 11px; color: var(--muted); margin-top: 12px; letter-spacing: .04em; }

/* ── Project page ─────────────────────── */
.project { padding: clamp(20px, 3vw, 40px) 0 40px; }
.crumbs { font-size: 12px; color: var(--muted); display: flex; gap: 8px; margin-bottom: 22px; }
.crumbs a:hover { color: var(--ink); }
.project__head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: clamp(20px, 3vw, 56px); align-items: end; margin-bottom: 28px; }
.project__title { font: 300 clamp(44px, 6vw, 92px)/1.02 var(--serif); letter-spacing: -0.03em; margin: 12px 0 0; text-wrap: balance; }
.project__by { font: 300 clamp(22px, 2.2vw, 30px)/1.2 var(--serif); color: var(--ink-2); margin: 0; }
.project__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: clamp(20px, 3vw, 56px); }
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.gallery figure { margin: 0; background: var(--paper-2); overflow: hidden; cursor: zoom-in; }
.gallery figure:first-child, .gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; height: auto; opacity: 0; transition: opacity .6s; }
.gallery img.is-loaded { opacity: 1; }
.info { position: sticky; top: 96px; align-self: start; }
.info__excerpt { font: 300 23px/1.4 var(--serif); margin: 0 0 28px; color: var(--ink); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.facts dt { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.facts dd { margin: 0; }
.source-cta { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding: 16px 18px; background: var(--blue); color: #fff; font-size: 13px; transition: background .2s; }
.source-cta:hover { background: var(--ink); }
.source-cta small { display: block; opacity: .65; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.share { display: flex; gap: 16px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.share button:hover, .share a:hover { color: var(--ink); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); margin-top: 60px; padding-top: 26px; }
.pager a { display: block; }
.pager a:last-child { text-align: right; }
.pager small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pager span { display: block; font: 300 26px/1.15 var(--serif); margin-top: 6px; }
.pager a:hover span { color: var(--accent); }
@media (max-width: 900px) {
  .project__head, .project__body { grid-template-columns: 1fr; }
  .info { position: static; }
  .gallery { grid-template-columns: 1fr; } .gallery figure:first-child, .gallery figure.wide { grid-column: auto; }
}

/* ── Lightbox ─────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(12,12,11,.96); display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; color: #eee; font-size: 13px; letter-spacing: .08em; padding: 14px; }
.lightbox .lb-close { top: 10px; right: 14px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lightbox .lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #aaa; font-size: 12px; letter-spacing: .1em; }

/* ── About ───────────────────────────── */
.about { max-width: 760px; padding: 60px 0 40px; }
.about h1 { font: 300 clamp(44px, 6vw, 80px)/1.02 var(--serif); margin: 0 0 30px; letter-spacing: -0.03em; }
.about p { font: 300 22px/1.45 var(--serif); color: var(--ink-2); }
.about p.small { font: 14px/1.6 var(--sans); color: var(--muted); }

/* ── Footer ───────────────────────────── */
.footer { border-top: 1px solid var(--line); margin-top: 80px; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter) 24px; display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; font-size: 13px; color: var(--ink-2); }
.footer h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 6px 0 12px; }
.footer p { margin: 0; max-width: 42ch; }
.footer a { border-bottom: 1px solid var(--line); }
.footer a:hover { border-color: var(--ink); }
.footer__base { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 30px; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); letter-spacing: .04em; border-top: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; gap: 26px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Bloc touches */
.card__title, .feature__title, .project__title, .pager span { font-weight: 400; }
.feature__title, .project__title { font-weight: 300; }
.card__title { font-size: 21px; letter-spacing: -0.015em; line-height: 1.18; }
.grid--lead .card:first-child .card__title { font-size: 30px; }
.feature__excerpt, .info__excerpt, .about p { font-weight: 300; }
.more { color: var(--blue); border-color: var(--blue); }
.more:hover { color: var(--orange); border-color: var(--orange); }
.monogram { display: inline-grid; grid-template-columns: auto auto; font: 600 13px/0.9 var(--sans); letter-spacing: 0; color: var(--ink); }
.monogram i { font-style: normal; display: block; }
.footer__bloc { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.footer__bloc img { height: 34px; width: auto; }
.blocmark { font: 600 22px/0.92 var(--sans); letter-spacing: -0.035em; color: var(--blue); }
.footer a.footer__bloc { border: 0; }
.section-intro { font: 300 20px/1.45 var(--sans); color: var(--ink-2); max-width: 46ch; margin: -6px 0 26px; }
.ad, .ad--banner .ad__slot { background: #f7f3ec; }
.ad--banner { background: transparent; }
