/* IYF Botswana: general site theme, taken from the IYF 2023 brochure.
   Solid IYF blue pages, white editorial pages with thin top rules, big condensed caps,
   light-blue numerals, dotted quote boxes, grey call-out boxes, 2x2 photo grids. */

:root {
  --blue: #0188c8;
  --blue-deep: #007fbe;
  --blue-bright: #008fcc;
  --num: #3aa6dc;
  --ink: #1d2733;
  --text: #4a5560;
  --rule: #1d2733;
  --hair: #d5dde4;
  --grey: #e6e8ea;
  --paper: #ffffff;
  --soft: #f4f8fb;

  --font-head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Frutiger", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.7; font-weight: 400; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--hair); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand-name { white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .62rem; letter-spacing: .12em; color: var(--text); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { white-space: nowrap; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 8px 9px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue-deep); }
.nav .btn { margin-left: 10px; border-bottom: 0; color: #fff; }
.nav a.btn:hover { color: #fff; background: var(--blue-deep); }
.nav-toggle { display: none; font: inherit; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: none; border: 2px solid var(--ink); padding: 6px 14px; color: var(--ink); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 11px 26px; border: 2px solid transparent; transition: background .15s, color .15s; cursor: pointer; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--white { background: #fff; color: var(--blue-deep); }
.btn--white:hover { background: var(--soft); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--line-light { border-color: #fff; color: #fff; }
.btn--line-light:hover { background: #fff; color: var(--blue-deep); }
.btn--small { padding: 7px 18px; font-size: 1rem; }

/* ---------- Cover (hero) ---------- */
.cover { background: var(--blue); color: #fff; text-align: center; overflow: hidden; }
.cover-top { padding: clamp(48px, 9vw, 110px) var(--gutter) 0; }
.cover .org { font-family: var(--font-body); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; opacity: .9; margin-bottom: 22px; }
.cover h1 { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: .98; font-size: clamp(3rem, 10vw, 7rem); margin: 0 auto 18px; max-width: 12ch; }
.cover .sub { font-weight: 300; font-size: clamp(1rem, 2vw, 1.3rem); max-width: 46ch; margin: 0 auto 28px; opacity: .95; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cover-art { margin-top: clamp(24px, 5vw, 56px); }
.cover-art img { width: 100%; height: auto; max-width: 760px; margin-inline: auto; }

/* ---------- Editorial sections ---------- */
.section { padding-block: clamp(48px, 7vw, 92px); }
.section--soft { background: var(--soft); }
.section--blue { background: var(--blue-deep); color: #fff; }
.label { display: block; font-size: .78rem; color: var(--text); padding-top: 10px; border-top: 1px solid var(--rule); margin-bottom: 18px; letter-spacing: .02em; }
.section--blue .label { color: #fff; border-top-color: rgba(255,255,255,.6); }
.head { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; color: var(--blue-deep); letter-spacing: .01em; line-height: 1; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 18px; }
.section--blue .head { color: #fff; }
.head--light { font-weight: 500; }
.edit { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.edit p { max-width: 64ch; }
.edit .col-text { border-top: 1px solid var(--rule); padding-top: 14px; }
.sub-head { font-family: var(--font-body); font-weight: 700; font-size: .9rem; color: var(--blue-deep); margin: 18px 0 4px; }

/* stats */
.stats { margin: 28px 0 0; padding: 0; list-style: none; }
.stats li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; padding: 10px 0; border-bottom: 1px dotted #b8c4ce; }
.stats li:first-child { border-top: 1px dotted #b8c4ce; }
.stats .n { font-family: var(--font-head); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--num); min-width: 3.2ch; }
.stats .l { font-size: .85rem; color: var(--text); }
.stats--light .n { color: #bfe6f7; }
.stats--light .l { color: #fff; }
.stats--light li, .stats--light li:first-child { border-color: rgba(255,255,255,.5); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; border-top: 1px solid rgba(255,255,255,.6); }
.pillar { padding: 26px 26px 10px 0; }
.pillar + .pillar { padding-left: 26px; border-left: 1px solid rgba(255,255,255,.35); }
.pillar h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.pillar p { margin: 0; font-weight: 300; }

/* programme list */
.programs { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 5vw, 64px); }
.programs li { padding: 16px 0 18px; border-top: 1px solid var(--rule); }
.programs h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; color: var(--blue-deep); margin: 0 0 4px; line-height: 1.1; letter-spacing: .02em; }
.programs p { margin: 0; font-size: .95rem; }

/* quote */
.quote { border: 1px dashed #9fb0bd; border-radius: 14px; padding: 22px 28px; margin: 30px 0 0; font-family: "Times New Roman", Times, serif; font-size: 1.15rem; color: var(--ink); max-width: 62ch; }
.quote cite { display: block; margin-top: 10px; text-align: right; font-style: normal; font-family: var(--font-body); font-size: .85rem; color: var(--text); }

/* grey call-out */
.callout { background: var(--grey); padding: 22px 26px; margin-top: 26px; }
.callout strong { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; color: var(--ink); line-height: 1.05; display: block; margin-bottom: 4px; letter-spacing: .02em; }
.callout p { margin: 0 0 14px; font-size: .95rem; }

/* photo grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 30px; }
.shot { margin: 0; position: relative; background: #000; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot figcaption { font-size: .78rem; line-height: 1.35; padding: 7px 2px 0; color: var(--text); background: #fff; }
.section--soft .shot figcaption { background: var(--soft); }
.year-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 18px; }
.year-nav a { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; text-decoration: none; letter-spacing: .04em; color: #fff; border-bottom: 2px solid rgba(255,255,255,.5); }
.year-nav a:hover { border-bottom-color: #fff; }

/* page title band */
.page-title { background: var(--blue); color: #fff; padding-block: clamp(44px, 7vw, 84px); }
.page-title h1 { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 1; margin-bottom: 14px; letter-spacing: .02em; }
.page-title p { font-weight: 300; font-size: 1.15rem; max-width: 52ch; margin: 0; }

/* festival promo (small, on purpose) */
.promo { background: var(--grey); }
.promo .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 36px; padding-block: 28px; }
.promo .k { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 2px; }
.promo .t { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; text-transform: uppercase; color: var(--ink); line-height: 1.1; margin-bottom: 2px; letter-spacing: .02em; }
.promo .d { margin: 0; font-size: .95rem; }

/* contact */
.contact { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: url("../img/sky.jpg") center/cover; opacity: .22; mix-blend-mode: luminosity; }
.contact .wrap { position: relative; }
.contact .label { color: #fff; border-top-color: rgba(255,255,255,.6); }
.contact .head { color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 48px; margin-top: 26px; }
.contact h3 { font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.contact .big { font-family: var(--font-head); font-weight: 600; font-size: 2.8rem; line-height: 1; text-decoration: none; display: inline-block; letter-spacing: .02em; }
.contact p { margin: 0 0 4px; font-weight: 300; }
.social { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; border: 1px solid rgba(255,255,255,.7); padding: 8px 16px; margin-bottom: 8px; }
.social:hover { background: rgba(255,255,255,.16); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--rule); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 40px; padding-block: 30px; }
.f-brand { display: flex; align-items: center; gap: 14px; }
.f-brand img { height: 36px; width: auto; }
.f-brand p { margin: 0; font-size: .85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a { text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.site-footer nav a:hover { color: var(--blue-deep); }

.more { margin-top: 28px; }

@media (max-width: 860px) {
  .edit { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 18px 0 8px; border-left: 0; border-top: 1px solid rgba(255,255,255,.35); }
  .pillar:first-child { border-top: 0; }
  .programs { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1040px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 18px; border-bottom: 1px solid var(--hair); gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .nav .btn { margin: 12px 0 0; text-align: center; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 520px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .brand-name small { display: none; }
}
