
/* ==========================================
   1. ROOT VARIABLES & RESET
========================================== */

:root {
  --page-bg: #080a08;
  --card-bg: #0e100e;
  --card-border: #292c29;

  --text-main: #f0f0ed;
  --text-muted: #858b85;
  --icon-muted: #59665a;

  --accent-green: #16e887;
  --line: rgba(255, 235, 231, 0.18);

  --font-main: "DM Sans", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;

  background: var(--page-bg);
  color: var(--text-main);

  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 5px;
}

/* ==========================================
   2. HEADER / NAVBAR
========================================== */

.site-header {
  position: relative;
  z-index: 210;

  width: 100%;
  height: 74px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 5.5%;

  background: #161515;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: #fff;
  text-decoration: none;

  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1.8px;
}

.brand sup {
  margin-left: 2px;

  font-size: 0.38em;
  vertical-align: top;
  line-height: 1;
}

/* ==========================================
   3. MENU BUTTON
========================================== */

.menu {
  position: relative;
  z-index: 220;

  width: 45px;
  height: 45px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;
  color: #fff;

  cursor: pointer;
}

.menu-lines {
  width: 38px;

  display: flex;
  flex-direction: column;
  gap: 9px;
}

.menu-lines i {
  display: block;

  width: 38px;
  height: 2px;

  background: #fff;

  transition:
    transform 0.3s ease,
    opacity 0.25s ease;
}

.close-text {
  display: none;

  color: #fff;

  font-family: var(--font-mono);
  font-size: 11px;

  text-decoration: underline;
  text-underline-offset: 5px;
}

.menu[aria-expanded="true"] .menu-lines {
  display: none;
}

.menu[aria-expanded="true"] .close-text {
  display: block;
}

/* ==========================================
   4. FULLSCREEN NAVIGATION
========================================== */

.site-nav {
  position: fixed;
  inset: 0;

  z-index: 200;

  width: 100%;
  height: 100vh;
  height: 100svh;

  overflow-x: hidden;
  overflow-y: auto;

  background: #111;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  transform: translateY(-100%);

  transition:
    transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.25s ease,
    visibility 0s linear 0.7s;
}

.site-nav.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;

  transform: translateY(0);

  transition:
    transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.25s ease;
}

.nav-content {
  position: relative;

  width: 100%;
  min-height: 100%;
  min-height: 100svh;

  padding: 100px 5.5% 110px;
}

/* ==========================================
   5. NAVIGATION LINKS
========================================== */

