@font-face {
  font-family: "Zografs Hand";
  src: url("../fonts/zografs-hand.otf") format("opentype");
  font-display: swap;
}

:root {
  --orange: #f3a036;
  --paper: #f5f5f5;
  --black: #000;
  --hand: "Zografs Hand", "Comic Sans MS", cursive;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font: 400 18px/28px var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1168px;
  margin: 0 auto;
  padding: 0 24px;
}

.hand { font-family: var(--hand); font-weight: 400; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  height: 150px;
}

.site-header .wrap { position: relative; height: 100%; }

.logo {
  position: absolute;
  top: 54px;
  left: 24px;
  width: 352px;
}

.logo img { width: 100%; }

.menu-toggle {
  position: absolute;
  top: 38px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 8px;
  border: 0;
  background: none;
  color: var(--paper);
  font: 32px/1 var(--hand);
  cursor: pointer;
}

.menu-toggle img { width: 35px; }

/* ---------- Menu panel ---------- */

.menu-panel {
  position: fixed;
  top: 18px;
  right: 8px;
  z-index: 50;
  width: 432px;
  height: 722px;
  max-height: calc(100vh - 36px);
  padding: 150px 40px 40px 32px;
  background: url("../svg/menu-bg.svg") center / 100% 100% no-repeat;
  color: var(--black);
  transform: translateX(calc(100% + 20px));
  visibility: hidden;
  transition: transform .35s ease, visibility 0s linear .35s;
}

.menu-panel.is-open {
  transform: none;
  visibility: visible;
  transition: transform .35s ease, visibility 0s;
}

.menu-panel .menu-close {
  position: absolute;
  top: 34px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  background: none;
  color: var(--black);
  font: 32px/1 var(--hand);
  cursor: pointer;
}

.menu-panel .menu-close img { width: 35px; filter: invert(1); }

.menu-panel ul { list-style: none; margin: 0; padding: 0; }

.menu-panel li + li { margin-top: 32px; }

.menu-panel a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.menu-panel .head {
  width: 90px;
  height: 90px;
  flex: none;
  object-fit: contain;
  transition: transform .2s ease;
}

.menu-panel a:hover .head { transform: rotate(-8deg) scale(1.08); }

.menu-panel .label {
  font: 32px/1 var(--hand);
  padding-bottom: 10px;
  background: url("../svg/underline.svg") left bottom / 100% 5px no-repeat;
}

.menu-panel a[aria-current="page"] .label { color: #fff; }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Shared pieces ---------- */

.page-title {
  margin: 0 0 48px;
  font: 64px/1 var(--hand);
  color: var(--orange);
  text-align: center;
  text-transform: none;
}

.page-title.white { color: var(--paper); }

.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}

.page-hero img { width: 100%; }

.btn-more {
  display: inline-block;
  width: 125px;
  height: 36px;
  padding-left: 12px;
  background: url("../svg/button.svg") 0 0 / 100% 100% no-repeat;
  color: var(--black);
  font: 24px/36px var(--hand);
  text-decoration: none;
  transition: transform .2s ease;
}

.btn-more:hover { transform: translateX(6px); }

.paper {
  position: relative;
  color: var(--black);
  background: url("../svg/paper-0.svg") center / 100% 100% no-repeat;
}

.paper a { color: var(--black); font-weight: 700; }

