/* ============================================
   AJ LITERARY — BLUE EDITION
   Theme matched to logo navy #171f2c
   Fonts: Cormorant Garamond + DM Sans
   Hero + Footer: Deep navy contrast
   Body: Warm white/ivory mid-sections
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── VARIABLES ─── */
:root {
  /* Core palette */
  --navy-deep:    #111827;   /* hero + footer bg — deep navy matching logo */
  --navy-mid:     #1a2540;   /* slightly lighter navy for footer border accents */
  --navy-text:    #c8d4e8;   /* soft blue-white text on dark navy */
  --navy-muted:   #7a90aa;   /* muted text on dark navy */
  --navy-rule:    rgba(255,255,255,0.08);

  /* Body palette — warm whites */
  --ivory:        #f8f6f2;
  --cream:        #f1ede6;
  --ink:          #1c1b19;
  --charcoal:     #2e2c29;
  --mid:          #6b6860;
  --soft:         #9c9890;
  --rule:         #dedad3;
  --rule-soft:    #e8e4de;

  /* Accent — steel blue (from logo mid-tone) */
  --blue:         #3d5a80;
  --blue-light:   #5c7fa8;
  --blue-glow:    rgba(61,90,128,0.08);

  /* Gold — warm accent carried over */
  --gold:         #8a7250;
  --gold-light:   #b09a72;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', -apple-system, sans-serif;

  --max-w:      720px;
  --max-w-wide: 1040px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ─── BODY + CSS GRAIN TEXTURE ─── */
body {
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Paper grain at 5% opacity — no image file needed */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* ─── HEADER ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-rule);
}

.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap img {
  height: 38px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

nav a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-muted);
  transition: color 0.25s;
  position: relative;
  padding-bottom: 2px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--blue-light);
  transition: width 0.3s ease;
}

nav a:hover,
nav a.active { color: #e8eef5; }

nav a:hover::after,
nav a.active::after { width: 100%; }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 22px;
  height: 1px;
  background: var(--navy-text);
  transition: all 0.3s;
}

/* ─── LAYOUT ─── */
main { flex: 1; }

.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.page-wrap-wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--rule-soft); }

/* ─── TYPOGRAPHY — body sections ─── */
h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--navy-muted);   /* muted blue-grey on dark hero */
}

/* ─── SECTION LABEL ─── */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
}

/* Section label in light body sections */
section:not(.hero) .section-label {
  color: var(--gold);
}

/* ─── GOLD / BLUE RULES ─── */
.rule-line {
  width: 36px;
  height: 1px;
  background: var(--blue-light);
  margin: 1.75rem 0;
}

/* ─── CALLOUT ─── */
.callout {
  border-left: 1px solid var(--blue);
  padding: 1.25rem 1.75rem;
  margin: 2.5rem 0;
  background: var(--blue-glow);
}

.callout p {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.7;
  margin: 0;
}

/* ─── HERO — deep navy ─── */
.hero {
  padding: 8rem 0 6rem;
  background-color: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

/* Bengali ghost letterform অ */
.hero::before {
  content: 'অ';
  position: absolute;
  right: -1%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(14rem, 22vw, 26rem);
  font-weight: 300;
  color: #5c7fa8;
  opacity: 0.07;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

/* Hero typography overrides — white on dark */
.hero h1 {
  color: #e8eef5;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero .lead {
  color: var(--navy-muted);
  max-width: 560px;
}

/* ─── TEXT LINK ─── */
.text-link {
  color: var(--blue-light);
  border-bottom: 1px solid rgba(92,127,168,0.4);
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: #e8eef5; border-color: var(--blue-light); }

/* ─── FOCUS PAGE ─── */
.focus-category {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule-soft);
}
.focus-category:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.rights-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rights-list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.rights-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue-light);
}

.not-represent {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  margin: 1rem 0;
}

.not-represent li {
  font-size: 0.9rem;
  color: var(--mid);
  padding: 0.4rem 0 0.4rem 1.1rem;
  position: relative;
  break-inside: avoid;
}

.not-represent li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--rule);
}

/* ─── CONTACT ─── */
.contact-stack { display: flex; flex-direction: column; }

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.contact-item:last-child { border-bottom: none; }

.contact-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--charcoal);
}

.contact-value a { color: var(--charcoal); transition: color 0.2s; }
.contact-value a:hover { color: var(--blue); }

.contact-note {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--rule);
  background: var(--cream);
}

.contact-note p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.75;
  margin: 0;
}

/* ─── FOOTER — deep navy ─── */
footer {
  background-color: var(--navy-deep);
  border-top: 1px solid var(--navy-rule);
  padding: 3.5rem 0 2.5rem;
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--navy-rule);
}

.footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--navy-muted);
  line-height: 1.8;
}

.footer-copy strong {
  font-weight: 400;
  color: var(--navy-text);
}

/* Acknowledgement of Country */
.footer-acknowledgement {
  padding-top: 2rem;
}

.footer-acknowledgement p {
  font-size: 0.78rem;
  color: var(--navy-muted);
  line-height: 1.85;
  max-width: 740px;
  margin: 0;
}

.footer-acknowledgement .ack-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate            { animation: fadeUp 0.8s ease both; }
.animate-delay-1    { animation-delay: 0.12s; }
.animate-delay-2    { animation-delay: 0.26s; }
.animate-delay-3    { animation-delay: 0.42s; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(17, 24, 39, 0.99);
    border-bottom: 1px solid var(--navy-rule);
    flex-direction: column;
    gap: 0;
  }

  nav.open { display: flex; }

  nav a {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--navy-rule);
    width: 100%;
    font-size: 0.82rem;
  }

  nav a::after { display: none; }

  .hero { padding: 5rem 0 4rem; }

  .hero::before {
    font-size: 9rem;
    opacity: 0.05;
    right: -4%;
  }

  .not-represent { columns: 1; }

  .footer-main {
    flex-direction: column;
    gap: 1.5rem;
  }
}
