/* ═══════════════════════════════════════
   salliejunaid.com — shared stylesheet v2
   ═══════════════════════════════════════ */

/* ── Dark mode (Deep Space) ── */
:root {
  --bg:      #04080f;
  --bg2:     #080e1a;
  --bg3:     #0f1828;
  --text:    #e8dcc8;
  --text2:   #9a8c72;
  --text3:   #5a5040;
  --accent:  #c4a96a;
  --border:  rgba(196,169,106,0.22);
  --border2: rgba(196,169,106,0.08);
  --surface: rgba(255,255,255,0.03);
  --nav-h:   64px;
  --serif:  'Cormorant Garamond', serif;
  --sans:   'Lato', sans-serif;
}

/* ── Light mode (Solar System) ── */
/* Background stays dark — the canvas provides colour via earth + sun */
[data-theme="light"] {
  --bg:      #030916;
  --bg2:     #05101e;
  --bg3:     #071426;
  --text:    #f5edd8;
  --text2:   #c0aa88;
  --text3:   #887a62;
  --accent:  #f0b030;
  --border:  rgba(240,176,48,0.28);
  --border2: rgba(240,176,48,0.09);
  --surface: rgba(255,220,100,0.04);
}

/* ── Reset ── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  transition: background .5s, color .5s;
  min-height: 100vh;
}

/* Warm sun-glow bleed in light mode */
[data-theme="light"] body::before {
  content: '';
  position: fixed;
  top: -120px; left: -120px;
  width: 700px; height: 700px;
  background: radial-gradient(circle,
    rgba(255,185,45,0.07) 0%,
    rgba(255,120,20,0.04) 40%,
    transparent 70%);
  pointer-events: none; z-index: 1;
}

a { color:var(--accent); text-decoration:none; transition:opacity .2s; }
a:hover { opacity:.72; }
s { opacity:.42; text-decoration-color:var(--text3); }
img { max-width:100%; display:block; }

/* ── Canvas — visible in BOTH modes ── */
/* (light mode canvas draws sun + earth; dark mode draws stars) */
#starfield {
  position: fixed; top:0; left:0;
  width:100%; height:100%;
  z-index: 0; pointer-events: none;
}

/* Moon: CSS div, dark mode only */
.moon {
  position: fixed; top:52px; right:68px;
  width:50px; height:50px; border-radius:50%;
  background: radial-gradient(circle at 38% 38%,
    #fffbf0, #f5e8a8 45%, #d4b870);
  box-shadow: 0 0 50px rgba(240,225,140,.22),
              0 0 90px rgba(240,225,140,.07);
  z-index: 1; pointer-events: none;
  transition: opacity .6s;
}
[data-theme="light"] .moon { opacity:0; }

/* ── Layout ── */
.wrapper { position:relative; z-index:2; }
.container { max-width:860px; margin:0 auto; padding:0 28px; }
.container--wide { max-width:1100px; margin:0 auto; padding:0 28px; }
.pt-nav { padding-top: var(--nav-h); }

/* ── Navigation ── */
.nav {
  position:fixed; top:0; left:0; right:0;
  height:var(--nav-h); z-index:100;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border2);
  background:rgba(4,8,15,.72);
  transition:background .5s;
}
[data-theme="light"] .nav { background:rgba(3,9,22,.78); }

.nav__inner {
  display:flex; align-items:center;
  justify-content:space-between;
  height:100%; max-width:1100px;
  margin:0 auto; padding:0 28px;
}

.nav__logo {
  font-family:var(--serif); font-size:22px;
  font-weight:400; letter-spacing:.06em;
  color:var(--text); flex-shrink:0;
}
.nav__logo span { color:var(--accent); }

.nav__links {
  display:flex; align-items:center;
  gap:28px; list-style:none;
}
.nav__links a {
  font-size:10px; letter-spacing:.32em;
  text-transform:uppercase; color:var(--text2);
  transition:color .2s;
}
.nav__links a:hover { color:var(--text); opacity:1; }
.nav__birthday { color:var(--accent) !important; }

.nav__right { display:flex; align-items:center; gap:12px; }

.nav__toggle {
  background:none; border:1px solid var(--border);
  border-radius:50%; width:34px; height:34px;
  cursor:pointer; color:var(--text2); font-size:14px;
  display:flex; align-items:center; justify-content:center;
  transition:border-color .2s, color .2s;
}
.nav__toggle:hover { border-color:var(--accent); color:var(--accent); }

