/* Côr y Gleision. The look: a light, Welsh-first page in black type, the logo's blue, and a
   heavy blue band carrying five stave lines, with dark sections for the events.

   Contrast (WCAG AA, checked by choir.tests.ContrastTests): the logo blue is too light for text on
   white, so it is only ever a background or decoration; links on white use --link. Text on the
   blue is always --ink. */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/schibsted-grotesk-latin-ext-wght-normal.65233324c912.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/schibsted-grotesk-latin-wght-normal.ba4038fc5cb5.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 {
  --ink: #0b0b0c;
  --paper: #ffffff;
  --muted: #4b5560;
  --link: #2d6fa3;
  --blue: #6aaadc;
  --blue-pale: #c4daf2;
  --mist: #eef3f8;
  --rule: #dde3e9;
  --night: #0b0b0c;
  --night-text: #ffffff;
  --night-muted: #b4bec8;
  --night-rule: #3b4550;
  --night-link: #9cc8ec;
  --error: #a3122a;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 "Schibsted Grotesk", system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(40px, 6vw, 72px); margin: 0 0 24px; }
h2 { font-size: clamp(32px, 4.5vw, 52px); margin: 0 0 20px; }
h3 { font-size: 22px; margin: 0 0 10px; letter-spacing: -0.01em; }
abbr { text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 96px); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; }
/* Only on the preview copy of the site (DJANGO_PREVIEW=1). */
.preview-banner { margin: 0; padding: 8px 16px; background: var(--ink); color: var(--paper); font-size: 15px; text-align: center; }

/* Buttons: black pills; blue ones only on dark ground. */
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.button:hover { background: var(--paper); color: var(--ink); }
.button--outline { background: var(--paper); color: var(--ink); }
.button--outline:hover { background: var(--ink); color: var(--paper); }
.button--blue { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.button--blue:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

/* Header. On wide screens: logo, menu and Join, language switch. On narrow ones the menu and Join
   fold behind the Menu button (menu.js), so the first screen is the hero, not the navigation. */
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; order: 1; }
.language-switch { order: 2; }
.menu-toggle { display: none; order: 3; }
.site-nav ul, .language-switch { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; }
.site-nav__menu a { display: inline-block; padding-block: 8px; color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.site-nav__menu a:hover, .site-nav__menu a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.language-switch.language-switch { gap: 0; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; font-size: 14px; font-weight: 700; }
.language-switch a { display: block; padding: 8px 11px; color: var(--ink); text-decoration: none; }
.language-switch a[aria-current] { background: var(--ink); color: var(--paper); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.menu-toggle__icon { display: flex; flex-direction: column; justify-content: space-between; width: 20px; height: 14px; }
.menu-toggle__icon span { height: 2px; background: currentColor; }

@media (max-width: 1279px) {
  .site-header__inner { gap: 10px 12px; padding-block: 10px; }
  .brand { gap: 10px; }
  .brand img { width: 44px; height: 44px; }
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--ink); color: var(--paper); cursor: pointer; }
  .js .menu-toggle[aria-expanded="true"] { background: var(--paper); color: var(--ink); }
  .site-nav { order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav__menu.site-nav__menu { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
  .site-nav__menu a { display: block; padding-block: 14px; border-bottom: 1px solid var(--rule); font-size: 20px; font-weight: 600; }
  .site-nav .button { align-self: flex-start; margin-block: 16px 8px; }
}

/* The stave: five thin lines, the site's motif. */
.stave { display: flex; flex-direction: column; justify-content: space-between; }
.stave span { display: block; height: 1.5px; background: var(--line, currentColor); }
.stave--rule { height: 25px; margin-bottom: 8px; color: var(--ink); }
.dark .stave--rule { color: var(--night-rule); }
.stave--mark { width: 56px; height: 17px; margin-bottom: 20px; --line: var(--blue); }
.stave--join { position: absolute; inset: auto 0 36px; height: 72px; color: var(--paper); }

/* Home: the hero, with the blue band from the logo carrying the stave behind the heading. Every
   piece of text that can sit on the band is --ink. */
.hero { position: relative; overflow: hidden; }
.hero__band { position: absolute; left: -10%; right: -10%; top: clamp(150px, 26vw, 230px); height: clamp(110px, 13vw, 170px); display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 1.8vw, 24px); background: var(--blue); transform: rotate(-7deg); }
.hero__band span { height: 2px; background: var(--paper); }
.hero__inner { position: relative; padding-block: clamp(40px, 6vw, 64px) clamp(64px, 9vw, 104px); }
.hero__inner > * { max-width: 860px; }
.badge { display: inline-block; margin: 0 0 22px; padding: 5px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 700; letter-spacing: 0.03em; }
.hero__heading { margin: 0; font-size: clamp(56px, 9vw, 132px); line-height: 0.92; letter-spacing: -0.035em; }
.hero__subheading { margin: 20px 0 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; }
.hero__intro { max-width: 32em; margin: 24px 0 32px; font-size: 20px; }
.hero__intro p { margin: 0; }
.hero__intro a { color: var(--ink); }
.hero .actions { margin-top: 32px; }

/* The recruitment strip under the hero: the logo's pale blue, a lighter step on from the band, so the
   two stay distinct where they meet. */
.recruit { background: var(--blue-pale); color: var(--ink); }
.recruit__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 26px; }
.recruit__lead { margin: 0; font-size: 22px; font-weight: 700; }
.recruit__detail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; font-weight: 600; }
.recruit__detail div p { display: inline; margin: 0; }
.recruit__detail div p + p::before { content: " · "; }

