:root {
  --ink: #101817;
  --paper: #f5e6bd;
  --cream: #fff3d4;
  --red: #c23b22;
  --blue: #195f7d;
  --yellow: #d8a522;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--ink);
}

body {
  overflow-x: hidden;
}

.cover {
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) 92px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    repeating-linear-gradient(91deg, rgba(16, 24, 23, 0.025) 0 1px, transparent 1px 5px),
    var(--paper);
  border-top: 8px solid var(--ink);
  border-bottom: 8px solid var(--ink);
}

.mast {
  display: grid;
  grid-template-columns: 18% 11% 33% 16% 22%;
  border-bottom: 2px solid var(--ink);
  position: relative;
  z-index: 5;
}

.mast i {
  display: block;
  border-right: 2px solid var(--ink);
}

.mast i:nth-child(1) { background: var(--cream); }
.mast i:nth-child(2) { background: var(--red); }
.mast i:nth-child(3) { background: var(--paper); }
.mast i:nth-child(4) { background: var(--blue); }
.mast i:nth-child(5) {
  background: var(--yellow);
  border-right: 0;
}

.editorial {
  min-height: 0;
  display: grid;
  grid-template-columns: 25% 47% 28%;
  position: relative;
  border-bottom: 2px solid var(--ink);
}

.shape-field {
  position: relative;
  overflow: hidden;
  border-right: 2px solid var(--ink);
  background: var(--cream);
}

.shape-field::before {
  content: "";
  position: absolute;
  width: min(36vw, 540px);
  aspect-ratio: 1;
  left: -42%;
  top: 5%;
  border-radius: 50%;
  border: clamp(48px, 7vw, 108px) solid var(--red);
  box-shadow: 14px 14px 0 var(--ink);
}

.shape-field::after {
  content: "";
  position: absolute;
  width: 46%;
  height: 42%;
  left: 28%;
  bottom: 7%;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 var(--blue);
}

.portrait {
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-right: 2px solid var(--ink);
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 43% center;
  filter: saturate(0.98) contrast(1.03);
}

.portrait::before {
  content: "";
  position: absolute;
  z-index: 2;
  width: 34%;
  height: 13%;
  right: 0;
  top: 7%;
  background: var(--paper);
  border-block: 3px solid var(--ink);
  box-shadow: -10px 10px 0 rgba(194, 59, 34, 0.88);
}

.portrait::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 9%;
  height: 30%;
  left: 0;
  bottom: 0;
  background: var(--red);
  border-right: 3px solid var(--ink);
}

.notes {
  display: grid;
  grid-template-rows: 0.8fr 1.1fr 0.42fr 0.7fr;
  background: var(--paper);
}

.notes i {
  display: block;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.notes i:last-child {
  border-bottom: 0;
}

.notes i:nth-child(1) {
  background: var(--yellow);
}

.notes i:nth-child(1)::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 14%;
  right: -8%;
  top: 48%;
  background: var(--ink);
  transform: rotate(-6deg);
}

.notes i:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: 14% 18%;
  border: clamp(25px, 3vw, 48px) solid var(--blue);
  border-radius: 50%;
}

.notes i:nth-child(3) {
  background: var(--red);
}

.notes i:nth-child(4) {
  background:
    linear-gradient(135deg, transparent 0 47%, var(--ink) 47% 52%, transparent 52%),
    var(--cream);
}

.logos {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(150px, 0.78fr)) 1fr;
  background: var(--cream);
}

.logos::before,
.logos::after {
  content: "";
  display: block;
  background:
    linear-gradient(90deg, var(--red) 0 26%, transparent 26% 34%, var(--blue) 34% 68%, transparent 68% 76%, var(--yellow) 76% 100%);
  background-size: 100% 16px;
  background-repeat: no-repeat;
  background-position: center;
}

.logos a {
  min-height: 82px;
  display: grid;
  place-items: center;
  position: relative;
  border-left: 2px solid var(--ink);
  transition: background 160ms ease;
}

.logos a:last-of-type {
  border-right: 2px solid var(--ink);
}

.logos a:hover,
.logos a:focus-visible {
  background: var(--paper);
  outline: none;
}

.logos a::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  right: 11px;
  bottom: 11px;
  background: var(--red);
}

.logos a:nth-child(3)::after { background: var(--blue); }
.logos a:nth-child(4)::after { background: var(--yellow); }

.logos img {
  display: block;
  width: auto;
  max-width: 58%;
  height: 35px;
  object-fit: contain;
}

.logos a:first-of-type img {
  height: 40px;
}

.standards-link {
  position: absolute;
  right: 18px;
  bottom: 108px;
  z-index: 8;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 5px 5px 0 var(--red);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.standards-link:hover,
.standards-link:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--red);
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

.standards-link img {
  display: block;
  width: 38px;
  height: 38px;
}

@media (max-width: 780px) {
  .cover {
    min-height: 100svh;
    grid-template-rows: 42px auto 78px;
    border-top-width: 6px;
    border-bottom-width: 6px;
  }

  .mast {
    grid-template-columns: 25% 14% 21% 18% 22%;
  }

  .editorial {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(360px, 54svh) 160px;
  }

  .shape-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-right: 0;
    background: var(--cream);
  }

  .shape-field::before {
    width: 88vw;
    left: -42%;
    top: -4%;
    border-width: 68px;
    opacity: 0.96;
  }

  .shape-field::after {
    width: 30%;
    height: 22%;
    left: 9%;
    bottom: 8%;
  }

  .portrait {
    z-index: 1;
    margin: 28px 18px 0 48px;
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
  }

  .portrait img {
    object-position: 47% center;
  }

  .notes {
    z-index: 2;
    grid-template-columns: 0.72fr 1.1fr 0.42fr 0.7fr;
    grid-template-rows: 1fr;
    border-top: 2px solid var(--ink);
  }

  .notes i {
    border-bottom: 0;
    border-right: 2px solid var(--ink);
  }

  .notes i:last-child {
    border-right: 0;
  }

  .notes i:nth-child(2)::before {
    inset: 22% 15%;
    border-width: 18px;
  }

  .logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .logos::before,
  .logos::after {
    display: none;
  }

  .logos a {
    min-width: 0;
    min-height: 74px;
  }

  .logos a:first-child {
    border-left: 0;
  }

  .logos a:last-of-type {
    border-right: 0;
  }

  .logos img {
    max-width: 66%;
    height: 28px;
  }

  .logos a:first-of-type img {
    height: 32px;
  }

  .standards-link {
    right: 12px;
    bottom: 91px;
    width: 48px;
    height: 48px;
    box-shadow: 4px 4px 0 var(--red);
  }

  .standards-link img {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