.nav-links {
  position: absolute;
  left: 5.5%;
  top: 100px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.nav-links a {
  display: flex;
  align-items: baseline;

  width: max-content;
  max-width: 100%;

  color: #fff;
  text-decoration: none;

  font-size: clamp(40px, 4vw, 62px);
  font-weight: 400;
  line-height: 1;

  letter-spacing: -0.055em;

  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity 0.3s ease,
    transform 0.35s ease;
}

.nav-links small {
  margin-left: 7px;

  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;

  opacity: 0.55;
}

.site-nav.open .nav-links a {
  opacity: 1;
  transform: translateY(0);
}

.site-nav.open .nav-links a:nth-child(1) {
  transition-delay: 0.10s;
}

.site-nav.open .nav-links a:nth-child(2) {
  transition-delay: 0.14s;
}

.site-nav.open .nav-links a:nth-child(3) {
  transition-delay: 0.18s;
}

.site-nav.open .nav-links a:nth-child(4) {
  transition-delay: 0.22s;
}

.site-nav.open .nav-links a:nth-child(5) {
  transition-delay: 0.26s;
}

.site-nav.open .nav-links a:nth-child(6) {
  transition-delay: 0.30s;
}

.site-nav.open .nav-links a:nth-child(7) {
  transition-delay: 0.34s;
}

.nav-links:hover a {
  opacity: 0.3;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateX(8px);
}

/* ==========================================
   6. NAVIGATION STATEMENT
========================================== */

.nav-statement {
  position: absolute;
  top: 96px;
  right: 5.5%;

  width: 38%;
}

.nav-statement p {
  margin: 0;

  color: #fff;
  text-align: right;

  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.065em;

  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity 0.6s ease 0.3s,
    transform 0.6s ease 0.3s;
}

.site-nav.open .nav-statement p {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   7. NAVIGATION BOTTOM AREA
========================================== */

.nav-bottom {
  position: absolute;

  left: 5.5%;
  right: 5.5%;
  bottom: 0;

  min-height: 78px;

  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-socials {
  position: absolute;
  left: 0;
  bottom: 22px;

  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.nav-socials a {
  color: #fff;
  text-decoration: none;

  font-family: var(--font-mono);
  font-size: 11px;

  transition: opacity 0.25s ease;
}

.nav-socials a:hover {
  opacity: 0.5;
}

.nav-contact {
  position: absolute;
  right: 0;
  bottom: 20px;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.nav-contact a {
  color: #fff;
  text-decoration: none;

  font-size: clamp(13px, 1.5vw, 22px);
  letter-spacing: -0.04em;
}

/* ==========================================
   8. ARTICLES PAGE
========================================== */

.articles-page {
  width: 100%;
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);

  overflow: hidden;

  background: var(--page-bg);
}

/* ==========================================
   9. INTRODUCTION SECTION
========================================== */

.articles-intro {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 50px 24px 0;

  text-align: center;
}

/* Small green label */

.articles-eyebrow {
  margin: 0 0 10px;

  color: var(--accent-green);

  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;

  letter-spacing: -0.2px;
  text-transform: uppercase;

  animation: introFadeUp 0.65s ease both;
}

/* Main headline */

.articles-intro h1 {
  max-width: 700px;
  margin: 0;

  color: var(--text-main);

  font-family: var(--font-display);
  font-size: clamp(40px, 4.1vw, 52px);
  font-weight: 600;
  font-style: italic;

  line-height: 1.08;
  letter-spacing: -2.4px;

  animation: introFadeUp 0.8s ease 0.08s both;
}

/* Highlighted words */

.articles-intro h1 span {
  color: var(--accent-green);
}

/* Supporting paragraph */

.articles-description {
  max-width: 570px;
  margin: 17px 0 0;

  color: var(--text-muted);

  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 400;

  line-height: 1.7;
  letter-spacing: -0.12px;

  animation: introFadeUp 0.8s ease 0.18s both;
}

/* ==========================================
   10. EMPTY ARTICLES CARD
========================================== */

.articles-empty {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 78px 24px 21px;

  background: var(--page-bg);
}

/* Card container */

.articles-empty__card {
  width: 100%;
  max-width: 341px;
  min-height: 167px;

  padding: 40px 22px 27px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  text-align: center;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 11px;

  animation: cardFadeUp 0.85s
    cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;

  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

/* Subtle hover */

.articles-empty__card:hover {
  border-color: #343834;
  background: #101210;
}

/* Article icon */

.articles-empty__icon {
  width: 28px;
  height: 28px;

  margin-bottom: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--icon-muted);
  font-size: 27px;
  line-height: 1;

  animation: iconFadeUp 0.65s ease 0.4s both;
}

.articles-empty__icon i {
  display: block;
}

/* Card heading */

.articles-empty__card h2 {
  margin: 0 0 8px;

  color: var(--text-main);

  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;

  line-height: 1.5;
  letter-spacing: -0.2px;

  animation: introFadeUp 0.65s ease 0.45s both;
}

/* Card description */

.articles-empty__card p {
  max-width: 100%;
  margin: 0;

  color: var(--text-muted);

  font-family: var(--font-main);
  font-size: 9px;
  font-weight: 400;

  line-height: 1.7;
  letter-spacing: -0.1px;

  animation: introFadeUp 0.65s ease 0.52s both;
}

/* ==========================================
   11. ANIMATIONS
========================================== */

@keyframes introFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes iconFadeUp {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.85);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================
   12. TABLET RESPONSIVENESS
========================================== */

@media (max-width: 900px) {
  .nav-links a {
    font-size: clamp(36px, 5.5vw, 52px);
  }

  .nav-statement p {
    font-size: clamp(25px, 3.5vw, 38px);
  }

  .articles-intro h1 {
    font-size: clamp(40px, 5.5vw, 48px);
  }
}

/* ==========================================
   13. MOBILE RESPONSIVENESS
========================================== */

@media (max-width: 600px) {
  .site-header {
    height: 70px;
    padding: 0 20px;
  }

  .brand {
    font-size: 25px;
    letter-spacing: -1.5px;
  }

  .menu {
    width: 40px;
    height: 40px;
  }

  .menu-lines {
    width: 32px;
    gap: 8px;
  }

  .menu-lines i {
    width: 32px;
  }

  /* Mobile navigation */

  .nav-content {
    min-height: 100svh;
    padding: 95px 24px 150px;
  }

  .nav-links {
    position: relative;
    top: auto;
    left: auto;

    gap: 13px;
  }

  .nav-links a {
    font-size: clamp(34px, 8vw, 45px);
  }

  .nav-statement {
    position: relative;
    top: auto;
    right: auto;

    width: 100%;
    margin-top: 35px;
  }

  .nav-statement p {
    max-width: 300px;

    font-size: 29px;
    text-align: left;
  }

  .nav-bottom {
    position: absolute;

    left: 24px;
    right: 24px;
    bottom: 0;

    min-height: 125px;
  }

  .nav-socials {
    position: relative;
    left: auto;
    bottom: auto;

    padding-top: 17px;

    gap: 12px 18px;
  }

  .nav-socials a {
    font-size: 10px;
  }

  .nav-contact {
    position: relative;
    right: auto;
    bottom: auto;

    align-items: flex-start;
    margin-top: 15px;
  }

  .nav-contact a {
    font-size: 13px;
  }

  /* Intro */

  .articles-intro {
    padding: 43px 20px 0;
  }

  .articles-eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .articles-intro h1 {
    max-width: 430px;

    font-size: clamp(33px, 8vw, 43px);
    line-height: 1.13;
    letter-spacing: -1.7px;
  }

  .desktop-break {
    display: none;
  }

  .articles-description {
    max-width: 380px;
    margin-top: 16px;

    font-size: 11px;
    line-height: 1.8;
  }

  /* Empty card */

  .articles-empty {
    padding: 65px 20px 30px;
  }

  .articles-empty__card {
    max-width: 341px;
    min-height: 167px;

    padding: 36px 20px 27px;
  }

  .articles-empty__card h2 {
    font-size: 13px;
  }

  .articles-empty__card p {
    max-width: 280px;
    font-size: 9px;
  }
}

/* ==========================================
   14. SMALL MOBILE
========================================== */

@media (max-width: 360px) {
  .site-header {
    padding: 0 15px;
  }

  .brand {
    font-size: 23px;
  }

  .articles-intro {
    padding-right: 15px;
    padding-left: 15px;
  }

  .articles-intro h1 {
    font-size: 32px;
    letter-spacing: -1.4px;
  }

  .articles-description {
    font-size: 10px;
  }

  .articles-empty {
    padding-right: 14px;
    padding-left: 14px;
  }

  .articles-empty__card {
    padding-right: 13px;
    padding-left: 13px;
  }
}

/* ==========================================
   15. REDUCED MOTION ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================
   GROWTH NEWSLETTER SECTION
   ========================================= */

.growth-newsletter {
  position: relative;
  width: 100%;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(92, 42, 25, 0.22),
      transparent 45%
    ),
    #160a07;

  color: #f3e8dc;

  padding: 95px 24px 42px;

  box-sizing: border-box;
}


/* SUBTLE TOP ATMOSPHERE */

.growth-newsletter::before {
  content: "";
  position: absolute;

  width: 420px;
  height: 220px;

  top: -160px;
  left: 50%;

  transform: translateX(-50%);

  background: rgba(104, 48, 27, 0.18);

  filter: blur(70px);

  pointer-events: none;
}


/* MAIN CONTAINER */

.growth-newsletter-inner {
  position: relative;

  width: 100%;
  max-width: 900px;

  margin: 0 auto;

  text-align: center;
}


/* CONTENT */

.growth-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* TITLE */

.growth-title {
  margin: 0;

  max-width: 760px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(48px, 6vw, 72px);

  font-weight: 400;

  line-height: 0.96;

  letter-spacing: -0.055em;

  color: #f5ede5;
}


/* DESCRIPTION */

.growth-description {
  margin: 27px 0 0;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;

  line-height: 1.55;

  font-weight: 400;

  color: rgba(245, 237, 229, 0.62);
}


/* FORM */

.growth-form {
  width: min(550px, 100%);

  margin-top: 32px;

  display: grid;

  grid-template-columns: 1fr 193px;

  gap: 10px;
}


/* EMAIL INPUT */

.growth-input-wrap {
  width: 100%;
}


.growth-input-wrap input {
  width: 100%;

  height: 58px;

  box-sizing: border-box;

  padding: 0 19px;

  border: 1px solid rgba(245, 237, 229, 0.14);

  border-radius: 9px;

  outline: none;

  background: rgba(255, 255, 255, 0.055);

  color: #f5ede5;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}


.growth-input-wrap input::placeholder {
  color: rgba(245, 237, 229, 0.55);
}


.growth-input-wrap input:focus {
  border-color: rgba(180, 140, 44, 0.65);

  background: rgba(255, 255, 255, 0.075);

  box-shadow:
    0 0 0 3px rgba(180, 140, 44, 0.08);
}


/* SUBSCRIBE BUTTON */

.growth-submit {
  height: 58px;

  border: none;

  border-radius: 9px;

  padding: 0 24px;

  background: #a07c08;

  color: #160a07;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;

  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}


.growth-submit:hover {
  background: #b38c13;

  transform: translateY(-2px);

  box-shadow:
    0 10px 30px rgba(160, 124, 8, 0.18);
}


.growth-submit:active {
  transform: translateY(0);
}


/* NOTE */

.growth-note {
  margin: 12px 0 0;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 14px;

  line-height: 1.4;

  color: rgba(245, 237, 229, 0.55);
}


/* SOCIAL ICONS */

.growth-socials {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  margin-top: 30px;
}


.growth-social {
  width: 35px;
  height: 35px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background-color: #f2e8dd;

  color: #160a07;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}


.growth-social:hover {
  transform: translateY(-4px);

  background: #b38c13;
}


.growth-social svg {
  width: 19px;
  height: 19px;

  display: block;

  fill: currentColor;

  stroke: currentColor;

  stroke-width: 1.7;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 700px) {

  .growth-newsletter {
    padding: 75px 20px 38px;
  }

  .growth-title {
    font-size: clamp(43px, 9vw, 60px);
  }

  .growth-description {
    font-size: 15px;
  }

  .growth-form {
    grid-template-columns: 1fr;

    max-width: 480px;
  }

  .growth-submit {
    width: 100%;
  }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 480px) {

  .growth-newsletter {
    padding: 65px 18px 32px;
  }

  .growth-title {
    font-size: 43px;

    line-height: 0.98;
  }

  .growth-description {
    margin-top: 22px;

    font-size: 14px;
  }

  .desktop-break {
    display: none;
  }

  .growth-form {
    margin-top: 27px;
  }

  .growth-input-wrap input,
  .growth-submit {
    height: 56px;
  }

  .growth-note {
    font-size: 13px;
  }

  .growth-socials {
    margin-top: 26px;
  }

}


/* =========================================================
   17. FOOTER
   ========================================================= */

footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        45px
        7%;

    border-top:
        1px solid
        var(--line);

    color: #bf9690;

    font-family: "DM Mono", monospace;

    font-size: 11px;
}


/* Footer brand */

footer .brand {
    font-family: Inter, Arial, sans-serif;

    font-size: 25px;
}


/* Footer link */

footer > a:last-child {
    color: #fff;

    text-decoration: none;
}


/* =========================================================
   18. ANIMATIONS
   ========================================================= */

@keyframes photoIn {

    from {
        opacity: 0;

        transform: scale(1.12);
    }

    to {
        opacity: 0.82;

        transform: scale(1.035);
    }

}


@keyframes copyIn {

    from {
        opacity: 0;

        transform: translateY(26px);
    }

    to {
        opacity: 1;

        transform: none;
    }

}


@keyframes focus {

    to {
        filter: blur(0);
    }

}

