/* ============================================================
   ATTIC SALT — PERSPECTIVES
   Shared stylesheet for all pages
   ============================================================ */

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

:root {
  --bg:       #111418;
  --bg-card:  #16191e;
  --bg-hover: #1a1d22;
  --border:   rgba(255,255,255,.07);
  --white:    #ffffff;
  --grey:     #7A7A7A;
  --accent:   #B9C896;
  --accent-dim: rgba(185,200,150,.1);
  --font:     'DM Sans', sans-serif;
  --radius-btn: 30px;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  text-decoration: none;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  transition: opacity .2s, transform .2s, border-color .25s, color .25s;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
  opacity: .88;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 56px;
  background: rgba(17,20,24,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.nav-section {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-back {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .2s;
  cursor: pointer;
}

.nav-back:hover { color: var(--white); }

.nav-back svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent);
  opacity: .5;
}

/* ── POST META ── */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

.post-date, .read-time {
  font-size: 12px;
  color: var(--grey);
  font-weight: 300;
}

/* ── POST CARD ── */
.post-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .25s, background .25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.post-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.post-card:hover { border-color: rgba(255,255,255,.12); background: var(--bg-hover); }
.post-card:hover::after { transform: scaleX(1); }
.post-card:hover .arrow-circle { background: var(--accent); border-color: var(--accent); }
.post-card:hover .arrow-circle svg { stroke: var(--bg); }

.post-card h3 {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.3;
  text-transform: uppercase;
  flex: 1;
}

.post-card > p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.65;
  font-weight: 300;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── ARROW CIRCLE ── */
.arrow-circle {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  flex-shrink: 0;
}

.arrow-circle svg {
  width: 14px; height: 14px;
  stroke: var(--white); fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── CTA STRIP ── */
.cta-strip {
  border: 1px solid var(--border);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--bg-card);
  margin-top: 40px !important;
}

.cta-strip h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cta-strip p {
  font-size: 14px;
  color: var(--grey);
  font-weight: 300;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 24px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.25);
  font-weight: 300;
}

.footer-subscribe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-subscribe-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: center;
}

.footer-subscribe-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}

.footer-subscribe-row input {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-btn);
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  color: var(--white);
  outline: none;
  transition: border-color .25s;
  cursor: pointer;
}

.footer-subscribe-row input::placeholder { color: rgba(255,255,255,.2); }
.footer-subscribe-row input:focus { border-color: rgba(185,200,150,.35); }

.footer-subscribe-note {
  font-size: 11px;
  color: rgba(255,255,255,.2);
  text-align: center;
  font-weight: 300;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  font-weight: 300;
  transition: color .2s;
  cursor: pointer;
}

.footer-links a:hover { color: var(--white); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.83);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: #161b1f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 52px 48px;
  width: 90%;
  max-width: 480px;
  position: relative;
  transform: translateY(22px);
  transition: transform .38s cubic-bezier(.34,1.56,.64,1);
}

.modal-overlay.active .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 20px; right: 22px;
  background: none; border: none;
  color: var(--grey);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}

.modal-close:hover { color: var(--white); }

.modal-eyebrow {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.modal-h {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 32px;
  line-height: 1.6;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #f7f7f7;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: border-color .25s;
  cursor: pointer;
}

.form-group input::placeholder { color: rgba(255,255,255,.2); }
.form-group input:focus { border-color: rgba(185,200,150,.4); }

.modal-submit {
  width: 100%;
  margin-top: 6px;
  font-size: 15px;
  padding: 15px;
}

.modal-note {
  font-size: 12px;
  color: rgba(255,255,255,.22);
  text-align: center;
  margin-top: 16px;
  line-height: 1.65;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  z-index: 99999;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.25,.46,.45,.94);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .1s; }
.rd2 { transition-delay: .2s; }
.rd3 { transition-delay: .3s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 12px 24px; }
  .nav-logo img { height: 36px; }

  footer {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }

  .footer-subscribe { align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .cta-strip { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .modal { padding: 40px 28px; }
}

@media (max-width: 768px) {
  nav { padding: 12px 20px; }
}
