/* links.evermoregroup.nl: the artist's own look. No agency branding here.
   Everything visual comes from the page file's `design`: links.js sets the
   CSS variables below (colours, radii, fonts) and four attributes on <html>
   (data-font, data-header, data-fill, data-backdrop). The values in :root are
   what a page without a design gets, and what the "does not exist" page uses.
   WCAG 2.2 AA: the backoffice refuses colour pairs that are hard to read
   (text 4.5:1, buttons 3:1), the button colour is never a text colour,
   visible focus, 44px targets, no motion needed. */
@font-face{font-family:"Inter";src:url('/fonts/inter-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url('/fonts/inter-600.woff2') format('woff2');font-weight:500 700;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url('/fonts/space-grotesk-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url('/fonts/space-grotesk-700.woff2') format('woff2');font-weight:500 700;font-style:normal;font-display:swap}
@font-face{font-family:"Space Mono";src:url('/fonts/space-mono-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Space Mono";src:url('/fonts/space-mono-700.woff2') format('woff2');font-weight:500 700;font-style:normal;font-display:swap}
@font-face{font-family:"Playfair Display";src:url('/fonts/playfair-display-700.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"Anton";src:url('/fonts/anton-400.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"Syne";src:url('/fonts/syne-700.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap}

:root {
  --bg: #0B0B0B; --text: #FFFFFF; --accent: #FFFFFF; --on-accent: #000000;
  --dim: #CECECE; --line: #464646; --surface: #1C1C1C; --surface-2: #2B2B2B;
  --radius: 999px; --radius-box: 1rem;
  --font-head: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --col: 30rem;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font: 400 1rem/1.5 var(--font-body); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--text); color: var(--bg); padding: .5rem .75rem; z-index: 3; }

/* Backdrop: the artist's photo, blurred, under a layer of the background colour so text stays readable */
#backdrop { display: none; }
html[data-backdrop="photo"] #backdrop { display: block; position: fixed; inset: -4rem; z-index: 0; background-size: cover; background-position: 50% 30%; filter: blur(48px); }
html[data-backdrop="photo"] #backdrop::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: .84; }

main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: calc(var(--col) + 2.5rem); margin: 0 auto; padding: 2rem 1.25rem 3.5rem; outline: none; }

/* Artist: photo card (default) */
.artist img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius-box); background: var(--surface-2); }
h1 { margin: 1.5rem 0 0; font-family: var(--font-head); font-size: clamp(2.5rem, 11vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.artist.no-photo h1 { margin-top: 1rem; }
#headline { margin: .75rem 0 0; color: var(--dim); font-size: 1.0625rem; line-height: 1.45; max-width: 32em; }
html[data-font="poster"] h1 { text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; }
html[data-font="editorial"] h1 { letter-spacing: -.015em; line-height: 1.05; }
html[data-font="wide"] h1 { letter-spacing: -.02em; font-size: clamp(2.25rem, 10vw, 3.25rem); }
html[data-font="mono"] h1 { letter-spacing: -.04em; font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.1; }

/* Artist: full cover. The photo runs edge to edge and fades into the background; the name sits on the fade. */
html[data-header="cover"] main { padding-top: 0; }
html[data-header="cover"] .artist:not(.no-photo) { position: relative; margin: 0 -1.25rem; }
html[data-header="cover"] .artist:not(.no-photo) img { aspect-ratio: 4 / 5; max-height: 80vh; border-radius: 0; }
html[data-header="cover"] .artist:not(.no-photo)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg) calc(100% - 4rem)); pointer-events: none; }
html[data-header="cover"] .artist:not(.no-photo) .artist-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 1.25rem 0.25rem; }
html[data-header="cover"] .artist:not(.no-photo) h1 { margin-top: 0; }
html[data-header="cover"] .artist.no-photo { padding-top: 2rem; }

/* Artist: round photo, everything centred */
html[data-header="avatar"] .artist { text-align: center; padding-top: 1rem; }
html[data-header="avatar"] .artist img { width: 8rem; height: 8rem; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; }
html[data-header="avatar"] h1 { margin-top: 1.25rem; font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.05; }
html[data-header="avatar"] #headline { margin-left: auto; margin-right: auto; }

/* Blocks */
h2 { margin: 2.75rem 0 .25rem; color: var(--dim); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
ul { list-style: none; margin: 0; padding: 0; }
.title { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; overflow-wrap: anywhere; }
.place, .meta, .empty { color: var(--dim); font-size: .9375rem; }
.empty { margin: .75rem 0 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Small buttons: tickets, release platforms, socials */
.show a, .release-links a, .social a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.125rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--text);
  font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color .12s cubic-bezier(.2,0,0,1), background-color .12s cubic-bezier(.2,0,0,1);
}
.show a:hover, .release-links a:hover, .social a:hover { border-color: var(--accent); background: var(--surface); }

