/* F9 Contemporary — site styles
   Structure follows the Pyramid of Broken Promises site: one centred column,
   compact header, picture-first homepage, tight spacing, slim footer.
   Type scale (used everywhere): page title 40 / lead 20 / section heading 20 /
   body 16 / meta 13 mono / label 12 mono. Headings 500, text 400. Only the logo is bold.
   Change --accent to recolour every red mark on the site. */
:root {
  --accent: #C0161F;
  --accent-dark: #8E0F16;
  --accent-on-dark: #E5484D;
  --ground: #F6F5F1;
  --ink: #111111;
  --body: #2B2B2B;
  --muted: #5F5F5F;
  --rule: #D9D7D0;
  --wrap: 1100px;
  --side: clamp(20px, 4vw, 40px);
  --gap: clamp(36px, 4.5vw, 56px);
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", Inter, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--side)); margin: 0 auto; padding: 0 var(--side); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--ground); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 32px; min-height: 64px; }
/* Logo (version B): F9 reversed out of a red square, CONTEMPORARY in black.
   Square side = 44px; F9 and word at 17px Inter Bold; gap = 10px. Same proportions as the logo files. */
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-family: Inter, system-ui, sans-serif; font-weight: 700; font-size: 17px; line-height: 1; }
.wordmark .box { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--accent); color: #FFFFFF; letter-spacing: 0; }
.wordmark .word { letter-spacing: 0.08em; }
.wordmark:hover { color: var(--ink); }
.wordmark:hover .box { background: var(--accent-dark); }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; padding: 0; font-size: 15px; font-weight: 400; }
.nav a { display: inline-block; padding: 12px 0; text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* 'Back to …' bar: stays at the top of the screen when a visitor arrives from another F9 page */
.back-bar { position: sticky; top: 0; z-index: 5; background: var(--ground); border-bottom: 1px solid var(--rule); }
.back-bar .link { padding: 10px 0; font-size: 14px; }

/* Shared type */
.label { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.label--accent { color: var(--accent); }
.page-title { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.lead { font-family: var(--sans); font-weight: 400; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--ink); }
.h2 { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.3; letter-spacing: -0.01em; }
.card__title { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.015em; }
.statement { font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.45; color: var(--ink); }
.text { font-size: 16px; line-height: 1.65; color: var(--body); }
.caption { padding-top: 4px; font-family: var(--mono); font-size: 10px; line-height: 1.45; color: var(--muted); }
.meta { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* Page blocks */
.page-head { padding: clamp(36px, 5vw, 56px) 0 clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.page-head .lead { max-width: 760px; }
.block { padding: var(--gap) 0; border-top: 1px solid var(--rule); }
.block:first-child { border-top: 0; }
/* A strong (2px) rule opens a new section, e.g. "Current programme", "Education" */
.section-strong { border-top: 2px solid var(--ink); padding: 18px 0 var(--gap); }
.section-title { padding-bottom: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 12px 48px; }
.row > .row__label { flex: 0 0 180px; padding-top: 3px; }
.row > .row__body { flex: 1 1 520px; min-width: 0; max-width: 720px; }

/* Links styled as buttons */
/* Red for actions: buttons and text links are F9 Red; the menu, titles and event lists stay black. */
.link { display: inline-block; padding: 10px 0; font-weight: 400; font-size: 15px; color: var(--accent); text-underline-offset: 6px; }
.link:hover { color: var(--accent-dark); }
.text a, .what a, .email { color: var(--accent); }
.text a:hover, .what a:hover, .email:hover { color: var(--accent-dark); }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 400; font-size: 15px; }
.button:hover { background: var(--accent-dark); color: #FFFFFF; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding-top: 4px; }

/* The red F9 grade mark. Ring line = stem weight of the bold F9 letters (Inter Bold stem is 0.149 of the type size) */
.stamp { flex: none; display: flex; align-items: center; justify-content: center; border: 0.149em solid var(--accent); border-radius: 50%; transform: rotate(-9deg); font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; color: var(--accent); width: 104px; height: 104px; font-size: 44px; }
.stamp--on-dark { border-color: #FFFFFF; color: #FFFFFF; }

/* Home */
.hero-photo { margin: 0; }
.hero-photo img, .photo-placeholder { width: 100%; aspect-ratio: 16 / 7; max-height: 72vh; object-fit: cover; }
/* Keeps the top of the pylon and the bridge in frame when the photo is cropped */
.hero-photo img { object-position: 50% 28%; }
.photo-placeholder { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #BDBDBD; line-height: 1.8; }
/* Home photo caption: the page's one F9 Red field, white text (brand rule: white on red) */
.hero-photo figcaption { background: var(--accent); color: #FFFFFF; padding: 8px var(--side); font-family: var(--mono); font-size: 11px; line-height: 1.5; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(32px, 4vw, 48px) 0 clamp(8px, 1vw, 12px); }
.hero h1 { max-width: 11ch; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5.6vw, 80px); line-height: 0.98; letter-spacing: -0.035em; }
.hero .mark { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero .mark .label { font-size: 10px; }
.card { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
.card figure { flex: 1 1 480px; min-width: 0; }
.card figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }

/* About */
/* Signature colour field: F9 Red as a solid band, used ONCE on the site (About: The Meaning of F9).
   White on F9 Red, like Goethe-Institut green or Prince Claus orange fields. */
.dark-band { background: var(--accent); color: #FFFFFF; }
.dark-band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-top: var(--gap); padding-bottom: var(--gap); }
.dark-band .mark { flex: 0 0 180px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dark-band .stamp { width: 88px; height: 88px; font-size: 36px; }
.dark-band .label { color: #FFE9EA; font-size: 10px; }
.dark-band__body { flex: 1 1 520px; max-width: 680px; display: flex; flex-direction: column; gap: 12px; }
.dark-band__body p { font-size: 15px; line-height: 1.65; color: #FFFFFF; }
.timeline > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--rule); }
.timeline > div:first-child { padding-top: 0; border-top: 0; }
.timeline > div:last-child { padding-bottom: 0; }
.timeline .when { flex: 0 0 150px; font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 2px; }
.timeline .what { flex: 1 1 300px; font-size: 16px; line-height: 1.6; color: var(--body); }

/* Programme */
.project figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project__intro { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; max-width: 820px; }
.project__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; padding-top: 24px; align-items: start; }
.project__main { min-width: 0; }
.project__side { min-width: 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; font-family: var(--mono); font-size: 13px; padding-top: 4px; }
.facts dt { color: var(--muted); }
.side-events { list-style: none; padding: 0; }
.side-events li { border: 0; }
.side-title { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.side-events a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 0 0 4px; text-decoration: none; }
.side-events .when { flex: 0 0 auto; min-width: 190px; white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.side-events .t { flex: 1 1 180px; }
.side-events .t { font-size: 13px; line-height: 1.45; }
.side-events a:hover .t { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }

/* Archive */
.archive { list-style: none; padding: 0; }
.archive li { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 22px 0; border-top: 1px solid var(--rule); }
.archive li:last-child { border-bottom: 1px solid var(--rule); }
.archive li { scroll-margin-top: 24px; }
/* An entry opened from a link elsewhere on the site is marked in red */
.archive li:target h2, .archive li:target .year { color: var(--accent); }
.archive li:target { border-top: 2px solid var(--accent); }
.archive .head { flex: 0 1 340px; display: flex; flex-direction: column; gap: 4px; }
.archive .year { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.archive h2 { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.archive .head p:last-child { font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--muted); }
.archive .desc { flex: 1 1 420px; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--body); }
.archive .desc .link { padding: 8px 0 0; font-size: 14px; }

/* Contact */
.contact-rows .row { padding: 18px 0; border-top: 1px solid var(--rule); }
.contact-rows .row:last-child { border-bottom: 1px solid var(--rule); }
.email { overflow-wrap: anywhere; font-family: var(--sans); font-weight: 400; font-size: clamp(18px, 2vw, 22px); line-height: 1.3; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.follow { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; padding: 0; font-size: 16px; }
.follow a { display: inline-block; padding: 8px 0; text-underline-offset: 5px; }

/* Journal */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 0 20px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: 400 14px var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.teasers { list-style: none; padding: 0; }
.teaser { border-top: 1px solid var(--rule); }
.teaser:last-child { border-bottom: 1px solid var(--rule); }
.teaser a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; text-decoration: none; }
.teaser .when { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.teaser .t { font-family: var(--display); font-weight: 500; font-size: 20px; }
.teaser .s { font-size: 15px; color: var(--muted); }
.article .h2 { padding-top: 12px; }

/* Footer: slim. Row 1: logo left, copyright right. Row 2: foundation statement left,
   social links (when they exist) right, under the copyright. */
.site-footer { border-top: 1px solid var(--ink); margin-top: var(--gap); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px; padding-top: 16px; padding-bottom: 20px; font-size: 12px; color: var(--muted); }
.site-footer p { line-height: 1.5; }
.wordmark--small { gap: 7px; min-height: 24px; font-size: 11px; }
.wordmark--small .box { width: 24px; height: 24px; }
.copyright { text-align: right; font-size: 11px; }
.footer-statement { grid-column: 1; font-size: 11px; max-width: 620px; }
.social { grid-column: 2; grid-row: 2; align-self: start; justify-content: flex-end; display: flex; flex-wrap: wrap; gap: 0 16px; list-style: none; padding: 0; font-size: 11px; }
.social a { display: inline-block; padding: 2px 0; color: var(--ink); }

@media (max-width: 560px) {
  .project__cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav ul { gap: 0 18px; font-size: 14px; }
  .hero { align-items: center; }
  .stamp { width: 80px; height: 80px; font-size: 34px; }
  .dark-band .mark { flex-basis: 100%; flex-direction: row; justify-content: flex-start; }
  .row > .row__label { flex-basis: 100%; }
  .archive li { padding: 18px 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .copyright { text-align: left; grid-row: 4; }
  .social { grid-column: 1; grid-row: 3; justify-content: flex-start; }
}
