:root {
  --main-color: #121212;
  --background-color: white;
  --border: black;
  --hover: rgba(251, 251, 250, 1);
  --gold: #c6a348;
  --grid-margin: 4rem;
  --grid-gap: 2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
p,
ul,
li,
a {
  margin: 0;
  padding: 0;
}

ul,
li,
a {
  color: currentColor;
  text-decoration: none;
  list-style: none;
}

a {
  cursor: pointer;
}

img,
picture,
svg,
video {
  display: block;
  pointer-events: none;
}

body {
  position: relative;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  padding-block: 163px 106px;
  font-family: "Helvetica", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5em;
  letter-spacing: 0.0025em;
  -webkit-font-smoothing: antialiased;
}

.scroll-lock {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.header {
  position: fixed;
  top: 0px;
  z-index: 450;
  display: grid;
  grid-template-columns: auto 1fr auto;
  justify-content: stretch;
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding-inline: 0.5rem;
  background-color: var(--background-color);
  transition: transform 200ms cubic-bezier(0.12, 0, 0.39, 0) 0ms;
  transform: translateY(0);
  will-change: transform;
}

.header-hide {
  border-bottom: none;
  transition: transform 350ms cubic-bezier(0.61, 1, 0.88, 1) 0ms;
  transform: translateY(-100%);
}

.logo svg {
  box-sizing: content-box;
  width: auto;
  max-width: 100%;
  height: 32px;
  padding: 0.75rem 0px;
  fill: var(--main-color);
}

.logo-clickable.active {
  pointer-events: none;
}

.years {
  display: flex;
  grid-column-start: 3;
  justify-content: end;
  align-items: center;
  gap: 0.5rem;
}

.text-clickable {
  border-bottom: 2px solid transparent;
  padding: 0.75rem 0.5rem;
  color: var(--main-color);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.14286em;
  letter-spacing: 0.0428571em;
  text-transform: uppercase;
  transition: background 0.2s ease-in-out;
}

.text-clickable.active {
  border-bottom: 2px solid var(--gold);
  pointer-events: none;
}

.text-clickable-main {
  border-bottom: 2px solid transparent !important;
}

main {
  max-width: 1600px;
  margin: 0px auto;
}

.section-header-wrapper {
  margin-bottom: var(--grid-gap);
  padding-bottom: 2.5rem;
  padding-inline: var(--grid-margin);
}

.section-header {
  padding: 2.5rem var(--grid-margin);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.16667em;
  letter-spacing: -0.0171429em;
  text-align: center;
  text-transform: capitalize;
}

.summary-collection-wrapper {
  padding-inline: var(--grid-margin);
}

.summary-collection {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: 0px;
  column-gap: var(--grid-gap);
}

.summary-item {
  grid-column: span 3;
  margin-bottom: 1rem;
  cursor: pointer;
}

.summary-item-image {
  inline-size: 100%;
  block-size: 100%;
}

.summary-item-content {
  padding: 1rem 0px 2rem;
}

.summary-item-publish-date {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.14286em;
  letter-spacing: 0.0285714em;
}

.summary-item-hed {
  font-size: 22px;
  line-height: 1.18182em;
}

.summary-item-hed:hover {
  text-decoration: underline;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  background-color: white;
  pointer-events: none;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.popup_is-opened {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  position: absolute;
  top: 0;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-block: 163px 106px;
  inset-inline: 0;
}

.content-header {
  display: flex;
  flex-direction: column;
  row-gap: 2.75rem;
}

.content-header.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

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

.row .content-header-image {
  height: calc(100vh - 108px);
}

.content-header-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem var(--grid-margin);
  text-align: center;
}

.content-publish-date {
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.0285714em;
}

.content-header-hed {
  font-size: 52px;
  line-height: 1.07692em;
}

.content-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  width: 100%;
  max-width: 1600px;
  margin: 0px auto;
  padding-top: 3rem;
  padding-inline: calc(1 * var(--grid-margin));
}

.content-item {
  display: flex;
  flex-direction: column;
  grid-column: 3 / span 8;
  gap: calc(106px + 2rem - 0.5rem);
}

.group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 1em 2.5rem;
}

.horizontal,
.alone-image {
  grid-column: 1 / 3;
}

@media (hover: hover) and (pointer: fine) {
  .text-clickable:hover {
    outline: 0px;
    background-color: var(--hover);
  }
}

@media (prefers-color-scheme: dark), .dark-theme {
  :root {
    --main-color: white;
    --background-color: #121212;
    --border: #575757;
    --hover: #1e1e1e;
  }
}

@media screen and (max-width: 1280px) {
  :root {
    --grid-margin: 3rem;
  }

  body,
  .popup-content {
    padding-top: 187px;
  }

  .header {
    grid-template-columns: 1fr auto 1fr;
  }

  .logo {
    grid-column-start: 2;
    margin: 0 auto;
  }

  .logo svg {
    height: 56px;
  }
}

@media screen and (max-width: 1024px) {
  :root {
    --grid-gap: 1.5rem;
  }

  body,
  .popup-content {
    padding-top: 155px;
  }

  .header {
    grid-template-columns: auto 1fr auto;
  }

  .logo {
    grid-column-start: 1;
    margin: 0;
  }

  .logo svg {
    height: 32px;
    padding: 0.5rem 0px;
  }

  .content-header-hed {
    font-size: 36px;
    line-height: 1.16667em;
  }

  .row .content-header-image {
    height: auto;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --grid-gap: 1rem;
    --grid-margin: 1.5rem;
  }

  body,
  .popup-content {
    padding-block: 115px 66px;
  }

  .section-heade-wrapper {
    margin: 0;
    padding: 0;
  }

  .section-header {
    padding-top: 2rem;
    font-size: 28px;
    line-height: 1.14286em;
  }

  .summary-collection {
    grid-template-columns: repeat(4, 1fr);
  }

  .summary-item {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
    padding: 1rem 0;
  }

  .summary-item:first-child {
    padding-top: 0;
  }

  .content-header.row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .content-header-hed {
    font-size: 28px;
    line-height: 1.14286em;
  }

  .content-wrapper {
    grid-template-columns: repeat(4, 1fr);
    padding-top: 2rem;
  }

  .content-item {
    grid-column: 1 / -1;
    gap: calc(66px + 2rem - 0.5rem);
  }

  .group {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
}
