/* =========================================================
   DABBIES — JOURNAL
   MONOGRAPH / EDITORIAL SYSTEM
========================================================= */

:root {
  --black: #080808;
  --soft-black: #101010;
  --white: #f4f4f0;
  --muted: #999994;
  --line: rgba(244, 244, 240, 0.14);
  --line-strong: rgba(244, 244, 240, 0.28);
  --max-width: 1440px;
}


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


html {
  scroll-behavior: smooth;
}


body {
  background: var(--black);
  color: var(--white);
  font-family:
    Inter,
    Helvetica Neue,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}


body.menu-open {
  overflow: hidden;
}


a {
  color: inherit;
  text-decoration: none;
}


button {
  font: inherit;
}


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


/* =========================================================
   LOADER
========================================================= */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--black);

  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}


.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.loader-mark {
  display: flex;
  gap: 5px;
}


.loader-mark span {
  width: 5px;
  height: 5px;

  background: var(--white);
  border-radius: 50%;

  animation:
    loaderPulse 1s infinite ease-in-out;
}


.loader-mark span:nth-child(2) {
  animation-delay: 0.15s;
}


.loader-mark span:nth-child(3) {
  animation-delay: 0.3s;
}


@keyframes loaderPulse {

  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px);
  }

}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  width: 100%;
  max-width: var(--max-width);

  margin: auto;

  padding:
    28px clamp(20px, 4vw, 64px);

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}


.brand-symbol {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border: 1px solid var(--line-strong);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}


.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}


.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}


.header-section {
  color: var(--muted);

  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}


.menu-button {
  width: 44px;
  height: 44px;

  border: 1px solid var(--line);
  background: transparent;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 6px;

  cursor: pointer;

  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}


.menu-button:hover {
  border-color: var(--line-strong);
}


.menu-button span {
  width: 17px;
  height: 1px;

  background: var(--white);

  transition:
    transform 0.3s ease;
}


.menu-button.open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}


.menu-button.open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}


/* =========================================================
   MENU OVERLAY
========================================================= */

.menu-overlay {
  position: fixed;
  inset: 0;

  z-index: 5000;

  background: #0a0a0a;

  opacity: 0;
  visibility: hidden;

  transform: translateY(-10px);

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease;

  overflow-y: auto;
}


.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.menu-inner {
  width: 100%;
  max-width: var(--max-width);

  min-height: 100%;

  margin: auto;

  padding:
    32px clamp(20px, 5vw, 70px);

  display: flex;
  flex-direction: column;
}


.menu-top,
.menu-bottom {
  display: flex;
  justify-content: space-between;

  color: var(--muted);

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}


.main-navigation {
  margin: auto 0;

  padding: 60px 0;
}


.main-navigation a {
  display: grid;

  grid-template-columns:
    55px
    1fr;

  align-items: baseline;

  padding: 18px 0;

  border-bottom: 1px solid var(--line);

  transition:
    padding-left 0.3s ease,
    color 0.3s ease;
}


.main-navigation a:first-child {
  border-top: 1px solid var(--line);
}


.main-navigation a:hover,
.main-navigation a.active {
  padding-left: 15px;
}


.main-navigation a span {
  color: var(--muted);

  font-size: 10px;
  letter-spacing: 0.12em;
}


.main-navigation a strong {
  font-size: clamp(28px, 5vw, 65px);
  font-weight: 400;
  letter-spacing: -0.055em;
}


/* =========================================================
   HERO
========================================================= */

.journal-hero {
  max-width: var(--max-width);

  min-height: 670px;

  margin: auto;

  padding:
    70px clamp(20px, 5vw, 70px)
    50px;

  display: grid;

  grid-template-columns:
    minmax(70px, 0.35fr)
    minmax(0, 2fr);

  grid-template-rows:
    1fr
    auto;

  border-bottom: 1px solid var(--line);
}


.hero-index {
  display: flex;
  flex-direction: column;
  gap: 5px;

  color: var(--muted);

  font-size: 10px;
  letter-spacing: 0.15em;
}


.hero-content {
  align-self: center;

  max-width: 900px;
}


.eyebrow {
  margin-bottom: 28px;

  color: var(--muted);

  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}


.hero-content h1 {
  font-size:
    clamp(
      58px,
      9vw,
      145px
    );

  line-height: 0.88;

  font-weight: 400;

  letter-spacing: -0.075em;
}


.hero-content h1 em {
  color: var(--muted);
  font-style: normal;
}


.hero-description {
  max-width: 480px;

  margin-top: 55px;

  color: #b6b6b1;

  font-size: clamp(15px, 1.5vw, 19px);

  line-height: 1.6;
}


