/*
 * HM Athens. A two-colour print job: blue plate, red plate, and the violet
 * they make where they overlap. That third colour is the text colour.
 */

@font-face { font-family: "Sofia Sans XC"; src: url("../fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2") format("woff2"); font-weight: 1 1000; font-display: swap; }
@font-face { font-family: "Sofia Sans XC"; src: url("../fonts/sofia-sans-extra-condensed-greek-wght-normal.woff2") format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0370-03FF; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-greek-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0370-03FF; }

:root {
	--paper: #fbfbf8;
	--blue: #1f3bd1;
	--red: #ff2d55;
	--red-text: #c8002f;
	--ink: #1f0a46;
	--tint: #e9ecfb;
	--display: "Sofia Sans XC", "Arial Narrow", sans-serif;
	--text: "Literata", Georgia, serif;
	--gutter: clamp(1.1rem, 3.4vw, 3.25rem);
	--step-1: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
	--step-2: clamp(2.25rem, 1.6rem + 3vw, 4rem);
	--step-3: clamp(3.25rem, 2rem + 7vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: .16em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.1rem var(--gutter); }
.mark { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-family: var(--display); line-height: 1; }
.mark img { max-height: 3.5rem; width: auto; display: block; }
.mark-hm { font-size: 3.1rem; font-weight: 800; letter-spacing: -.01em; line-height: .8; }
.mark-rest { font-size: 1.06rem; font-weight: 600; line-height: 1; letter-spacing: .02em; }
.nav-list { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin: 0; padding: 0; list-style: none; font-family: var(--display); font-size: 1.45rem; font-weight: 600; }
.nav-list a { color: var(--ink); text-decoration: none; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .2em; }
.nav-list ul { margin: 0; padding: 0 0 0 1rem; list-style: none; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); color: var(--ink); font-family: var(--display); font-size: 1.25rem; font-weight: 700; padding: .25rem .8rem; cursor: pointer; }

/* Hero: the two plates */
.hero { padding: clamp(1rem, 3vw, 2.5rem) var(--gutter) clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.hero-title { font-size: 1rem; font-weight: 900; text-transform: uppercase; line-height: .83; }
.plate { display: block; }
.plate--blue { color: var(--blue); font-size: clamp(4.5rem, 15.8vw, 24rem); letter-spacing: -.012em; }
.plate--red { color: var(--red); font-size: clamp(3.4rem, 10.2vw, 15.5rem); margin-top: -.5em; margin-left: clamp(0rem, 11vw, 15rem); mix-blend-mode: multiply; letter-spacing: -.005em; max-width: 21ch; line-height: .88; }
.hero-meta { display: grid; grid-template-columns: 1fr minmax(0, 26rem); gap: 2rem; align-items: start; margin-top: clamp(1.75rem, 3vw, 3rem); }
.hero-event { margin: 0; font-family: var(--display); font-size: var(--step-1); font-weight: 700; line-height: 1.08; }
.cta-state { margin: 0 0 .15em; font-family: var(--display); font-size: var(--step-1); font-weight: 800; line-height: 1.08; color: var(--blue); }
.cta-note { margin: 0; font-size: .94rem; line-height: 1.5; }
.btn { display: inline-block; background: var(--blue); color: var(--paper); border: 0; padding: .6rem 1.2rem .55rem; font-family: var(--display); font-size: 1.6rem; font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .6rem; }
.btn--ghost { background: none; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn--ghost:hover { box-shadow: none; }
.btn--paper { background: var(--paper); color: var(--blue); }
.btn--paper:hover { background: var(--red); color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
	.plate--red { animation: register .9s cubic-bezier(.2, .7, .1, 1) .15s backwards; }
	@keyframes register { from { transform: translate(-3.2vw, 1.6vw); } }
}

/* Sections */
.band { padding: clamp(3rem, 6vw, 6rem) var(--gutter); }
.band > h2, .news h2 { font-size: var(--step-2); }
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); background: var(--tint); }
.prose { max-width: 40rem; font-size: 1.125rem; line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.1em 0 .55em; font-size: var(--step-2); color: var(--blue); scroll-margin-top: 1.5rem; }
.prose h3 { margin: 1.8em 0 .5em; font-size: var(--step-1); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4em; }
.link-strong { font-family: var(--display); font-size: 1.6rem; font-weight: 800; text-decoration-thickness: 3px; }

.quote { margin: 0; padding: clamp(3.5rem, 8vw, 8rem) var(--gutter); background: var(--blue); color: var(--paper); }
.quote blockquote { margin: 0; max-width: 18em; font-family: var(--display); font-size: clamp(2.6rem, 1.4rem + 5.2vw, 6.5rem); font-weight: 800; line-height: .98; }
.quote blockquote::before { content: "“"; }
.quote blockquote::after { content: "”"; }
.quote figcaption { margin-top: 1.4rem; font-size: 1.05rem; }