/* Shows: date column, what and where, tickets */
.show { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.show .when { grid-row: span 2; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; line-height: 1; }
.show .when-d { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
.show .when-m { margin-top: .3rem; color: var(--dim); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.show .title { grid-column: 2; align-self: end; }
.show .place { grid-column: 2; align-self: start; }
.show .title:only-of-type, .show .title:last-child { grid-row: span 2; align-self: center; }
.show a { grid-column: 3; grid-row: 1 / span 2; }

/* Releases: artwork, title, where to listen */
.release { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1rem; row-gap: .125rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.release.has-art { grid-template-columns: 4.5rem minmax(0, 1fr); }
.release img { grid-row: span 2; width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: calc(var(--radius-box) / 2); background: var(--surface-2); }
.release .title { align-self: end; }
.release .meta { align-self: start; }
.release-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

/* Big buttons: the artist's own links, and the main action of what is featured.
   Filled = button colour with black or white on it; outline = a border in the button colour. */
.block--links ul { display: grid; gap: .625rem; margin-top: .75rem; }
.link a, .block--featured .show a, .block--featured .release-links li:first-child a {
  display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 56px; padding: .75rem 1.25rem;
  background: var(--accent); border: 1.5px solid var(--accent); border-radius: var(--radius); color: var(--on-accent);
  font-size: 1.0625rem; font-weight: 600; text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere;
  transition: border-color .12s cubic-bezier(.2,0,0,1), background-color .12s cubic-bezier(.2,0,0,1);
}
.link a:hover, .block--featured .show a:hover, .block--featured .release-links li:first-child a:hover { background: color-mix(in srgb, var(--accent) 84%, var(--bg)); border-color: var(--accent); }
html[data-fill="outline"] .link a, html[data-fill="outline"] .block--featured .show a, html[data-fill="outline"] .block--featured .release-links li:first-child a { background: transparent; color: var(--text); }
html[data-fill="outline"] .link a:hover, html[data-fill="outline"] .block--featured .show a:hover, html[data-fill="outline"] .block--featured .release-links li:first-child a:hover { background: var(--surface-2); }

/* Socials */
.block--socials ul { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
html[data-header="avatar"] .block--socials ul { justify-content: center; }
html[data-header="avatar"] .block--socials h2, html[data-header="avatar"] .block--links h2 { text-align: center; }

/* Featured: the one thing the artist put on top */
.block--featured { margin-top: 2rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); }
.block--featured h2 { margin: 0 0 .25rem; }
.block--featured .show, .block--featured .release { border-bottom: 0; padding-bottom: 0; }
.block--featured .title { font-size: 1.25rem; }
.block--featured .show { grid-template-columns: 3.25rem minmax(0, 1fr); }
.block--featured .show a { grid-column: 1 / -1; grid-row: auto; margin-top: 1rem; }
.block--featured .release-links li:first-child { flex: 1 1 100%; }
.block--featured .link a { margin-top: .5rem; }

/* Book: always the text colour, so it differs from the artist's own buttons and always reads */
.book { margin: 3rem 0 0; }
.book a {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: .75rem 1.25rem;
  background: var(--text); border: 1.5px solid var(--text); color: var(--bg); border-radius: var(--radius);
  font-size: 1.0625rem; font-weight: 600; text-align: center; text-decoration: none; overflow-wrap: anywhere;
  transition: background-color .12s cubic-bezier(.2,0,0,1);
}
.book a:hover { background: var(--dim); border-color: var(--dim); }

/* Not found, offline, no connection */
.state { padding: 18vh 0 4rem; }
.state:has(#state[hidden]) { display: none; }
#state { margin: 0; font-size: 1.75rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.noscript { text-align: center; padding: 1rem; }

/* Wide screens. Photo card: the artist stays in view on the left, the page scrolls on the right.
   Cover and round photo: one centred column, like on a phone. */
@media (min-width: 62rem) {
  html[data-header="card"] main, html:not([data-header]) main { max-width: 64rem; padding: 3.5rem 2rem 4rem; }
  html[data-header="card"] #page { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, var(--col)); justify-content: space-between; column-gap: 4rem; }
  html[data-header="card"] .artist { position: sticky; top: 2rem; align-self: start; }
  html[data-header="card"] .artist img { aspect-ratio: 4 / 5; }
  html[data-header="card"] h1 { font-size: 4rem; }
  html[data-header="card"] .content > :first-child > :first-child { margin-top: 0; }
  html[data-header="card"] .content > #featured:empty + #blocks > :first-child h2 { margin-top: 0; }
  html[data-header="cover"] main { padding-top: 2.5rem; }
  html[data-header="cover"] .artist:not(.no-photo) { margin: 0; border-radius: var(--radius-box); overflow: hidden; }
  html[data-header="cover"] .artist:not(.no-photo) .artist-text { padding: 0 1.5rem 1.5rem; }
  html[data-header="cover"] .artist:not(.no-photo)::after { background: linear-gradient(to bottom, transparent 40%, var(--bg) calc(100% - 4.5rem)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