.nav__hamburger {
  display:none; flex-direction:column;
  gap:5px; background:none; border:none;
  cursor:pointer; padding:4px;
}
.nav__hamburger span {
  display:block; width:22px; height:1px;
  background:var(--text2); transition:all .3s;
}

.nav__mobile {
  display:none; position:fixed;
  top:var(--nav-h); left:0; right:0;
  background:var(--bg2);
  border-bottom:1px solid var(--border);
  padding:24px 28px; z-index:99;
  flex-direction:column; gap:20px;
}
.nav__mobile.open { display:flex; }
.nav__mobile a {
  font-size:12px; letter-spacing:.28em;
  text-transform:uppercase; color:var(--text2);
}

/* ── Hero ── */
.hero {
  min-height:100vh; display:flex;
  flex-direction:column; align-items:center;
  justify-content:center; text-align:center;
  padding:80px 28px 60px;
}
.hero__eyebrow {
  font-size:10px; letter-spacing:.5em;
  text-transform:uppercase; color:var(--text3); margin-bottom:24px;
}
.hero__name {
  font-family:var(--serif);
  font-size:clamp(56px,11vw,104px);
  font-weight:300; letter-spacing:.1em;
  color:var(--text); line-height:1; margin-bottom:14px;
}
.hero__tagline {
  font-family:var(--serif); font-style:italic;
  font-size:clamp(16px,2.5vw,21px);
  color:var(--text2); letter-spacing:.08em; margin-bottom:40px;
}
.hero__ornament {
  color:var(--accent); font-size:14px;
  letter-spacing:16px; margin-bottom:40px;
}
.hero__scroll {
  font-size:10px; letter-spacing:.45em;
  text-transform:uppercase; color:var(--text3);
  animation:float 2.6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(7px); }
}

/* ── Sections ── */
.section    { padding:80px 0; }
.section--sm { padding:48px 0; }

.section__label {
  font-size:10px; letter-spacing:.5em;
  text-transform:uppercase; color:var(--text3);
  margin-bottom:40px;
  display:flex; align-items:center; gap:16px;
}
.section__label::after {
  content:''; flex:1; height:1px; background:var(--border);
}

/* ── Post cards ── */
.posts-grid { display:grid; gap:0; }
.post-card {
  padding:36px 0; border-bottom:1px solid var(--border2);
  display:grid; grid-template-columns:110px 1fr;
  gap:36px; align-items:start; transition:opacity .2s;
}
.post-card:first-child { border-top:1px solid var(--border2); }
.post-card:hover { opacity:.82; }
.post-card__meta { text-align:right; padding-top:3px; }
.post-card__date { font-size:11px; letter-spacing:.12em; color:var(--text3); display:block; }
.post-card__tag  { display:inline-block; margin-top:8px; font-size:9px; letter-spacing:.32em; text-transform:uppercase; color:var(--accent); }
.post-card__title { font-family:var(--serif); font-size:clamp(20px,3vw,26px); font-weight:400; color:var(--text); line-height:1.3; margin-bottom:10px; }
.post-card__excerpt { font-size:14px; color:var(--text2); line-height:1.75; margin-bottom:14px; }
.post-card__read { font-size:10px; letter-spacing:.3em; text-transform:uppercase; color:var(--accent); }

/* ── Archive ── */
.archive { display:grid; gap:0; }
.archive__item {
  padding:18px 0; border-bottom:1px solid var(--border2);
  display:flex; justify-content:space-between;
  align-items:baseline; gap:24px;
}
.archive__item:first-child { border-top:1px solid var(--border2); }
.archive__item a { color:var(--text); font-family:var(--serif); font-size:18px; }
.archive__item a:hover { color:var(--accent); opacity:1; }
.archive__item__year { font-size:11px; letter-spacing:.12em; color:var(--text3); flex-shrink:0; }

/* ── Page hero ── */
.page-hero { padding:110px 0 56px; }
.page-hero__eyebrow { font-size:10px; letter-spacing:.5em; text-transform:uppercase; color:var(--text3); margin-bottom:14px; }
.page-hero__title { font-family:var(--serif); font-size:clamp(38px,6vw,64px); font-weight:300; color:var(--text); line-height:1.1; }
.page-hero__sub { font-family:var(--serif); font-style:italic; font-size:clamp(15px,2vw,18px); color:var(--text2); margin-top:14px; }
.page-divider { border:none; border-top:1px solid var(--border2); margin:0 0 60px; }

