/* Become Fluent design refresh (2026-11-28). Shared base for redesigned pages; plan in _drafts/design-plan-madrid-journal.md. */
/* Archivo and Newsreader, self-hosted (SIL Open Font License, from Google Fonts). */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/newsreader-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/newsreader-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/newsreader-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --papel: #F3F4F1;
  --tinta: #1E2540;
  --tinta-suave: #565D76;
  --cal: #FBFBF7;
  --cobalto: #1D3F94;
  --cobalto-texto: #1D3F94;
  --azafran: #EAA91F;
  --regla: #D5D8DE;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papel: #14182B; --tinta: #E6E8F0; --tinta-suave: #A7ADC4;
    --cobalto-texto: #8FA6EE; --regla: #2C3350; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papel: #14182B; --tinta: #E6E8F0; --tinta-suave: #A7ADC4;
  --cobalto-texto: #8FA6EE; --regla: #2C3350; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--sans); font-stretch: 96%;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalto-texto); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalto-texto); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--cal); color: var(--cobalto); padding: .6rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 600px) { .wrap { padding-inline: 28px; } }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); letter-spacing: -.01em; font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.45rem; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
p { margin: 0; }
p + p { margin-top: 1rem; }
em { font-style: italic; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--tinta); text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 1.25rem; font-size: .97rem; }
.site-header nav a:not(.btn) { color: var(--tinta); text-decoration: none; padding-block: .6rem; }
.site-header nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--cobalto-texto); text-decoration-thickness: 2px; }
.brand { white-space: nowrap; }
.site-header nav a { white-space: nowrap; }
/* phone menu: a disclosure with the same links, no script needed */
.nav-menu { display: none; }
@media (max-width: 760px) {
  .site-header nav { gap: .9rem; }
  .site-header nav > a:not(.btn):not(.login) { display: none; }
  .site-header nav:has(.nav-menu) > a.login { display: none; }
  .nav-menu { display: block; position: relative; }
  .nav-menu summary { list-style: none; cursor: pointer; padding: .6rem .2rem; font-size: .97rem; }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu[open] summary { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
  .nav-menu .menu-panel { position: absolute; right: -4.5rem; top: 100%; z-index: 20; background: var(--papel); border: 1.5px solid var(--tinta); border-radius: 3px; padding: .4rem 0; min-width: 14rem; box-shadow: 0 10px 30px rgba(20,24,43,.18); }
  .nav-menu .menu-panel a { display: block; padding: .75rem 1rem; color: var(--tinta); text-decoration: none; }
  .nav-menu .menu-panel a:hover { background: color-mix(in srgb, var(--tinta) 6%, transparent); }
}

.btn {
  display: inline-block; background: var(--azafran); color: #1E2540; border: 0; border-radius: 3px;
  padding: .85rem 1.4rem; font: 600 1rem/1.2 var(--sans); text-decoration: none; min-height: 44px;
}
.btn:hover { background: #F3BB43; text-decoration: none; }
.btn-small { padding: .6rem 1rem; font-size: .95rem; }

.crumbs { font-size: .92rem; color: var(--tinta-suave); padding-top: .25rem; }
.crumbs a { color: var(--tinta-suave); }

/* hero */
.hero { display: grid; gap: 2rem; padding-top: 1.5rem; padding-bottom: 3rem; align-items: start; }
.hero .lede { font-size: 1.2rem; margin-top: 1.25rem; max-width: 34em; }
.hero-text > p:not(.lede) { max-width: 34em; }
.byline { color: var(--tinta-suave); font-size: .95rem; }
.hero-text .btn { margin-top: .5rem; }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: 2px; width: 100%; }
figcaption { font-size: .9rem; color: var(--tinta-suave); margin-top: .5rem; line-height: 1.45; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) 440px; gap: 4rem; padding-top: 2.5rem; }
  .hero-text { padding-top: 2rem; }
}

/* at a glance */
.glance { padding-bottom: 3.5rem; }
.glance h2 { font-size: 1.35rem; }
.glance dl { margin: 1rem 0 0; max-width: 46rem; }
.glance dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--regla); }
.glance dt { font-weight: 600; }
.glance dd { margin: 0; }

/* days */
.day { padding-block: 3rem; border-top: 1px solid var(--regla); }
.day > div > h2, .day > h2 { max-width: 30ch; }
.day-n { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--tinta-suave); margin-bottom: .35rem; }

.stop { display: grid; gap: 1.25rem; margin-top: 3rem; }
.stop-body { min-width: 0; }
.stop-body > p, .stop-body > h4, .said, .david p, .closing p { max-width: 62ch; }
.stop-body > h3 + p { margin-top: .9rem; }
.stop-body > h4.part { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin-top: 2.25rem; margin-bottom: .75rem; }
@media (min-width: 900px) {
  .stop { grid-template-columns: 17.5rem minmax(0, 1fr); gap: 3rem; }
  .stop .plaque { position: sticky; top: 1.5rem; }
}

/* the one bold element: Madrid's tiled street plaque */
.plaque {
  --tile: 5.25rem;
  justify-self: start; align-self: start; width: min(100%, 17.5rem);
  display: flex; flex-direction: column; justify-content: center; gap: .3rem;
  min-height: 8.5rem;
  padding: 1.5rem 1.6rem;
  color: var(--cobalto);
  background-color: var(--cal);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--tile) - 1px), rgba(29,63,148,.16) calc(var(--tile) - 1px) var(--tile));
  border: 6px solid var(--cobalto);
  outline: 2px solid var(--cobalto); outline-offset: -13px;
  border-radius: 4px;
}
.plaque-name { font-family: var(--serif); font-style: italic; font-size: 2.15rem; line-height: 1; font-weight: 500; }
.plaque-sub { font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; }
@media (max-width: 899px) { .plaque { min-height: 7.25rem; } .plaque-name { font-size: 1.9rem; } }

/* the Spanish we spoke */
.said { margin-top: 1.75rem; }
.said h4 { color: var(--tinta-suave); font-weight: 500; font-size: .95rem; }
.said dl { margin: .5rem 0 0; }
.said dl div { padding: .45rem 0 .5rem 1rem; border-left: 2px solid var(--regla); }
.said dt { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.3; }
.said dd { margin: .1rem 0 0; color: var(--tinta-suave); font-size: .95rem; }

/* photos: real proportions, no cards */
.photos { columns: 2 15rem; column-gap: 1rem; margin-top: 1.75rem; max-width: 46rem; }
.photos figure { break-inside: avoid; margin: 0 0 1.25rem; }
.photos img, .photos video { width: 100%; border-radius: 2px; }
.photos video { background: #000; }
.credit { display: block; font-size: .8rem; margin-top: .15rem; }
.credit a { color: inherit; }

/* David + closing */
.david, .closing { padding-block: 3rem; border-top: 1px solid var(--regla); }
.david h2, .closing h2 { margin-bottom: 1rem; }
.closing .btn { margin-top: .5rem; }
.closing .aside { color: var(--tinta-suave); font-size: .97rem; margin-top: 1.25rem; }

.site-footer { border-top: 1px solid var(--regla); padding-block: 2rem 3rem; font-size: .92rem; color: var(--tinta-suave); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--tinta-suave); margin-right: 1rem; }

/* helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js-only { display: none; }
.js .js-only { display: revert; }
.js .no-js-only { display: none; }
