/* Where Firsts Begin: Abertay University
   Brand: Brand Playbook 2027. Display: Archivo (stand-in for GT America Condensed Black). Body: Source Sans 3. */

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face {
  font-family: 'Archivo WFB';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-wdth-normal.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: 'Archivo WFB';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-ext-wdth-normal.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: 'Source Sans WFB';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-sans-3-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/source-sans-3-latin-wght-normal.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: 'Source Sans WFB';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-sans-3-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/source-sans-3-latin-ext-wght-normal.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;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #141414;
  --ink-2: #18171B;
  --ink-3: #1B1B1B;
  --ink-photo: #121212;
  --ink-deep: #101010;
  --white: #FFFFFF;
  --pink: #DA1D98;
  --mint: #00CE9E;
  --mint-2: #4CDDBB;
  --mint-3: #99EBD8;
  --mint-4: #CCF5EC;
  --cyan: #5DC1D5;
  --on-pink: #000000; /* #141414 on pink is 4.04:1 and fails WCAG AA; pure black is 4.61:1 */
  --display: 'Archivo WFB', 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Source Sans WFB', 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--body); font-size: 18px; line-height: 1.5; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.on-light :focus-visible, .on-light:focus-visible { outline-color: var(--ink); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--cyan); color: var(--ink); padding: 12px 16px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.005em; }
.sub { font-family: var(--display); font-weight: 800; font-stretch: 85%; line-height: 1.05; }
.label { font-family: var(--display); font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px; }

/* Hand-drawn ring around a word */
.ring { position: relative; display: inline-block; }
.ring svg { position: absolute; left: -16%; top: -6%; width: 132%; height: 112%; overflow: visible; transform: rotate(-6deg); pointer-events: none; }
.ring path { fill: none; stroke: var(--cyan); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 15px 24px; font-weight: 700; font-size: 18px; line-height: 1.2; text-decoration: none; border: 2px solid transparent; }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { background: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--on-pink); color: var(--white); }
.btn-dark:hover { background: var(--white); color: var(--ink); }
.btn-outline-dark { border-color: var(--on-pink); color: var(--on-pink); }
.btn-outline-dark:hover { background: var(--on-pink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.site-header .logo img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 17px; font-weight: 600; }
.site-nav a:not(.btn) { text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; }
.site-nav .btn { padding: 11px 18px; font-size: 17px; }
@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
  .site-header .logo img { height: 38px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink-photo); }
.hero .wrap { display: grid; gap: clamp(24px, 3vw, 40px); padding-block: clamp(40px, 6vw, 88px); align-items: center;
  grid-template-columns: 1fr; grid-template-areas: "head" "photo" "text"; }
.hero h1 { grid-area: head; font-size: clamp(72px, 9vw, 150px); }
.hero-photo { grid-area: photo; width: 100%; height: clamp(320px, 40vw, 600px); object-fit: cover; object-position: 50% 30%; }
.hero-text { grid-area: text; display: flex; flex-direction: column; gap: 20px; }
.hero-text p:first-child { font-size: 19px; }
.hero-text .sub { font-size: clamp(26px, 2.4vw, 34px); }
.hero-text .cyan { color: var(--cyan); }
@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; grid-template-areas: "head photo" "text text"; }
}
@media (min-width: 1100px) {
  .hero .wrap { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "head photo text"; }
}

/* ---------- Film ---------- */
.film { background: var(--ink-2); padding-block: clamp(48px, 6vw, 80px); }
.film .wrap { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .film .wrap { grid-template-columns: 1fr 2fr; } }
.film h2 { font-size: clamp(48px, 5vw, 76px); margin-bottom: 12px; }
.film-frame { aspect-ratio: 16 / 9; width: 100%; background: var(--ink-deep); border: 2px dashed rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; }
.film-frame iframe, .film-frame video { width: 100%; height: 100%; border: 0; display: block; }
.film-frame.has-video { border: 0; }
.play { width: 92px; height: 92px; border-radius: 50%; background: var(--cyan); display: flex; align-items: center; justify-content: center; }

/* ---------- Split sections (photo panel + content) ---------- */
.split { display: grid; grid-template-columns: 1fr; background: var(--ink-2); }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.1fr; } }

.photo-panel { position: relative; min-height: 520px; background: var(--ink-3); overflow: hidden; }
.photo-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.photo-panel .inner { text-shadow: 0 2px 14px rgba(0,0,0,0.65); position: relative; min-height: 520px; height: 100%; padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
@media (min-width: 960px) { .photo-panel, .photo-panel .inner { min-height: 640px; } }
.photo-panel h2 { font-size: clamp(56px, 6.4vw, 104px); }
.photo-panel .sub { max-width: 16ch; font-size: clamp(24px, 2vw, 30px); text-transform: uppercase; line-height: 1; }

.tiles { display: grid; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { min-height: 300px; padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.tile .year { font-family: var(--display); font-weight: 900; font-stretch: 85%; font-size: 44px; line-height: 1; }
.tile h3 { margin-top: auto; font-size: 32px; line-height: 0.95; font-family: var(--display); font-weight: 900; font-stretch: 80%; text-transform: uppercase; }
.tile a { font-weight: 700; font-size: 17px; }
.tile-pink { background: var(--pink); color: var(--on-pink); }
.tile-pink h3 { color: var(--white); }
.tile-ink { background: var(--ink-2); color: var(--white); }
.tile-ink .year, .tile-white .year { color: var(--pink); }
.tile-white { background: var(--white); color: var(--ink); }
.tile-mint { background: var(--mint); color: var(--ink); }

.also { background: var(--ink-2); }
.also .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-block: 28px 40px; }
.also strong { font-size: 17px; }
.chip { background: var(--white); color: var(--ink); padding: 8px 12px; }

/* ---------- Your firsts ---------- */
.yours-intro { background: var(--ink-3); display: flex; flex-direction: column; }
.yours-intro h2 { padding: clamp(32px, 4vw, 56px) var(--gutter) 32px; font-size: clamp(52px, 5.6vw, 92px); line-height: 0.88; }
.yours-intro img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 70%; margin-top: auto; }
.cards { display: flex; flex-direction: column; }
.card { flex: 1 1 auto; color: var(--ink); padding: clamp(28px, 3vw, 44px) clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 10px; }
.card .sub { font-size: clamp(26px, 2.4vw, 34px); }
.card a { font-weight: 700; font-size: 17px; }
.card-1 { background: var(--mint); }
.card-2 { background: var(--mint-2); }
.card-3 { background: var(--mint-3); }
.card-4 { background: var(--mint-4); }

/* ---------- Closing call to action ---------- */
.closer { background: var(--pink); color: var(--on-pink); padding-block: clamp(56px, 7vw, 104px); }
.closer .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.closer h2 { font-size: clamp(60px, 8vw, 132px); }
.closer h2 span { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 32px 40px; }
.site-footer img { height: 36px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .legal { flex-basis: 100%; color: rgba(255,255,255,0.8); }