.theme-list { columns: 2; column-gap: clamp(2rem, 5vw, 5rem); margin: 2.25rem 0 0; padding: 0; list-style: none; }
.theme-list li { break-inside: avoid; padding-bottom: 1.05rem; font-family: var(--display); font-size: clamp(1.6rem, 1.3rem + .9vw, 2.15rem); font-weight: 600; line-height: 1.06; }
.themes-note { max-width: 40rem; margin: 1.5rem 0 0; }

.news { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-top: 0; }
.news h2 { margin-bottom: 1rem; }
.plain-links { margin: 0; padding: 0; list-style: none; }
.plain-links li { margin-bottom: .55rem; }

.dedication { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); }
.dedication p { max-width: 40rem; margin: 0; font-size: 1.125rem; }
.venue { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); }

/* Inner pages */
.page-head { padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) clamp(2rem, 4vw, 3.5rem); position: relative; overflow: hidden; }
.page-head h1 { position: relative; display: inline-block; color: var(--blue); font-size: var(--step-3); font-weight: 900; line-height: .9; text-transform: uppercase; max-width: 16ch; overflow-wrap: anywhere; }
.page-head h1::after { content: ""; position: absolute; left: calc(100% - 1.15em); top: .02em; bottom: .04em; width: 100vw; background: var(--red); mix-blend-mode: multiply; }
.page-lead { margin: 1rem 0 0; font-family: var(--display); font-size: var(--step-1); font-weight: 700; line-height: 1.1; }
.page-head--call h1 { font-size: clamp(2.9rem, 1.6rem + 6vw, 7.5rem); max-width: 22ch; }
.page-head--call h1::after { bottom: auto; height: .86em; left: 70%; }
.page-body { padding: 0 var(--gutter) clamp(3rem, 6vw, 6rem); }
.longread { display: grid; grid-template-columns: minmax(12rem, 18rem) minmax(0, 40rem); gap: clamp(2rem, 6vw, 7rem); padding: clamp(1rem, 3vw, 2.5rem) var(--gutter) clamp(3rem, 6vw, 6rem); }
.longread-side { align-self: start; position: sticky; top: 1.5rem; }
.longread-side ul { margin: 0 0 2rem; padding: 0; list-style: none; font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1.15; }
.longread-side li { margin-bottom: .6rem; }
.longread-side a { color: var(--ink); text-decoration: none; }
.longread-side a:hover { color: var(--blue); text-decoration: underline; }

