/* Screenwest homepage developer reference.
   Source: supplied 1440px desktop / mobile artwork and agreed specification.
   Fluid width is independent of hero height, type size and vertical spacing. */
:root {
  --ink: #242320;
  --paper: #fff;
  --soft: #faf9f7;
  --max-content: 1600px;
  /* Approx. 100px at 1440 matches artwork; max width applies to CONTENT. */
  --gutter: clamp(60px, 6.944vw, 100px);
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-5: 48px; --space-6: 64px; --space-7: 80px; --space-8: 120px; --space-9: 160px;
  --grid-gap: 80px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-weight: 700; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
button,input { font: inherit; color: inherit; }
button { cursor: pointer; }
button,a,input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #327ab5; outline-offset: 5px; }
.container { width: calc(100% - var(--gutter) * 2); max-width: var(--max-content); margin-inline: auto; }
.section-space { padding-block: var(--space-8); }
.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; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 10; padding: 12px 24px; background: white; color: var(--ink); }
.skip-link:focus { top: 16px; }
[hidden] { display: none !important; }
/* Temporary image atlas: crops of the supplied flattened approved artwork.
   Swap these for original <img> assets with object-fit:cover in production.
   No text, cards, forms or page layout are rendered as screenshots. */
.artwork { background-image: url('assets/approved-desktop.jpg'); background-repeat: no-repeat; }
.brand-art { display: block; width: 304px; aspect-ratio: 208 / 50; background-size: 474.0385% auto; background-position: 8.8689% 1.2513%; }
.site-header { background: var(--ink); color: white; }
.header-inner { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
#navigation { display: flex; align-items: center; gap: 32px; font-size: 18px; }
.search-toggle { border: 0; background: none; color: white; width: 44px; height: 44px; padding: 9px; }
.search-toggle svg,.socials svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; }
.menu-toggle { display: none; }
.search-panel { padding-bottom: 32px; }
.search-panel label { display: block; margin-bottom: 8px; }
.search-panel>div { display: flex; gap: 16px; }
.search-panel input { background: white; color: var(--ink); width: min(500px,75%); padding: 12px; }
.search-panel button { padding: 12px; border: 1px solid white; background: none; }
.search-panel p { margin-top: 12px; }
/* Hero stays full bleed. Desktop height is capped at 650px on wide displays.
   This deliberately follows the agreed cap rather than enlarging the artwork's hero. */