.hero-meta {
  grid-column: 2;

  display: flex;
  justify-content: space-between;

  color: var(--muted);

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}


/* =========================================================
   SIGNAL
========================================================= */

.signal-strip {
  width: 100%;

  overflow: hidden;

  border-bottom: 1px solid var(--line);
}


.signal-track {
  width: max-content;

  display: flex;
  align-items: center;

  gap: 28px;

  padding: 17px 0;

  animation:
    signalMove 35s linear infinite;

  color: var(--muted);

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: 0.18em;
}


.signal-track i {
  color: var(--white);
  font-style: normal;
}


@keyframes signalMove {

  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

}


/* =========================================================
   SHARED SECTIONS
========================================================= */

.journal-intro,
.journal-content,
.journal-note {
  max-width: var(--max-width);

  margin: auto;

  padding:
    clamp(80px, 10vw, 150px)
    clamp(20px, 5vw, 70px);
}


.journal-intro {
  display: grid;

  grid-template-columns:
    minmax(70px, 0.35fr)
    minmax(0, 2fr);

  gap: 20px;

  border-bottom: 1px solid var(--line);
}


.section-number,
.section-label {
  color: var(--muted);

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.15em;
}


.journal-intro h2 {
  max-width: 850px;

  margin-top: 15px;

  font-size:
    clamp(38px, 6vw, 82px);

  line-height: 0.98;

  font-weight: 400;

  letter-spacing: -0.065em;
}


.journal-intro p:last-child {
  max-width: 530px;

  margin-top: 35px;

  color: #a9a9a4;

  font-size: 16px;

  line-height: 1.7;
}


/* =========================================================
   JOURNAL CONTENT
========================================================= */

.journal-content {
  border-bottom: 1px solid var(--line);
}


.journal-heading {
  display: flex;

  justify-content: space-between;
  align-items: flex-end;

  margin-bottom: 65px;
}


.journal-heading h2 {
  margin-top: 12px;

  font-size:
    clamp(34px, 5vw, 70px);

  line-height: 0.95;

  font-weight: 400;

  letter-spacing: -0.06em;
}


#article-count {
  color: var(--muted);

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.14em;
}


/* =========================================================
   STATES
========================================================= */

.journal-state {
  min-height: 300px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  border-top: 1px solid var(--line);
}


.journal-state.hidden,
.journal-grid.hidden {
  display: none;
}


.journal-state p {
  color: var(--muted);

  font-size: 13px;
}


.journal-state h3 {
  margin-bottom: 10px;

  font-size: 25px;

  font-weight: 400;

  letter-spacing: -0.04em;
}


.state-loader {
  width: 24px;
  height: 24px;

  margin-bottom: 20px;

  border:
    1px solid var(--line);

  border-top-color:
    var(--white);

  border-radius: 50%;

  animation:
    spin 0.8s linear infinite;
}


@keyframes spin {

  to {
    transform: rotate(360deg);
  }

}


.state-symbol {
  width: 45px;
  height: 45px;

  margin-bottom: 20px;

  display: grid;
  place-items: center;

  border: 1px solid var(--line);

  color: var(--muted);
}


.journal-state button {
  margin-top: 25px;

  padding: 12px 20px;

  border: 1px solid var(--line-strong);

  background: transparent;

  color: var(--white);

  cursor: pointer;

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 0.12em;
}


/* =========================================================
   ARTICLE GRID
========================================================= */

.journal-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    1px;

  background: var(--line);
}


.journal-card {
  position: relative;

  min-width: 0;

  background: var(--black);

  overflow: hidden;
}


.journal-card-image {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 10;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #111,
      #202020
    );
}


.journal-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0.86;

  transition:
    transform 0.8s cubic-bezier(.2,.7,.2,1),
    opacity 0.5s ease;
}


.journal-card:hover
.journal-card-image img {
  transform: scale(1.035);

  opacity: 1;
}


.image-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: flex-end;

  padding: 25px;

  background:
    radial-gradient(
      circle at 75% 25%,
      #333 0,
      #171717 38%,
      #0d0d0d 75%
    );
}


.image-placeholder span {
  color: rgba(244,244,240,0.45);

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.15em;
}


.journal-card-body {
  padding:
    27px
    clamp(20px, 3vw, 38px)
    35px;
}


.journal-card-meta {
  display: flex;

  justify-content: space-between;

  gap: 15px;

  margin-bottom: 22px;

  color: var(--muted);

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: 0.13em;
}


.journal-card h3 {
  max-width: 600px;

  font-size:
    clamp(27px, 3vw, 43px);

  line-height: 0.98;

  font-weight: 400;

  letter-spacing: -0.055em;
}