/* Programme */
.prog { padding: 0 var(--gutter) clamp(3rem, 6vw, 6rem); }
.prog-changes { margin: 0 var(--gutter) clamp(2rem, 4vw, 3rem); padding: 1.5rem clamp(1.1rem, 2.4vw, 2rem); background: var(--tint); }
.prog-changes h2 { font-size: var(--step-1); margin-bottom: .9rem; color: var(--blue); }
.prog-tools { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 2rem; align-items: end; padding: .6rem 0 .5rem; background: var(--paper); border-bottom: 3px solid var(--ink); }
.admin-bar .prog-tools { top: 32px; }
.prog-days { display: flex; gap: .25rem; overflow-x: auto; }
.day { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; min-width: 5.5rem; padding: .25rem .9rem .3rem .25rem; background: none; border: 0; color: var(--blue); font-family: var(--display); text-align: left; cursor: pointer; }
.day-name { font-size: 1.15rem; font-weight: 700; line-height: 1.05; }
.day-num { font-size: 2.9rem; font-weight: 900; line-height: .9; }
.day[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0 .3rem 0 0; background: var(--red); mix-blend-mode: multiply; }
.prog-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 12rem) minmax(0, 1fr); gap: .75rem; }
.prog-fields label span { display: block; font-size: .86rem; line-height: 1.4; }
.prog-fields select, .prog-fields input { width: 100%; min-height: 2.5rem; padding: .3rem .5rem; background: #fff; border: 2px solid var(--ink); border-radius: 0; color: var(--ink); font: inherit; font-size: 1rem; }
.prog-count { grid-column: 1 / -1; margin: 0; font-size: .9rem; }
.prog-day { padding-top: clamp(1.75rem, 3vw, 3rem); }
.prog-day > h2 { font-size: var(--step-2); color: var(--blue); margin-bottom: .6rem; scroll-margin-top: 9rem; }
.slot { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.25rem; padding-top: 1.2rem; }
.slot-time { align-self: start; position: sticky; top: 8.5rem; display: flex; flex-direction: column; gap: .15rem; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.slot-letter { font-size: 3.4rem; font-weight: 900; line-height: .85; color: var(--red-text); }
.slot-items { min-width: 0; }
.sess { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) minmax(0, 11rem); gap: 1.25rem; padding: .95rem 0 .85rem; border-top: 1px solid rgba(31, 10, 70, .22); }
.slot-items .sess:first-child { border-top: 0; padding-top: 0; }
.sess-room { margin: 0; font-family: var(--display); font-size: 1.55rem; font-weight: 800; line-height: 1.02; overflow-wrap: anywhere; }
.sess-title { font-size: 1.7rem; font-weight: 700; line-height: 1.06; }
.sess-title a { color: var(--ink); text-decoration: none; }
.sess-title a:hover { color: var(--blue); text-decoration: underline; }
.sess-stream { margin: 0; font-size: .86rem; line-height: 1.35; }
.sess-papers { margin: .45rem 0 0; padding: 0; list-style: none; font-size: .97rem; line-height: 1.45; }
.sess-papers li { margin-bottom: .25rem; }
.sess-who { font-weight: 500; }
.sess-papers cite::before { content: " "; }
.sess-papers .is-cancelled .sess-who, .sess-papers .is-cancelled cite { text-decoration: line-through; opacity: .68; }
.sess-cancel { margin-left: .4em; color: var(--red-text); font-size: .86rem; font-weight: 600; }
.sess-chair { margin: .3rem 0 0; font-size: .9rem; }
.sess-flag { margin: .4rem 0 0; padding: .15rem .45rem; display: inline-block; background: var(--tint); font-size: .92rem; line-height: 1.4; }
.sess--cancelled .sess-title a { text-decoration: line-through; }
.sess--cancelled .sess-flag { background: #ffe4ea; color: var(--red-text); }
.session-single .sess { border-top: 0; margin-bottom: 1.5rem; }

.changes { margin: 0; padding: 0; list-style: none; }
.change { padding: .65rem 0; font-size: .98rem; line-height: 1.45; }
.change p { margin: 0; }
.change-when { font-size: .88rem; }
.change-title { font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.change-title a { color: var(--ink); }
.updates-changes .changes { margin-top: 1rem; max-width: 46rem; }

.empty { max-width: 40rem; margin: 1.5rem 0; font-size: 1.25rem; }
.post-row { display: grid; grid-template-columns: 9rem minmax(0, 40rem); gap: 1.25rem; padding-bottom: 1.8rem; }
.post-row h2 { font-size: var(--step-1); margin-bottom: .4rem; }
.post-row h2 a { color: var(--ink); text-decoration: none; }
.post-row h2 a:hover { color: var(--blue); text-decoration: underline; }
.post-date { font-size: .92rem; }

/* Footer */
.site-foot { padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) 1.5rem; background: var(--red); color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; }
.foot-news h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.news-form { max-width: 30rem; }
.news-form label { display: block; font-size: .92rem; }
.news-row { display: flex; gap: .5rem; }
.news-row input[type="email"] { flex: 1; min-width: 0; padding: .5rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 0; color: var(--ink); font: inherit; }
.site-foot .btn { background: var(--ink); color: var(--paper); }
.site-foot .btn:hover { background: var(--blue); }
.news-done { margin: .6rem 0 0; font-weight: 600; }
.site-foot a { color: var(--ink); }
.site-foot a:hover { color: var(--ink); text-decoration-thickness: 3px; }
.foot-name { margin: 0; font-family: var(--display); font-size: var(--step-1); font-weight: 800; line-height: 1.08; }
.foot-info p:not(.foot-name) { margin: .25rem 0 0; }
.foot-menu { margin: .75rem 0 0; padding: 0; list-style: none; }
.foot-past { margin-top: .75rem; }
.archive-note { max-width: 40rem; padding: 0 var(--gutter) 1.5rem; }
.foot-licence { margin: 2.5rem 0 0; font-size: .84rem; }

@media (max-width: 1180px) {
	.prog-tools { grid-template-columns: minmax(0, 1fr); position: static; }
}

@media (max-width: 960px) {
	.slot { grid-template-columns: 1fr; gap: .4rem; }
	.slot-time { position: static; flex-direction: row; align-items: baseline; gap: .6rem; }
	.slot-letter { font-size: 2.4rem; }
	.sess { grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); gap: .25rem 1rem; }
	.sess-stream { grid-column: 2; }
	.longread { grid-template-columns: 1fr; }
	.longread-side { position: static; }
}

@media (max-width: 760px) {
	.site-head { flex-wrap: wrap; gap: .75rem; }
	.nav-toggle { display: block; }
	.site-nav { display: none; width: 100%; }
	.site-nav.is-open { display: block; }
	.nav-list { flex-direction: column; font-size: 1.7rem; }
	.hero-meta, .intro, .dedication, .venue, .news, .foot-grid { grid-template-columns: 1fr; }
	.theme-list { columns: 1; }
	.plate--blue { font-size: 26vw; }
	.plate--red { font-size: 15.6vw; margin-left: 0; margin-top: -.42em; }
	.prog-tools { position: static; grid-template-columns: minmax(0, 1fr); }
	.prog-fields { grid-template-columns: 1fr; }
	.prog-day > h2 { scroll-margin-top: 1rem; }
	.post-row { grid-template-columns: 1fr; gap: .2rem; }
	.day { min-width: 5.3rem; }
}

@media print {
	.site-head, .site-foot, .prog-tools, .prog-changes, .page-head h1::after { display: none; }
	body { font-size: 10pt; background: #fff; color: #000; }
	.sess { break-inside: avoid; }
	.slot-time { position: static; }
	.prog-day { break-before: page; }
	.prog-day:first-of-type { break-before: auto; }
}