.paper a:hover { color: #990033; }

.link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.link:hover { text-decoration: underline; }

.section { margin-bottom: 120px; }

/* ---------- Home ---------- */

.hero {
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 70px;
  align-items: center;
  margin: 20px 0 110px;
}

.hero h1 {
  margin: 0 0 24px;
  font: 72px/1 var(--hand);
  color: var(--paper);
}

.hero p {
  margin: 0;
  max-width: 396px;
  font: 32px/1.05 var(--hand);
  color: var(--orange);
}

.who-teaser {
  position: relative;
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 32px;
  align-items: center;
  margin: 0 -60px 110px;
  padding: 60px 60px 70px;
  background: url("../img/ab9f6079e0.png") center / 100% 100% no-repeat;
  color: var(--black);
}

.who-teaser h2 {
  margin: 0 0 18px;
  font: 64px/1 var(--hand);
}

.who-teaser p { margin: 0 0 18px; }

.who-teaser .actions { text-align: right; }

.teaser-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.teaser-head img { max-width: 563px; }

.teaser-head h2 {
  margin: 0;
  font: 64px/1 var(--hand);
  color: var(--orange);
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 48px 64px 56px;
  background-image: url("../svg/paper-2.svg");
}

.news-card img {
  width: 100%;
  aspect-ratio: 480 / 352;
  object-fit: cover;
  margin-bottom: 30px;
}

.news-card p { margin: 0 0 16px; }

.news-card .actions { text-align: right; }

/* ---------- Books grid ---------- */

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px 32px;
}

.book { margin: 0; }

.book button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.book img {
  width: 100%;
  aspect-ratio: 256 / 351;
  object-fit: cover;
  transition: transform .2s ease;
}

.book button:hover img { transform: translateY(-6px); }

.book figcaption {
  margin-top: 16px;
  color: var(--paper);
}

.book figcaption strong {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .85);
}

.lightbox[hidden] { display: none; }

.lightbox figure {
  position: relative;
  margin: 0;
  max-width: 589px;
}

.lightbox img {
  max-height: calc(100vh - 140px);
  width: auto;
  margin: 0 auto;
}

.lightbox figcaption {
  margin-top: 12px;
  text-align: center;
}

.lightbox .close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: #fff;
  color: #000;
  font: 700 26px/32px var(--body);
  cursor: pointer;
}

/* ---------- Who is page ---------- */

.who-page {
  padding: 60px 176px 70px;
  background-image: url("../svg/paper-3.svg");
}

.who-page p { margin: 0 0 26px; font-size: 16px; line-height: 26px; }

.who-page img { margin: 30px 0 40px; width: 100%; }

/* ---------- Updates page ---------- */

.period {
  display: flex;
  justify-content: center;
  margin: -16px 0 48px;
}

.period span {
  padding: 10px 28px;
  background: url("../svg/year.svg") center / 100% 100% no-repeat;
  color: var(--black);
  font: 700 24px/28px var(--body);
}

.update {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
  padding: 56px 64px;
}

.update:nth-of-type(1) { background-image: url("../svg/paper-0.svg"); }
.update:nth-of-type(2) { background-image: url("../svg/paper-1.svg"); }
.update:nth-of-type(3) { background-image: url("../svg/paper-2.svg"); }
.update:nth-of-type(4) { background-image: url("../svg/paper-3.svg"); }
.update:nth-of-type(5) { background-image: url("../svg/paper-4.svg"); }

.update p { margin: 0 0 20px; }

.update .full { grid-column: 1 / -1; }

.update img { width: 100%; object-fit: cover; }

.update .img-43 { aspect-ratio: 4 / 3; margin-bottom: 20px; }

.update .img-wide { aspect-ratio: 992 / 620; }

.press { list-style: none; margin: 0 0 20px; padding: 0; }

.press li { margin: 0; }

.archive {
  margin: 110px 0 120px;
  text-align: center;
}

.archive h2 {
  margin: 0 0 36px;
  font: 700 24px/28px var(--body);
  color: #fff;
  text-transform: uppercase;
}

.years {
  display: grid;
  grid-template-columns: repeat(6, 160px);
  justify-content: space-between;
  gap: 30px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.years span,
.years a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  background: url("../svg/year.svg") center / 100% 100% no-repeat;
  color: var(--black);
  font: 700 24px/28px var(--body);
  text-decoration: none;
  transition: transform .2s ease;
}

.years a:hover { transform: translateY(-4px) rotate(-2deg); }