.journal-card-excerpt {
  max-width: 540px;

  margin-top: 23px;

  color: #999994;

  font-size: 14px;

  line-height: 1.65;
}


.journal-card-link {
  display: inline-flex;

  margin-top: 28px;

  padding-bottom: 5px;

  border-bottom: 1px solid var(--line-strong);

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.14em;

  transition:
    border-color 0.3s ease;
}


.journal-card-link:hover {
  border-color: var(--white);
}


/* =========================================================
   NOTE
========================================================= */

.journal-note {
  display: grid;

  grid-template-columns:
    minmax(70px, 0.35fr)
    minmax(0, 2fr);

  gap: 20px;
}


.note-mark {
  width: 45px;
  height: 45px;

  display: grid;
  place-items: center;

  border: 1px solid var(--line-strong);

  font-size: 13px;
  font-weight: 600;
}


.journal-note h2 {
  max-width: 800px;

  margin-top: 14px;

  font-size:
    clamp(40px, 6vw, 85px);

  line-height: 0.92;

  font-weight: 400;

  letter-spacing: -0.065em;
}


.journal-note p:last-child {
  max-width: 520px;

  margin-top: 35px;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  max-width: var(--max-width);

  margin: auto;

  padding:
    70px
    clamp(20px, 5vw, 70px)
    30px;

  border-top: 1px solid var(--line);
}


.footer-top {
  display: grid;

  grid-template-columns:
    1fr
    2fr;

  gap: 70px;
}


.footer-symbol {
  width: 45px;
  height: 45px;

  display: grid;
  place-items: center;

  border: 1px solid var(--line-strong);

  font-size: 13px;
  font-weight: 600;
}


.footer-brand h2 {
  margin-top: 22px;

  font-size: 28px;

  font-weight: 500;

  letter-spacing: -0.05em;
}


.footer-brand p {
  margin-top: 7px;

  color: var(--muted);

  font-size: 12px;
}


.footer-links {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 30px;
}


.footer-column {
  display: flex;

  flex-direction: column;

  align-items: flex-start;
}


.footer-column > span {
  margin-bottom: 20px;

  color: var(--muted);

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: 0.15em;
}


.footer-column a {
  margin-bottom: 9px;

  font-size: 12px;

  color: #c8c8c3;

  transition:
    color 0.2s ease;
}


.footer-column a:hover {
  color: var(--white);
}


.footer-bottom {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  margin-top: 100px;

  padding-top: 20px;

  border-top: 1px solid var(--line);

  color: var(--muted);

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: 0.13em;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .journal-hero {
    min-height: 570px;
  }


  .footer-top {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

  .site-header {
    padding:
      18px 18px;
  }


  .header-section {
    display: none;
  }


  .menu-button {
    width: 40px;
    height: 40px;
  }


  .journal-hero {
    min-height: 600px;

    padding:
      45px 20px
      35px;

    display: flex;

    flex-direction: column;
  }


  .hero-index {
    margin-bottom: auto;
  }


  .hero-content {
    margin-top: 90px;
  }


  .hero-content h1 {
    font-size:
      clamp(
        52px,
        16vw,
        88px
      );
  }


  .hero-description {
    margin-top: 35px;

    font-size: 14px;
  }


  .hero-meta {
    margin-top: 60px;
  }


  .journal-intro,
  .journal-note {
    display: block;

    padding:
      80px 20px;
  }


  .section-number {
    margin-bottom: 45px;
  }


  .journal-intro h2,
  .journal-note h2 {
    font-size:
      clamp(
        40px,
        12vw,
        65px
      );
  }


  .journal-heading {
    align-items: flex-start;

    margin-bottom: 40px;
  }


  .journal-heading h2 {
    font-size: 43px;
  }


  .journal-grid {
    grid-template-columns: 1fr;
  }


  .journal-card h3 {
    font-size: 35px;
  }


  .journal-card-body {
    padding: 25px 20px 32px;
  }


  .journal-note {
    display: block;
  }


  .note-mark {
    margin-bottom: 45px;
  }


  .footer-links {
    grid-template-columns:
      repeat(2, 1fr);

    row-gap: 45px;
  }


  .footer-bottom {
    flex-direction: column;

    gap: 8px;

    margin-top: 70px;
  }


  .main-navigation a {
    grid-template-columns:
      40px
      1fr;
  }


  .main-navigation a strong {
    font-size:
      clamp(
        32px,
        10vw,
        52px
      );
  }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

  .journal-hero {
    min-height: 570px;
  }


  .hero-content h1 {
    font-size: 48px;
  }


  .footer-links {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

}