
/* =========================================
   ARTICLES PAGE
   Mohammad Mushir Alam Shaikh
   Standalone stylesheet — no global CSS
========================================= */

:root {
  --navy: #101d32;
  --navy-light: #192b45;
  --cream: #f8f5ee;
  --paper: #fffdf8;
  --gold: #c6a66b;
  --gold-light: #e1cc9e;
  --text: #252c36;
  --muted: #777b82;
  --border: #e8e1d5;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

/* Reset */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--gold-light);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* Containers */

.header-container,
.section-container,
.footer-container {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

/* =========================================
   HEADER
========================================= */

.site-header {
  position: relative;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(16, 29, 50, 0.08);
}

.header-container {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 27px;
  border-radius: 2px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.brand-copy strong {
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.25px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 3px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.primary-nav > a {
  position: relative;
  color: #555d68;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.primary-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.primary-nav > a:hover,
.primary-nav > a.active {
  color: var(--navy);
}

.primary-nav > a:hover::after,
.primary-nav > a.active::after {
  transform: scaleX(1);
}

.primary-nav > a.nav-cta {
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease;
}

.primary-nav > a.nav-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

.nav-cta span {
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  padding: 11px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

/* =========================================
   SHARED TYPOGRAPHY
========================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #927443;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.3px;
}

.eyebrow-line {
  width: 30px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

h1 em,
h2 em {
  color: var(--gold);
  font-weight: 400;
}

/* =========================================
   HERO
========================================= */

.articles-hero {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(
      circle at 80% 50%,
      rgba(198, 166, 107, 0.12),
      transparent 31%
    ),
    var(--cream);
}

.hero-container {
  width: min(1180px, calc(100% - 64px));
  min-height: 580px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 55px;
  padding-block: 75px;
}

.hero-copy {
  max-width: 610px;
  animation: reveal-up 0.8s ease both;
}

.hero-copy h1 {
  margin-top: 24px;
  color: var(--navy);
  font-size: clamp(43px, 5vw, 67px);
  line-height: 1.14;
  letter-spacing: -1.8px;
}

.hero-copy > p {
  max-width: 490px;
  margin-top: 24px;
  color: #69717b;
  font-size: 14px;
  line-height: 1.95;
}

.button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 700;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  margin-top: 31px;
  background: var(--navy);
  color: var(--white);
}

.button-primary:hover {
  background: var(--gold);
  color: var(--navy);
}

.button span {
  font-size: 16px;
}

/* =========================================
   HERO DECORATIVE ART
========================================= */

.hero-art {
  min-height: 430px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.art-frame {
  position: absolute;
  width: 300px;
  height: 355px;
  border: 1px solid rgba(198, 166, 107, 0.45);
  transform: rotate(-7deg);
}

.art-orbit {
  position: absolute;
  border: 1px solid rgba(16, 29, 50, 0.1);
  border-radius: 50%;
}

.orbit-one {
  width: 345px;
  height: 345px;
}

.orbit-two {
  width: 425px;
  height: 425px;
  border-color: rgba(198, 166, 107, 0.28);
}

.art-monogram {
  position: absolute;
  top: 30px;
  left: 50%;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 235px;
  font-weight: 500;
  line-height: 1;
  transform: translateX(-50%);
}

.art-monogram span {
  color: var(--gold);
}

.art-quote {
  position: absolute;
  right: 0;
  bottom: 30px;
  width: 250px;
  padding: 24px 25px;
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 18px 35px rgba(16, 29, 50, 0.15);
}

.quote-mark {
  display: block;
  height: 36px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 50px;
  line-height: 1;
}

.art-quote p {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
}

.quote-line {
  display: block;
  width: 35px;
  height: 1px;
  margin-top: 18px;
  background: var(--gold);
}

.art-quote small {
  display: block;
  margin-top: 12px;
  color: var(--gold-light);
  font-size: 8px;
  letter-spacing: 1.4px;
}

.art-coordinate {
  position: absolute;
  top: 12px;
  right: 0;
  color: #847a68;
  font-size: 9px;
  letter-spacing: 2px;
}

/* =========================================
   FEATURED ARTICLE
========================================= */

.featured-section {
  padding-block: 95px 85px;
  background: var(--paper);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.label-line {
  width: 75px;
  height: 1px;
  background: var(--border);
}

.featured-article {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: stretch;
  border: 1px solid var(--border);
  background: var(--paper);
}

.featured-visual {
  min-height: 390px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at center,
      rgba(198, 166, 107, 0.12),
      transparent 43%
    ),
    var(--navy);
  color: var(--cream);
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
}

.visual-number {
  position: absolute;
  top: 25px;
  left: 27px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 22px;
}

.visual-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.visual-symbol {
  color: var(--gold-light);
  font-size: 65px;
  line-height: 1.3;
}

.visual-word {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 2px;
}

.visual-subtitle {
  margin-top: 8px;
  color: var(--gold-light);
  font-size: 8px;
  letter-spacing: 2px;
}

.visual-bottom {
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: #c9cdd4;
  font-size: 8px;
  letter-spacing: 1.7px;
}

.featured-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px;
}

.article-category {
  color: #957747;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.featured-content h2 {
  margin-top: 19px;
  color: var(--navy);
  font-size: clamp(29px, 3.2vw, 39px);
  line-height: 1.3;
  letter-spacing: -0.6px;
}

.featured-content > p {
  margin-top: 20px;
  color: #707780;
  font-size: 12px;
  line-height: 2;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 23px;
  color: #8a8c8e;
  font-size: 10px;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  transition: gap 0.25s ease;
}

.text-link:hover {
  gap: 25px;
}

.editorial-note {
  max-width: 850px;
  margin: 20px auto 0;
  color: #83817b;
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

/* =========================================
   ARTICLE LIBRARY
========================================= */

.article-library {
  padding-block: 95px 105px;
  background: var(--cream);
}

.library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.library-heading h2 {
  margin-top: 14px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 47px);
  line-height: 1.2;
  letter-spacing: -1px;
}

.library-heading p {
  margin-top: 13px;
  color: #747981;
  font-size: 13px;
}

.article-count {
  padding-bottom: 7px;
  color: #8b7a5e;
  font-size: 10px;
  letter-spacing: 2px;
}

/* Filter buttons */

.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 34px;
}

.filter-button {
  min-height: 39px;
  padding: 0 18px;
  border: 1px solid #ded7ca;
  background: transparent;
  color: #646b74;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

/* Article cards */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 25px;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 29, 50, 0.08);
  background: var(--paper);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(16, 29, 50, 0.09);
}

.article-card[hidden] {
  display: none;
}

.article-card-visual {
  min-height: 225px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--cream);
}

.visual-business {
  background:
    radial-gradient(circle at 80% 20%, #344d65, transparent 50%),
    #14243a;
}

.visual-technology {
  background:
    radial-gradient(circle at 20% 80%, #687a67, transparent 45%),
    #293b37;
}

.visual-learning {
  background:
    radial-gradient(circle at 80% 20%, #795c4e, transparent 45%),
    #49332b;
}

.card-index {
  position: absolute;
  top: 20px;
  left: 22px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 22px;
}

.card-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
}

.card-art-symbol {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1.2;
}

.card-art > span:last-child {
  font-size: 8px;
  letter-spacing: 2px;
}

.card-category {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--gold-light);
  font-size: 8px;
  letter-spacing: 1.8px;
}

.article-card-content {
  padding: 25px 24px 22px;
}

.content-kicker {
  color: #9a7e4d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.article-card-content h3 {
  margin-top: 13px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.35;
}

.article-card-content > p {
  min-height: 70px;
  margin-top: 13px;
  color: #737981;
  font-size: 12px;
  line-height: 1.9;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 23px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
}

.card-footer > span {
  color: #8a8b8d;
  font-size: 10px;
}

.card-footer a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #e0d5bf;
  color: var(--navy);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.card-footer a:hover {
  background: var(--navy);
  color: var(--white);
}

.empty-message {
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.empty-message[hidden] {
  display: none;
}

/* =========================================
   WRITING CTA
========================================= */

.writing-cta {
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}

.cta-container {
  width: min(1180px, calc(100% - 64px));
  min-height: 350px;
  position: relative;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 75px;
}

.cta-copy {
  position: relative;
  z-index: 1;
  max-width: 590px;
}

.cta-copy .eyebrow {
  color: var(--gold-light);
}

.cta-copy h2 {
  margin-top: 20px;
  font-size: clamp(39px, 4.5vw, 55px);
  line-height: 1.2;
}

.cta-copy p {
  max-width: 470px;
  margin-top: 17px;
  color: #c2c9d2;
  font-size: 13px;
  line-height: 1.9;
}

.button-light {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: var(--gold-light);
  color: var(--navy);
}

.button-light:hover {
  background: var(--white);
}

.cta-watermark {
  position: absolute;
  right: 55px;
  bottom: -125px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--serif);
  font-size: 380px;
  line-height: 1;
  pointer-events: none;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  padding-top: 38px;
  background: #0b1525;
  color: var(--cream);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.footer-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 22px;
}

.footer-note {
  margin-top: 13px;
  color: #aab2bf;
  font-size: 11px;
}

.footer-bottom {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px 25px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p,
.back-to-top {
  color: #aab2bf;
  font-size: 10px;
}

.powered-by a {
  color: var(--gold-light);
  transition: color 0.2s ease;
}

.powered-by a:hover {
  color: var(--white);
}

.back-to-top:hover {
  color: var(--gold-light);
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   TABLETS
========================================= */

@media (max-width: 1000px) {
  .header-container,
  .section-container,
  .footer-container,
  .hero-container,
  .cta-container {
    width: min(calc(100% - 44px), 800px);
  }

  .header-container {
    min-height: 78px;
  }

  .primary-nav {
    gap: 16px;
  }

  .primary-nav > a {
    font-size: 11px;
  }

  .hero-container {
    min-height: 520px;
    gap: 25px;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .hero-art {
    transform: scale(0.85);
  }

  .featured-content {
    padding: 34px;
  }

  .article-grid {
    gap: 18px;
  }

  .article-card-content {
    padding: 21px 18px;
  }

  .article-card-content h3 {
    font-size: 21px;
  }

  .article-card-visual {
    min-height: 200px;
  }
}

/* =========================================
   MOBILE NAVIGATION AND LAYOUT
========================================= */

@media (max-width: 760px) {
  .header-container,
  .section-container,
  .footer-container,
  .hero-container,
  .cta-container {
    width: calc(100% - 40px);
  }

  .header-container {
    min-height: 74px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    font-size: 24px;
  }

  .brand-copy strong {
    font-size: 10px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: block;
  }

  .primary-nav {
    position: fixed;
    z-index: 101;
    inset: 74px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    padding: 25px 24px 40px;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav > a {
    padding: 17px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .primary-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .primary-nav > a.nav-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 15px 18px;
    border-bottom: 0;
  }

  /* Hero */

  .hero-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 65px 35px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 9vw, 59px);
    letter-spacing: -1.2px;
  }

  .hero-copy > p {
    font-size: 13px;
  }

  .hero-art {
    min-height: 405px;
    margin-top: 20px;
    transform: scale(0.9);
  }

  /* Featured article */

  .featured-section {
    padding-block: 70px;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    min-height: 310px;
  }

  .featured-content {
    padding: 30px 25px;
  }

  .featured-content h2 {
    font-size: 32px;
  }

  /* Library */

  .article-library {
    padding-block: 70px;
  }

  .library-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .library-heading h2 {
    font-size: 37px;
  }

  .article-count {
    padding: 0;
  }

  .article-filters {
    gap: 8px;
    margin-block: 27px;
  }

  .filter-button {
    min-height: 37px;
    padding-inline: 13px;
    font-size: 10px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .article-card-visual {
    min-height: 250px;
  }

  .article-card-content {
    padding: 25px;
  }

  .article-card-content h3 {
    font-size: 25px;
  }

  .article-card-content > p {
    min-height: auto;
  }

  /* CTA */

  .cta-container {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 27px;
    padding-block: 70px;
  }

  .cta-copy h2 {
    font-size: 43px;
  }

  .cta-watermark {
    right: -20px;
    bottom: -80px;
    font-size: 280px;
  }

  /* Footer */

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 22px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {
  .header-container,
  .section-container,
  .footer-container,
  .hero-container,
  .cta-container {
    width: calc(100% - 32px);
  }

  .brand {
    gap: 8px;
  }

  .brand-copy strong {
    font-size: 9px;
    letter-spacing: 0.7px;
  }

  .brand-copy small {
    letter-spacing: 2px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-art {
    min-height: 350px;
    margin-inline: -25px;
    transform: scale(0.78);
  }

  .featured-content {
    padding: 25px 20px;
  }

  .featured-content h2 {
    font-size: 28px;
  }

  .library-heading h2 {
    font-size: 32px;
  }

  .filter-button {
    padding-inline: 10px;
  }

  .article-card-content {
    padding: 21px;
  }

  .cta-copy h2 {
    font-size: 37px;
  }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
