:root {
  --bg: #050505;
  --bg-soft: #090909;
  --text: #f4f4f1;
  --muted: #92928e;
  --dim: #696965;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --max: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

.page-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  top: -270px;
  right: -170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}


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

.site-header {
  width: min(
    calc(100% - 48px),
    var(--max)
  );

  height: 82px;
  margin: 0 auto;

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

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

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

  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.brand img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 31px;
}

.desktop-nav a {
  color: #898985;
  font-size: 13px;
  transition: color 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #fff;
}

.menu-button {
  display: none;

  width: 42px;
  height: 42px;

  border: 0;
  background: transparent;

  cursor: pointer;

  position: relative;
}

.menu-button span {
  position: absolute;

  left: 11px;

  width: 20px;
  height: 1px;

  background: #fff;

  transition:
    transform 0.3s ease,
    top 0.3s ease;
}

.menu-button span:first-child {
  top: 17px;
}

.menu-button span:last-child {
  top: 24px;
}

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

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


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

.mobile-menu {
  display: none;
}


/* =========================================
   MAIN
========================================= */

main {
  width: min(
    calc(100% - 48px),
    var(--max)
  );

  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #8c8c87;

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

.eyebrow-line {
  width: 26px;
  height: 1px;
  background: #72726e;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 13px;

  color: #6e6e6a;

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

.section-label span:first-child {
  color: #b1b1ad;
}


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

.journal-hero {
  max-width: 950px;

  padding-top: 150px;
  padding-bottom: 135px;
}

.journal-hero h1 {
  margin-top: 30px;

  font-size: clamp(
    60px,
    8vw,
    120px
  );

  line-height: 0.91;

  font-weight: 500;

  letter-spacing: -0.075em;
}

.journal-hero h1 span {
  color: #73736f;
}

.journal-hero p {
  max-width: 600px;

  margin-top: 40px;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.75;
}


/* =========================================
   FEATURED
========================================= */

.featured-section {
  padding-bottom: 150px;
}

.featured-section > .section-label {
  margin-bottom: 25px;
}

.featured-container {
  min-height: 520px;
}

.featured-article {
  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(0, 0.9fr);

  min-height: 560px;

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

  transition:
    background 0.3s ease;
}

.featured-article:hover {
  background: rgba(255, 255, 255, 0.018);
}

.featured-visual {
  position: relative;

  overflow: hidden;

  min-height: 520px;

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

  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0.1),
      transparent 31%
    ),
    #0a0a0a;
}

.featured-visual.has-image {
  background-size: cover;
  background-position: center;
}

.visual-grid {
  position: absolute;
  inset: 0;

  opacity: 0.35;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    );

  background-size: 65px 65px;

  transform:
    perspective(500px)
    rotateX(55deg)
    scale(1.6);

  transform-origin: center bottom;
}

.featured-mark {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 132px;
  height: 132px;

  transform: translate(-50%, -50%);

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.18);

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.025);

  backdrop-filter: blur(10px);
}