/* ── About ── */
.about-grid { display:grid; grid-template-columns:200px 1fr; gap:64px; align-items:start; }
.about-avatar { aspect-ratio:1; border:1px solid var(--border); overflow:hidden; display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-size:52px; color:var(--accent); background:var(--surface); letter-spacing:0; }
.about-bio p { font-family:var(--serif); font-size:clamp(17px,2.5vw,20px); line-height:1.95; color:var(--text2); margin-bottom:22px; }
.about-bio p strong { color:var(--text); font-weight:400; }
.about-bio a { color:var(--accent); }

/* ── Post page ── */
.post-header { text-align:center; padding:100px 0 52px; }
.post-header__cat { font-size:10px; letter-spacing:.5em; text-transform:uppercase; color:var(--accent); margin-bottom:18px; }
.post-header__title { font-family:var(--serif); font-size:clamp(32px,6vw,58px); font-weight:300; color:var(--text); line-height:1.2; margin-bottom:18px; max-width:680px; margin-left:auto; margin-right:auto; }
.post-header__date { font-size:11px; letter-spacing:.22em; color:var(--text3); }
.post-divider { border:none; border-top:1px solid var(--border); margin:0 0 52px; }
.post-body { font-family:var(--serif); font-size:clamp(17px,2.5vw,20px); line-height:2; color:var(--text2); max-width:640px; margin:0 auto; }
.post-body p { margin-bottom:28px; }
.post-body h2 { font-size:clamp(22px,3.5vw,28px); font-weight:400; color:var(--text); margin:48px 0 20px; font-style:italic; }
.post-body blockquote { border-left:1px solid var(--accent); padding-left:24px; margin:32px 0; font-style:italic; color:var(--text3); }
.post-footer { max-width:640px; margin:64px auto 0; padding-top:36px; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.post-footer a { font-size:10px; letter-spacing:.3em; text-transform:uppercase; color:var(--text3); }
.post-footer a:hover { color:var(--accent); opacity:1; }

/* ── Contact ── */
.contact-form { max-width:500px; }
.form-group { margin-bottom:36px; }
.form-label { display:block; font-size:10px; letter-spacing:.42em; text-transform:uppercase; color:var(--text3); margin-bottom:10px; }
.form-input, .form-textarea { width:100%; background:transparent; border:none; border-bottom:1px solid var(--border); color:var(--text); font-family:var(--serif); font-size:19px; padding:8px 0; outline:none; transition:border-color .3s; -webkit-appearance:none; border-radius:0; }
.form-input:focus, .form-textarea:focus { border-bottom-color:var(--accent); }
.form-textarea { resize:none; min-height:110px; }
.form-input::placeholder, .form-textarea::placeholder { color:var(--text3); font-style:italic; }
.btn-submit { background:transparent; border:1px solid var(--border); color:var(--accent); font-family:var(--sans); font-weight:300; font-size:10px; letter-spacing:.38em; text-transform:uppercase; padding:14px 44px; cursor:pointer; transition:all .3s; }
.btn-submit:hover { background:var(--surface); border-color:var(--accent); }

/* ── Footer ── */
.footer { border-top:1px solid var(--border2); padding:40px 0; margin-top:80px; }
.footer__inner { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.footer__copy { font-size:12px; color:var(--text3); letter-spacing:.1em; }
.footer__links { display:flex; gap:24px; list-style:none; }
.footer__links a { font-size:10px; letter-spacing:.28em; text-transform:uppercase; color:var(--text3); }
.footer__links a:hover { color:var(--accent); opacity:1; }

/* ── Responsive ── */
@media (max-width:768px) {
  .nav__links { display:none; }
  .nav__hamburger { display:flex; }
  .post-card { grid-template-columns:1fr; gap:10px; }
  .post-card__meta { text-align:left; }
  .about-grid { grid-template-columns:1fr; }
  .about-avatar { max-width:160px; }
  .archive__item { flex-direction:column; gap:4px; }
  .footer__inner { flex-direction:column; align-items:flex-start; }
  .moon { top:20px; right:20px; width:36px; height:36px; }
}
@media (max-width:480px) {
  .container, .container--wide { padding:0 18px; }
  .section { padding:56px 0; }
  .post-header { padding:80px 0 40px; }
}
