:root {
  --serif-font: 'Copernicus', 'Georgia', serif;
  --sans-serif-font: 'Lato', sans-serif;
  --almost-black: #2e2e2e;
  --accent: #0b7d76;
  --accent-hover: #085c57;
  --accent-bright: #35d6c8;
  --page-bg: #f1f1f1;
  --page-fg: #171717;
  --muted: #555;
  --shadow: #000;
  --btn-fg: #fff;
  --grey-1: #ccc;
  --grey-2: #e8e8e8;
}
html { overflow-x: clip; }
body { margin: 0; font-family: var(--serif-font); font-size: 17px; line-height: 1.7; color: var(--page-fg); background-color: var(--page-bg); }
a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
h1, h2 { font-family: var(--serif-font); font-weight: 800; text-wrap: balance; }
p { margin: 0 0 1.17em; }

/* masthead */
.plaque { background: var(--almost-black); color: #f1f1f1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3em; padding: 4.5em 7vw; }
.plaque-icon { display: block; width: 8em; height: auto; margin: 0 0 1em; }
.plaque-kicker { font-variant-caps: all-small-caps; letter-spacing: 0.08em; color: #a8a8a8; margin: 0 0 0.6em; }
.plaque h1, .plaque-title { font-family: var(--serif-font); font-weight: 800; text-wrap: balance; font-size: 3.2em; line-height: 1.12; margin: 0; }
.plaque-title a, .plaque-title a:hover { color: inherit; }
.plaque-lede { font-weight: 300; font-size: 1.25em; line-height: 1.65; max-width: 30em; margin: 0; }
.plaque-lede + .plaque-lede { margin-top: 1em; padding: 0.6em 0.9em; border: 2px solid var(--accent-bright); width: fit-content; }
.plaque-contact { margin: 1.25em 0 0; font-variant-caps: all-small-caps; font-variant-numeric: oldstyle-nums; letter-spacing: 0.08em; color: #a8a8a8; }
.plaque-contact a { color: #a8a8a8; }
.plaque-contact a:hover { color: var(--grey-1); }

/* sidebar and text column */
.columns { display: grid; grid-template-columns: 1fr minmax(0, 768px) 1fr; min-height: 100vh; }
aside { grid-column: 1; background-color: var(--almost-black); padding: 0 1em 1em; }
aside nav { position: sticky; top: 0; display: flex; flex-direction: column; align-items: end; padding-top: 2.5em; max-height: 100vh; box-sizing: border-box; overflow-y: auto; scrollbar-width: thin; }
aside nav a { padding: 0.3em 0.5em; margin-right: 10%; letter-spacing: 0.1em; font-style: italic; text-align: right; color: var(--accent-bright); white-space: nowrap; }
aside nav a:hover { color: #f1f1f1; }
aside nav a.current { color: #f1f1f1; }
.nav-label { margin: 1.6em 10% 0.2em 0; padding: 0 0.5em; font-family: var(--sans-serif-font); font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.1em; color: #a8a8a8; text-align: right; white-space: nowrap; }
.nav-label:first-child { margin-top: 0; }
main { grid-column: 2; padding: 0 3em 3em; }
main h2 { font-size: 3.2em; line-height: 1.12; padding-top: 0.74em; margin: 0 0 0.35em; }

/* plates bleed to the right edge of the window */
.wide-pic { width: calc(50vw + 384px - 3em); margin: 1em 0 2em; background-color: var(--grey-1); overflow: hidden; }
.wide-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wide-pic.cover { margin: 3em 0 2.5em -3em; width: calc(50vw + 384px); aspect-ratio: 16 / 8; max-height: 78vh; }

/* slideshow in the cover plate */
.slides { position: relative; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0.6s; }
.slide.is-current { opacity: 1; visibility: visible; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6em; height: 2.6em; border: 0; cursor: pointer; background: var(--almost-black); color: #f1f1f1; font-family: var(--serif-font); font-size: 1.1em; line-height: 1; }
.slide-btn:hover { color: var(--accent-bright); }
.slide-prev { left: 0; }
.slide-next { right: 0; }
.slide-dots { position: absolute; left: 0; bottom: 0; display: flex; background: var(--almost-black); padding: 0.35em 0.5em; }
.slide-dot { width: 2em; height: 2em; border: 0; padding: 0; background: none; cursor: pointer; color: #a8a8a8; font-size: 0.7em; }
.slide-dot[aria-current="true"] { color: var(--accent-bright); }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* links out to the college */
.section-link { font-family: var(--sans-serif-font); text-transform: uppercase; letter-spacing: 0.1em; margin-right: 1.5em; white-space: nowrap; }

/* newsletter */
.subscribe { display: inline-block; cursor: pointer; font-family: var(--sans-serif-font); font-size: 1.15em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border: 1px solid var(--accent); padding: 0.7em 1.3em; color: var(--btn-fg); background: var(--accent); box-shadow: 8px 8px 0 0 var(--btn-shadow, #000); }
.subscribe:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--btn-fg); }
.plaque-lede a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 0.15em; }
.plaque-lede a:hover { color: #f1f1f1; }
.subscriber-signin { margin: 1.6em 0 0; font-size: 0.9em; color: var(--muted); }
.subscriber-signin a { cursor: pointer; }
.issues { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--grey-1); }
.issues li { padding: 0.8em 0; border-bottom: 1px solid var(--grey-1); }
.issue-details { display: block; font-family: var(--sans-serif-font); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

/* fellowship candidates */
.cohort { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2.2em 2em; margin: 1.5em 0 2.5em; }
.member { display: block; color: inherit; }
a.member:hover .fellow-name { color: var(--accent); }
.member img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; box-shadow: 8px 8px 0 0 var(--shadow); background: var(--grey-1); }
.fellow-name { display: block; font-weight: 700; margin-top: 1em; line-height: 1.3; }

/* the year: scrolls left to right, scrollbar hidden, runs to the right edge of the window like the plates */
.year { width: calc(50vw + 384px - 3em); margin: 0.6em 0 2.5em; padding-top: 0.9em; overflow-x: auto; scrollbar-width: none; }
.year::-webkit-scrollbar { display: none; }
.year ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 15em; width: max-content; border-top: 2px solid var(--page-fg); }
.year li { position: relative; padding: 1.3em 1.6em 0 0; }
.year li::before { content: '◆'; position: absolute; left: 0; top: calc(-0.85em - 1px); padding-right: 0.3em; line-height: 1.7; color: var(--accent); background: var(--page-bg); }
.year-when { display: block; font-family: var(--sans-serif-font); font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.45; color: var(--muted); }
.year-what { display: block; font-weight: 700; font-size: 1.2em; line-height: 1.3; margin: 0.35em 0; }
.year-nav { display: flex; gap: 0.4em; margin: 0.6em 0 0; }
.year-btn { width: 2.2em; height: 2.2em; border: 0; cursor: pointer; background: var(--almost-black); color: #f1f1f1; font-family: var(--serif-font); font-size: 1em; line-height: 1; }
.year-btn:hover { color: var(--accent-bright); }
.year-btn:disabled { opacity: 0.35; cursor: default; color: #f1f1f1; }
.disclaimer { margin: 1.4em 0 0; font-size: 0.88em; line-height: 1.55; color: var(--muted); max-width: 40em; }
.year-note { display: block; font-size: 0.92em; line-height: 1.55; }

/* progress through the fellowship year, filled in by the script from today's date */
.progress-title { font-family: var(--serif-font); font-weight: 800; font-size: 1.6em; line-height: 1.2; text-wrap: balance; margin: 0 0 0.5em; }  /* sub-heading of Our Year */
.progress { margin: 1em 0 2.5em; }
.progress-track { height: 4.2em; border: 2px solid var(--page-fg); background: var(--page-bg); box-shadow: 8px 8px 0 0 var(--shadow); }
.progress-fill { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 100%; width: 0; background: var(--accent); }
.progress-pct { padding: 0 0.6em; font-family: var(--sans-serif-font); font-weight: 700; font-size: 1.5em; letter-spacing: 0.05em; color: var(--btn-fg); white-space: nowrap; }
.progress-fill.is-low .progress-pct { position: absolute; left: 100%; color: var(--page-fg); }
/* a slow band of bright teal flows along the fill without stopping */
.progress-fill { background-image: linear-gradient(90deg, transparent 15%, rgba(53, 214, 200, 0.7) 50%, transparent 85%); background-size: 200% 100%; background-repeat: repeat-x; animation: progress-flow 7s linear infinite; }
@keyframes progress-flow { from { background-position: 0 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .progress-fill { animation: none; } }
/* start label, bar, end label on one line */
.progress-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.1em; }
.progress-end { white-space: nowrap; font-family: var(--sans-serif-font); font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.3; color: var(--muted); }
.progress-end time span { display: block; }  /* day, month and year on their own lines, so the bar can be longer */
.progress-end:first-child { text-align: right; }
.progress-end b { display: block; color: var(--page-fg); }
.progress-status { font-weight: 700; font-size: 1.2em; line-height: 1.3; margin: 1.2em 0 0; }
/* narrow screens: bar on its own line, start and end beneath its two ends */
@media (max-width: 600px) {
  .progress-row { grid-template-columns: 1fr 1fr; row-gap: 1.2em; }
  .progress-track { grid-column: 1 / -1; order: -1; }
  .progress-end:first-child { text-align: left; }
  .progress-end time span { display: inline; }
  .progress-end:last-child { text-align: right; }
}

footer { border-top: 1px solid var(--muted); margin-top: 4em; padding-top: 1em; font-variant-caps: all-small-caps; letter-spacing: 0.08em; color: var(--muted); }

@media (max-width: 940px) {
  .plaque { grid-template-columns: 1fr; gap: 1.5em; padding: 3em 1.25em; }
  .plaque h1, .plaque-title, main h2 { font-size: 2.3em; }
  .plaque-icon { width: 6em; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  aside { grid-column: 1; padding: 0.5em 0.75em; }
  aside nav { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding-top: 0; max-height: none; overflow-y: visible; }
  aside nav a { margin-right: 0; }
  .nav-label { margin: 0; flex-basis: 100%; text-align: left; padding-top: 0.5em; }
  main { grid-column: 1; padding: 0 1.25em 2em; }
  .wide-pic, .wide-pic.cover { width: auto; margin-left: -1.25em; margin-right: -1.25em; }
  .wide-pic.cover { margin-top: 2.5em; margin-bottom: 2em; }
  .cohort { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1.8em 1.4em; }
  .year { width: auto; margin-right: -1.25em; }
  .year ol { grid-auto-columns: 13.5em; }
}
@media (max-width: 800px) { body { font-size: 16px; } }

/* fonts chosen in Ghost's design settings, if any, take over from the defaults */
body { font-family: var(--gh-font-body, var(--serif-font)); }
h1, h2, h3, .plaque-title { font-family: var(--gh-font-heading, var(--serif-font)); }

/* issue and page content (theme only) */
.post-title { font-size: 3.2em; line-height: 1.12; margin: 0 0 0.5em; }
.post-date { margin: 0 0 0.4em; }
/* the space above a page or issue belongs to the article, so it is the same whether or not the title is shown */
main > article { padding-top: 2.4em; }
.gh-content > :first-child { margin-top: 0; padding-top: 0; }
.error-icon { display: block; width: 11em; height: auto; margin: 0 0 1em -1em; }
.post-feature { margin: 0 0 2em; }
.post-feature img { display: block; width: 100%; height: auto; }
.gh-content h2 { font-size: 1.9em; padding-top: 0.6em; }
.gh-content h3 { font-family: var(--serif-font); font-size: 1.4em; line-height: 1.25; margin: 1.4em 0 0.4em; }
.gh-content img { max-width: 100%; height: auto; }
.gh-content figure { margin: 2em 0; }
.gh-content figcaption { font-family: var(--sans-serif-font); font-size: 0.85em; color: var(--muted); margin-top: 0.6em; }
.gh-content blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--accent); font-style: italic; }
.gh-content a { text-decoration: underline; text-underline-offset: 0.15em; }
.gh-content pre { overflow-x: auto; padding: 1em; background: var(--grey-2); font-size: 0.85em; }
.gh-content hr { border: 0; border-top: 1px solid var(--grey-1); margin: 2.5em 0; }
.gh-content .kg-width-wide img, .gh-content .kg-width-full img { width: 100%; }
.gh-content .kg-width-wide { width: calc(100% + 3em); max-width: none; }
.gh-content .kg-width-full { width: calc(50vw + 384px - 3em); max-width: none; }
.post-subscribe { margin: 3em 0 2em; padding-top: 2em; border-top: 1px solid var(--grey-1); }
.pagination { display: flex; gap: 1.5em; margin: 1em 0 0; font-family: var(--sans-serif-font); font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
@media (max-width: 940px) {
  .post-title { font-size: 2.3em; }
  .gh-content .kg-width-wide, .gh-content .kg-width-full { width: 100%; }
}

/* Copernicus, as on newspeak.house: Medium for text, Semibold for bold, Extrabold for headings, Book for the masthead statement */
@font-face { font-family: 'Copernicus'; src: url(../fonts/Copernicus-Book.woff2) format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Copernicus'; src: url(../fonts/Copernicus-Medium.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Copernicus'; src: url(../fonts/Copernicus-MediumItalic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Copernicus'; src: url(../fonts/Copernicus-Semibold.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Copernicus'; src: url(../fonts/Copernicus-SemiboldItalic.woff2) format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Copernicus'; src: url(../fonts/Copernicus-Extrabold.woff2) format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