.hero { height: clamp(520px,43vw,650px); overflow: hidden; }
.hero-frame { width: 100%; height: 100%; overflow: hidden; position: relative; }
.hero-art { position: absolute; width: max(100%, calc(clamp(520px,43vw,650px) * 986 / 556)); aspect-ratio: 986 / 556; left: 50%; top: 50%; transform: translate(-50%,-50%); background-size: 100% auto; background-position: 0 6.83646%; }
.intro-grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--grid-gap); }
h1 { font-size: clamp(34px,3.05vw,44px); line-height: 1.12; letter-spacing: -.4px; }
h1 span,.newsletter h2 span { font-weight: 400; }
.intro-copy { padding-top: 5px; }
.intro-copy p { margin-bottom: 24px; }
.text-link { font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.mobile-label { display: none; }
.news { background: var(--soft); padding-block: 72px 80px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
h2 { font-size: 30px; line-height: 1.15; }
.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: var(--grid-gap); row-gap: 64px; }
.news-card { display: flex; flex-direction: column; min-width: 0; }
.news-image { aspect-ratio: 246 / 210; overflow: hidden; position: relative; margin-bottom: 32px; }
.news-image .artwork { position: absolute; inset: 0; background-size: 400.813% auto; }
.news-one { background-position: 9.45946% 56.3656%; }
.news-two { background-position: 50% 56.3656%; }
.news-three { background-position: 90.81081% 56.3656%; }
.metadata { font-size: 12px; line-height: 1.4; margin-bottom: 24px; }
.metadata span { margin-inline: 3px; }
h3 { font-size: 24px; line-height: 1.1; margin-bottom: 24px; }
.card-copy { margin-bottom: 16px; }
.news-card>.text-link { margin-top: auto; align-self: flex-start; }
.newsletter { padding-block: 80px; }
.newsletter-grid { display: grid; grid-template-columns: 1fr 2.5fr; align-items: start; gap: 48px; }
.newsletter h2 { font-size: 28px; line-height: 1.2; }
#newsletter-form { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 12px; align-items: start; }
#newsletter-form input { min-width: 0; width: 100%; border: 1px solid var(--ink); border-radius: 0; padding: 12px 16px; height: 50px; background: white; }
input::placeholder { color: #444; opacity: 1; }
#newsletter-form button { border: 0; background: none; padding: 0 0 0 12px; height: 50px; }
#newsletter-status { grid-column: 1/-1; font-size: 16px; margin-top: 12px; }
.site-footer { background: var(--ink); color: white; padding-block: 72px 80px; }
.footer-top { display: flex; justify-content: space-between; gap: 64px; }
.supporters { width: 280px; aspect-ratio: 190 / 60; background-size: 518.9474% auto; background-position: 8.79397% 89.73843%; margin-top: 16px; }
.connect { min-width: 304px; }
.socials { display: flex; gap: 16px; margin-top: 32px; }
.socials a { display: flex; align-items: center; justify-content: center; border: 1px solid white; border-radius: 50%; width: 42px; height: 42px; font-size: 28px; line-height: 1; font-weight: 700; }
.socials a:nth-child(2) { font-size: 22px; }
.socials .youtube { font-size: 11px; text-align: center; }
.socials svg { width: 30px; height: 30px; }.socials .dot { fill: currentColor; stroke: none; }
.acknowledgement { font-size: 12px; line-height: 1.4; margin-block: 80px 64px; }
.footer-bottom { display: flex; align-items: center; gap: 40px; }
.footer-bottom nav { display: flex; gap: 40px; }
.back-top { margin-left: auto; white-space: nowrap; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
dialog { width: min(520px,calc(100% - 48px)); padding: 40px; border: 0; color: var(--ink); }
dialog::backdrop { background: rgb(0 0 0 / .6); }
dialog p { margin-top: 24px; }
.dialog-close { float: right; margin: -24px -24px 8px 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 32px; }
/* Tablet: two cards per row and form beneath its heading. */
@media (min-width:768px) and (max-width:1199px) {
  :root { --gutter: 40px; --grid-gap: 32px; }
  .header-inner { min-height: 120px; gap: 24px; }
  .brand-art { width: 230px; }
  #navigation { gap: 16px; font-size: 15px; }
  .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .newsletter-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-wrap: wrap; gap: 16px 32px; }
  .connect { min-width: 230px; }
}
/* Mobile is a deliberate re-layout, not a scaled desktop canvas. */
@media (max-width:767px) {
  :root { --gutter: 24px; --grid-gap: 24px; }
  body { font-size: 15px; line-height: 1.45; }
  .header-inner { min-height: 86px; gap: 16px; flex-wrap: wrap; position: relative; }
  .brand-art { width: 160px; }
  .menu-toggle { display: grid; place-items: center; padding: 8px; width: 44px; height: 44px; border: 0; background: none; color: white; }
  .menu-lines,.menu-lines::before,.menu-lines::after { display: block; width: 32px; height: 1px; background: currentColor; position: relative; }
  .menu-lines::before,.menu-lines::after { content: ''; position: absolute; left: 0; }
  .menu-lines::before { top: -9px; }.menu-lines::after { top: 9px; }
  .menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines::after { top: 0; transform: rotate(-45deg); }
  #navigation { display: none; width: 100%; padding-bottom: 24px; flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
  #navigation.is-open { display: flex; }
  #navigation>a { padding-block: 12px; }
  .hero { height: clamp(360px,111vw,520px); }
  /* Subject placed left-of-centre to reproduce the mobile crop. */
  .hero-art { width: calc(clamp(360px,111vw,520px) * 986 / 556); left: 42%; }
  .section-space { padding-block: 48px; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  h1 { font-size: 32px; line-height: 1.06; letter-spacing: 0; }
  .intro-copy { padding: 0; }
  .intro-copy p { margin-bottom: 24px; }
  .text-link { font-size: 15px; }
  .desktop-label { display: none; }.mobile-label { display: inline; }
  h2 { font-size: 24px; }
  .section-heading { margin-bottom: 24px; }
  .more-news { display: none; }
  .news-grid { grid-template-columns: 1fr; gap: 56px; }
  .news-image { aspect-ratio: 1.6; margin-bottom: 32px; }
  /* Preserve the desktop source crop, then mask to the wider mobile ratio. */
  .news-image .artwork { bottom: auto; width: 100%; aspect-ratio: 246 / 210; top: 50%; transform: translateY(-50%); }
  .metadata { font-size: 11px; margin-bottom: 16px; }
  h3 { font-size: 21px; margin-bottom: 24px; }
  .card-copy { margin-bottom: 8px; }
  .newsletter { padding-block: 48px; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 32px; }
  .newsletter h2 { font-size: 24px; }
  #newsletter-form { grid-template-columns: 1fr; gap: 12px; }
  #newsletter-form input { height: 44px; padding: 10px 12px; }
  #newsletter-form button { justify-self: start; padding: 0; margin-top: 12px; }
  .site-footer { padding-block: 48px 24px; }
  .footer-top { flex-direction: column; gap: 48px; }
  .supporters { width: 180px; }
  .socials { margin-top: 12px; gap: 12px; }
  .acknowledgement { font-size: 11px; margin-block: 48px; }
  .footer-bottom { display: block; font-size: 13px; }
  .footer-bottom nav { gap: 24px; flex-wrap: wrap; }
  .back-top { margin-top: 24px; }
}
@media (max-width:390px) { h1 { font-size: 30px; }.metadata { font-size: 10px; } }
/* Motion is intentionally restrained; no parallax is required by the design.
   This covers anchor scrolling and future transitions for reduced-motion users. */
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none !important; transition: none !important; } }
/* Final narrow-screen checks: prevent footer overflow and retain the lead face. */
@media (max-width:767px) {
  .connect { min-width: 0; }
  .hero-art { left: 70%; }
}
@media (max-width:767px) {
  .hero-art { left: min(70%, calc(clamp(360px,111vw,520px) * 986 / 556 / 2)); }
}