.years a.is-current {
  background-image: none;
  background-color: var(--paper);
  border-radius: 3px;
}

.years span.is-empty { opacity: .35; cursor: default; }

.archive-back { margin: 40px 0 0; }

/* ---------- Archive year pages ---------- */

.archive-page {
  margin-bottom: 40px;
  padding: 64px 96px 72px;
  background-image: url("../svg/paper-3.svg");
  overflow-wrap: anywhere;
}

.archive-page::after { content: ""; display: block; clear: both; }

.archive-page .period-title {
  clear: both;
  margin: 48px 0 24px;
  font: 700 24px/28px var(--body);
  text-align: center;
  text-transform: uppercase;
}

.archive-page .period-title:first-child { margin-top: 0; }

.archive-page p { margin: 0 0 18px; }

.archive-page img {
  float: left;
  max-width: 320px;
  margin: 6px 24px 16px 0;
}

@media (max-width: 900px) {
  .archive-page { padding: 44px 28px; }
  .archive-page img { float: none; max-width: 100%; margin: 12px 0 18px; }
}

/* ---------- Contact ---------- */

.contact {
  display: flex;
  justify-content: center;
  margin: 0 0 130px;
}

.contact a { display: block; max-width: 724px; }

.contact-email {
  margin: -40px 0 110px;
  text-align: center;
  font: 32px/1.2 var(--hand);
  color: var(--orange);
}

.contact-email a { text-decoration: none; }

.contact-email a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  min-height: 412px;
  padding: 110px 0 56px;
  background: url("../svg/footer-bg.svg") center top / 100% 100% no-repeat;
  color: var(--black);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}

.footer-nav ul { list-style: none; margin: 0; padding: 0; }

.footer-nav li + li { margin-top: 32px; }

.footer-nav a {
  font: 500 20px/28px var(--body);
  text-transform: uppercase;
  text-decoration: none;
}

.footer-nav a:hover { color: var(--orange); }

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer-brand .reader {
  width: 265px;
  margin: -50px 140px 10px 0;
}

.footer-brand .logo-orange { width: 100%; max-width: 722px; }

.footer-brand p { margin: 14px 0 0; max-width: 773px; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 40px; }
  .who-teaser { margin-left: 0; margin-right: 0; grid-template-columns: 1fr 1fr; }
  .who-page { padding: 60px 80px 70px; }
  .years { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 24px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; line-height: 24px; }

  .site-header { height: 80px; background: var(--black); }
  .logo { top: 26px; width: 200px; }
  .menu-toggle { top: 16px; font-size: 26px; }

  .menu-panel {
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: auto;
    max-height: none;
    min-height: 600px;
    padding: 130px 36px 60px;
  }
  .menu-panel .head { width: 75px; height: 75px; }
  .menu-panel .label { font-size: 26px; }

  .page-title, .teaser-head h2 { font-size: 40px; }

  .hero { grid-template-columns: 1fr; gap: 24px; margin: 20px 0 60px; }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 22px; }

  .who-teaser {
    grid-template-columns: 1fr;
    padding: 50px 32px 56px;
    margin-bottom: 60px;
  }
  .who-teaser h2 { font-size: 48px; }
  .who-teaser .actions { text-align: left; }

  .news-grid { grid-template-columns: 1fr; padding: 40px 28px; gap: 48px; }
  .news-card .actions { text-align: left; }

  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }

  .who-page { padding: 48px 28px; }

  .update { grid-template-columns: 1fr; padding: 44px 28px; }

  .section { margin-bottom: 70px; }

  .site-footer { padding: 70px 0 40px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-brand { align-items: flex-start; text-align: left; }
  .footer-brand .reader { margin: 0 0 16px; width: 200px; }
}

@media (max-width: 480px) {
  .books-grid { grid-template-columns: 1fr; }
  .logo { width: 170px; top: 29px; }
}