.featured-mark span {
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.featured-image-label {
  position: absolute;

  bottom: 25px;
  left: 28px;

  color: #696965;

  font-size: 9px;
  letter-spacing: 0.16em;
}

.featured-content {
  padding: 60px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  color: #747470;

  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.featured-content h2 {
  max-width: 570px;

  margin-top: 24px;

  font-size: clamp(
    38px,
    4vw,
    60px
  );

  line-height: 0.98;

  font-weight: 500;

  letter-spacing: -0.06em;
}

.featured-content p {
  max-width: 480px;

  margin-top: 27px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.7;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-top: 42px;

  font-size: 12px;
}

.read-link span {
  transition: transform 0.25s ease;
}

.featured-article:hover .read-link span {
  transform:
    translate(4px, -4px);
}


/* =========================================
   ARTICLE LIST
========================================= */

.articles-section {
  padding-bottom: 150px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin-bottom: 25px;
}

.section-heading > p {
  color: #777773;
  font-size: 13px;
}

.article-list {
  border-top: 1px solid var(--line);
}

.article-row {
  display: grid;

  grid-template-columns:
    80px
    minmax(0, 1fr)
    40px;

  gap: 20px;

  min-height: 180px;

  align-items: center;

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

  transition:
    padding 0.3s ease,
    background 0.3s ease;
}

.article-row:hover {
  padding-left: 18px;
  background:
    rgba(255, 255, 255, 0.018);
}

.article-number {
  color: #555551;
  font-size: 11px;
}

.article-main {
  padding: 28px 0;
}

.article-main h3 {
  margin-top: 12px;

  font-size: clamp(
    24px,
    3vw,
    38px
  );

  line-height: 1.05;

  font-weight: 500;

  letter-spacing: -0.045em;
}

.article-main p {
  max-width: 700px;

  margin-top: 12px;

  color: #777773;

  font-size: 13px;
  line-height: 1.6;
}

.article-arrow {
  color: #686864;

  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.article-row:hover .article-arrow {
  color: #fff;
  transform:
    translate(4px, -4px);
}


/* =========================================
   ARTICLE IMAGE
========================================= */

.article-thumbnail {
  width: 100%;
  height: 90px;

  margin-top: 18px;

  object-fit: cover;

  filter: saturate(0.8);
}


/* =========================================
   EMPTY / ERROR
========================================= */

.hidden {
  display: none !important;
}

.empty-state {
  min-height: 270px;

  padding: 60px 0;

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

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.empty-index {
  color: #5f5f5b;

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

.empty-state h2 {
  margin-top: 18px;

  font-size: 30px;
  font-weight: 500;

  letter-spacing: -0.04em;
}

.empty-state p {
  max-width: 500px;

  margin-top: 12px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.6;
}

.retry-button {
  width: fit-content;

  margin-top: 25px;
  padding: 0 0 10px;

  border: 0;
  border-bottom: 1px solid #777;

  background: transparent;

  cursor: pointer;

  display: flex;
  gap: 14px;
  align-items: center;

  font-size: 12px;
}

.retry-button span {
  transition: transform 0.25s ease;
}

.retry-button:hover span {
  transform:
    translate(4px, -4px);
}


/* =========================================
   LOADING
========================================= */

.article-loading {
  min-height: 520px;

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

  padding: 60px;

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

.loading-line {
  width: 70%;
  height: 20px;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.09),
      rgba(255,255,255,0.03)
    );

  background-size: 200% 100%;

  animation:
    loading 1.6s infinite;
}

.loading-line.short {
  width: 42%;
  margin-top: 14px;
}

.article-loading-row {
  min-height: 180px;

  display: grid;

  grid-template-columns:
    80px
    1fr;

  gap: 20px;

  align-items: center;

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

.article-loading-row > span {
  width: 25px;
  height: 10px;

  background: rgba(255,255,255,0.06);
}

.article-loading-row > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-loading-row > div span {
  width: 55%;
  height: 15px;

  background: rgba(255,255,255,0.06);
}

.article-loading-row > div span:last-child {
  width: 35%;
}

@keyframes loading {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}


/* =========================================
   TOPICS
========================================= */

.topics-section {
  padding-bottom: 150px;
}

.topics {
  margin-top: 28px;

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

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

.topic {
  min-height: 120px;

  padding: 30px 40px 30px 0;

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

  background: transparent;

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

  cursor: pointer;

  text-align: left;

  font-size: 25px;

  letter-spacing: -0.04em;

  transition:
    color 0.25s ease,
    padding 0.25s ease;
}

.topic:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.topic:nth-child(even) {
  padding-left: 40px;
}

.topic:hover,
.topic.active {
  color: #fff;
}

.topic span:last-child {
  color: #666662;

  font-size: 14px;

  transition:
    transform 0.25s ease;
}

.topic:hover span:last-child,
.topic.active span:last-child {
  transform:
    translate(4px, -4px);
}


/* =========================================
   NEWSLETTER
========================================= */

.newsletter-section {
  margin-bottom: 130px;

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

.newsletter-inner {
  min-height: 430px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: center;

  gap: 80px;
}

.newsletter-inner h2 {
  margin-top: 25px;

  font-size: clamp(
    48px,
    7vw,
    88px
  );

  line-height: 0.93;

  font-weight: 500;

  letter-spacing: -0.07em;
}

.newsletter-inner h2 span {
  color: #777773;
}

.newsletter-copy {
  max-width: 430px;
}

.newsletter-copy p {
  color: var(--muted);

  font-size: 14px;
  line-height: 1.75;
}

.newsletter-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;

  margin-top: 30px;
  padding-bottom: 10px;

  border-bottom: 1px solid #777;

  font-size: 13px;
}

.newsletter-button span {
  transition:
    transform 0.25s ease;
}

.newsletter-button:hover span {
  transform:
    translate(4px, -4px);
}


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

.site-footer {
  width: min(
    calc(100% - 48px),
    var(--max)
  );

  margin: 0 auto;

  padding-bottom: 35px;
}

.footer-top {
  display: grid;

  grid-template-columns:
    1fr
    1.5fr;

  gap: 100px;

  padding-bottom: 90px;
}

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

  color: #70706c;

  font-size: 12px;
}

.footer-links {
  display: grid;

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

  gap: 30px;
}

.footer-column {
  display: flex;
  flex-direction: column;

  gap: 13px;
}

.footer-title {
  margin-bottom: 8px;

  color: #555551;

  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.footer-column a {
  color: #858581;

  font-size: 12px;

  transition:
    color 0.2s ease;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 25px;

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

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

  color: #555551;

  font-size: 10px;
}

.footer-legal {
  display: flex;
  gap: 22px;
}

.footer-legal a:hover {
  color: #fff;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-menu {
    position: fixed;

    inset: 82px 0 0;

    z-index: 100;

    background:
      rgba(5, 5, 5, 0.97);

    backdrop-filter: blur(20px);

    padding: 35px 24px;

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

    transform: translateY(-110%);

    transition:
      transform 0.4s ease;
  }

  .mobile-menu.open {
    transform: translateY(0);
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu nav a {
    padding: 20px 0;

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

    font-size: 25px;

    letter-spacing: -0.04em;
  }

  .mobile-menu-footer {
    display: flex;
    justify-content: space-between;

    color: #666662;

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    min-height: 420px;

    border-right: 0;

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

  .featured-content {
    padding: 50px 35px 60px;
  }

  .newsletter-inner {
    grid-template-columns: 1fr;

    gap: 20px;

    padding: 80px 0;
  }

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

    gap: 60px;
  }
}


@media (max-width: 600px) {

  .site-header {
    width: calc(100% - 32px);
    height: 72px;
  }

  main {
    width: calc(100% - 32px);
  }

  .mobile-menu {
    inset: 72px 0 0;
  }

  .journal-hero {
    padding-top: 105px;
    padding-bottom: 100px;
  }

  .journal-hero h1 {
    font-size:
      clamp(
        55px,
        17vw,
        88px
      );
  }

  .journal-hero p {
    margin-top: 30px;

    font-size: 14px;
  }

  .featured-section,
  .articles-section,
  .topics-section {
    padding-bottom: 100px;
  }

  .featured-visual {
    min-height: 330px;
  }

  .featured-content {
    padding:
      38px 22px 45px;
  }

  .featured-content h2 {
    font-size: 38px;
  }

  .article-row {
    grid-template-columns:
      35px
      1fr
      20px;

    gap: 10px;

    min-height: 155px;
  }

  .article-row:hover {
    padding-left: 8px;
  }

  .article-main h3 {
    font-size: 23px;
  }

  .article-main p {
    font-size: 12px;
  }

  .section-heading > p {
    display: none;
  }

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

  .topic,
  .topic:nth-child(odd),
  .topic:nth-child(even) {
    min-height: 95px;

    padding:
      25px 0;

    border-right: 0;
  }

  .topic {
    font-size: 22px;
  }

  .newsletter-section {
    margin-bottom: 90px;
  }

  .newsletter-inner {
    min-height: 400px;
  }

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

    row-gap: 45px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }

  .site-footer {
    width: calc(100% - 32px);
  }

  .article-loading {
    min-height: 330px;
    padding: 30px;
  }

  .article-loading-row {
    min-height: 150px;
  }
}