.wide-image { display: block; width: 100%; border-radius: var(--radius); }

/* Dark sections, borrowed from the Ugain direction. */
.dark { background: var(--night); color: var(--night-text); }
.dark a { color: var(--night-link); }
.dark a:hover { color: var(--night-text); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; }

/* Events, as rows */
.event-list { list-style: none; margin: 0 0 40px; padding: 0; }
.event-list:last-child { margin-bottom: 0; }
.event { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: baseline; gap: 6px 24px; padding-block: 22px; border-bottom: 1px solid var(--rule); }
.dark .event { border-color: var(--night-rule); }
.event__date { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.event__title { font-size: 21px; font-weight: 700; color: inherit; text-decoration: none; }
.dark .event__title { color: var(--night-text); }
.event__title:hover { text-decoration: underline; }
.event__where { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; color: var(--muted); }
.dark .event__where { color: var(--night-muted); }
.event__note { grid-column: 1 / -1; margin: 0; }
.pill { padding: 2px 10px; border-radius: 999px; background: var(--blue-pale); color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* The joining section */
.join { position: relative; overflow: hidden; background: var(--blue-pale); }
.join__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px; padding-block: clamp(64px, 8vw, 88px) clamp(120px, 12vw, 150px); }
.join__text { flex: 1 1 480px; min-width: 0; }
.join__text h2 { font-size: clamp(44px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.03em; }
.join__text p { margin: 0; font-size: 21px; font-weight: 500; }
.join__card { flex: 1 1 340px; min-width: 0; padding: 30px; border-radius: var(--radius); background: var(--paper); }
.join__card p { margin: 0 0 8px; }
.join__card .button { margin-top: 14px; }
.join__inner--top { align-items: flex-start; }

/* News cards: the whole card is the link. */
.card-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 32px 28px; }
.card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.card__image { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.card__image--empty { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-inline: 18%; background: var(--mist); }
.card__image--empty span { height: 1.5px; background: var(--blue); }
.card time { color: var(--muted); font-size: 14px; font-weight: 700; }
.card__title { font-size: 24px; font-weight: 700; line-height: 1.2; }
.card:hover .card__title { text-decoration: underline; }
.card__intro { color: var(--muted); font-size: 17px; }

/* Inner pages */
.page-body { max-width: 820px; padding-block: clamp(40px, 6vw, 72px); }
.page-head { padding-block: clamp(48px, 7vw, 80px) 0; }
.page-head h1 { margin: 0; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.035em; }
.page-head .lead { max-width: 34em; margin: 20px 0 0; color: var(--ink); font-size: clamp(20px, 2vw, 24px); font-weight: 500; }
.page-body .page-head { padding: 0; margin-bottom: 24px; }
.page-body .page-head h1 { font-size: clamp(40px, 6vw, 72px); }
.meta, .lead, .muted { color: var(--muted); }
.lead { font-size: 21px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(28px, 3.5vw, 38px); margin-top: 1.6em; }
.prose h3, .prose h4 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); }
.prose .alignleft { float: left; margin: 6px 24px 12px 0; }
.prose .alignright { float: right; margin: 6px 0 12px 24px; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose::after, .legacy-html::after { content: ""; display: block; clear: both; }
.prose iframe, .prose .responsive-object { max-width: 100%; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.responsive-object { position: relative; }
.responsive-object iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.figure { margin: 28px 0; }
.figure figcaption, .credit { color: var(--muted); font-size: 15px; }
.pagination { display: flex; gap: 24px; margin-top: 40px; font-weight: 700; }

/* The sections pages are built from (core/sections.py). Two light sections in a row share their
   spacing, so the gap between them is one section's padding, not two. */
.section--plain + .section--plain { padding-top: 0; }
.section-title { margin-bottom: 36px; }
.kicker { margin: -8px 0 28px; color: var(--muted); font-size: 20px; }
.dark .kicker { color: var(--night-muted); }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.prose--first > :first-child { margin-top: 0; }

.photo-pair { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.photo-pair img { width: 100%; height: clamp(240px, 32vw, 440px); object-fit: cover; border-radius: var(--radius); }
.section > .wide-image { height: clamp(260px, 38vw, 520px); object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; align-self: start; background: var(--rule); border: 2px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 24px; background: var(--paper); }
.stat b { display: block; font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat span { color: var(--muted); font-size: 16px; }

.strands { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; background: var(--night-rule); }
.strand { display: flex; flex-direction: column; background: var(--night); color: var(--night-text); text-decoration: none; }
.dark a.strand { color: var(--night-text); }
.strand img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.strand > div { display: flex; flex-direction: column; gap: 8px; padding: 28px 28px 32px; }
.strand .stave--mark { margin-bottom: 6px; }
.strand b { font-size: 28px; font-weight: 800; }
.strand span:not(.stave span) { color: #dce3ea; font-size: 17px; }
a.strand:hover b { text-decoration: underline; }

.cta { border-block: 1px solid var(--rule); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 40px; }
.cta h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); }
.cta p { margin: 6px 0 0; color: var(--muted); font-size: 19px; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.timeline b { font-size: 22px; font-weight: 800; }
.timeline p { margin: 0; }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.person img { display: block; width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 16px; border-radius: var(--radius); }
.person h3 { margin: 0; font-size: 26px; }
.role { margin: 4px 0 12px; color: var(--muted); font-weight: 600; }

.dark__text p:last-child { margin-bottom: 0; }

.points, .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.points li, .steps li { padding-top: 18px; border-top: 2px solid var(--ink); }
.points b, .steps b { display: block; margin-bottom: 6px; font-size: 24px; font-weight: 800; }
.points p, .steps p { margin: 0; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 10px; color: var(--link); font-size: 48px; font-weight: 800; line-height: 1; }
.small-print { margin-top: 20px; color: var(--muted); font-size: 15px; }

.faq { margin: 0; }
.faq dt { margin-top: 28px; font-size: 21px; font-weight: 800; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--muted); }
.faq dd p { margin: 0; }

.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-block: 48px; border-bottom: 1px solid var(--rule); }
.feature > img { flex: 1 1 380px; min-width: 0; width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); }
.feature > div { flex: 1 1 420px; min-width: 0; }
.feature h2 { margin-bottom: 14px; font-size: clamp(32px, 4vw, 48px); }

.videos { columns: 2 300px; gap: 40px; margin: 0; padding: 0; list-style: none; }
.videos li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.videos a { color: var(--ink); }
.videos small { display: block; color: var(--muted); font-size: 16px; }

.enquiry { display: grid; gap: 18px; }
.enquiry .field { display: grid; gap: 6px; }
.enquiry label { font-weight: 600; }
.enquiry input, .enquiry textarea, .enquiry select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: var(--radius); font: inherit; }
.enquiry .button { justify-self: start; margin-top: 0; cursor: pointer; }
.enquiry .button:disabled { cursor: not-allowed; opacity: 0.6; }
.form-error, .form-errors { margin: 0; color: var(--error); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 16px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 40px; }
.site-footer__name { display: flex; align-items: center; gap: 12px; margin: 0; }
.site-footer__name img { width: 44px; height: 44px; object-fit: contain; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
/* Credit for the site's maker, on its own line at the very bottom. */
.site-credit { padding-block: 0 24px; font-size: 14px; }
.site-credit a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.site-credit a:hover, .site-credit a:focus-visible { text-decoration: underline; }
.site-credit img { width: 30px; height: 26px; object-fit: contain; }

@media (max-width: 359px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 640px) {
  .brand { font-size: 18px; }
  .brand img { width: 40px; height: 40px; }
  .prose .alignleft, .prose .alignright { float: none; margin: 16px 0; }
  .photo-pair { grid-template-columns: 1fr; }
  .photo-pair img + img { display: none; }
  .timeline li { grid-template-columns: 72px 1fr; }
}
