/* ═══ KNOWING OTHERWISE — GLOBAL STYLES ═══ */

:root {
  --ink: #0f0d09;
  --parchment: #f5efe3;
  --ochre: #c8860a;
  --ochre-light: #f2c45a;
  --terracotta: #b84a2e;
  --forest: #1f3b2c;
  --forest-light: #2d5a3e;
  --sand: #e8d9bb;
  --cream: #faf6ed;
  --gold: #d4a843;
  --charcoal: #2a2520;
  --muted: #6b5d4e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Libre Baskerville', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--forest); display: flex; align-items: center;
  justify-content: space-between; padding: 0 2.5rem; height: 64px;
  border-bottom: 3px solid var(--gold);
}
.nav-logo {
  font-family: 'Space Mono', monospace; font-size: .7rem;
  color: var(--ochre-light); letter-spacing: .18em;
  text-transform: uppercase; line-height: 1.4;
  text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: 'Space Mono', monospace; font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--sand); text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--ochre-light); }
.nav-links a.active { color: var(--ochre-light); }
.nav-cta { background: var(--terracotta) !important; color: white !important; padding: .4rem 1rem; border-radius: 2px; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--terracotta); color: white;
  padding: .95rem 2.25rem; font-family: 'Space Mono', monospace;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .15s; display: inline-block;
}
.btn-primary:hover { background: #a33d24; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--sand);
  padding: .95rem 2.25rem; font-family: 'Space Mono', monospace;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 2px solid rgba(245,239,227,.3);
  cursor: pointer; transition: border-color .2s, color .2s; display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-white {
  background: white; color: var(--terracotta);
  padding: 1rem 2.5rem; font-family: 'Space Mono', monospace;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; display: inline-block;
  transition: transform .2s; border: none; cursor: pointer;
}
.btn-white:hover { transform: translateY(-2px); }

/* ── SHARED ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2.5rem; }
section { padding: 5.5rem 0; }
.section-label {
  font-family: 'Space Mono', monospace; font-size: .65rem;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.section-label::before { content: ''; display: block; width: 2rem; height: 2px; background: var(--ochre); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 1.25rem;
}
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(245,239,227,.45); padding: 3rem 0; text-align: center; }
.footer-name { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--ochre-light); margin-bottom: .5rem; }
footer p { font-size: .82rem; line-height: 1.7; }
footer a { color: var(--ochre-light); text-decoration: none; }
.footer-links { margin-top: .75rem; font-family: 'Space Mono', monospace; font-size: .65rem; letter-spacing: .1em; }
.footer-links a { margin: 0 .75rem; }

/* ── MODAL ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 999; display: none; align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: white; max-width: 520px; width: 90%;
  padding: 2.75rem; position: relative;
  border-top: 5px solid var(--terracotta);
  animation: modal-in .3s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-eyebrow { font-family: 'Space Mono', monospace; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ochre); margin-bottom: .75rem; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; color: var(--forest); margin-bottom: .5rem; line-height: 1.2; }
.modal-sub { font-size: .88rem; color: var(--muted); margin-bottom: 1.75rem; line-height: 1.6; }
.modal form { display: flex; flex-direction: column; gap: .85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form-field { display: flex; flex-direction: column; gap: .3rem; }
.form-field label { font-family: 'Space Mono', monospace; font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.form-field input, .form-field select {
  padding: .7rem .9rem; border: 1.5px solid var(--sand);
  font-family: 'Libre Baskerville', serif; font-size: .88rem;
  color: var(--ink); background: white; transition: border-color .2s; outline: none;
}
.form-field input:focus, .form-field select:focus { border-color: var(--forest); }
.form-submit {
  background: var(--terracotta); color: white; border: none; padding: .95rem;
  font-family: 'Space Mono', monospace; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; cursor: pointer; transition: background .2s; margin-top: .5rem;
}
.form-submit:hover { background: #a33d24; }
.form-note { font-size: .75rem; color: var(--muted); text-align: center; line-height: 1.5; }
.form-success { display: none; text-align: center; padding: 1rem 0; }
.form-success h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--forest); margin-bottom: .5rem; }
.form-success p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.purchase-links { display: none; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.purchase-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem; border: 1.5px solid var(--sand); text-decoration: none;
  color: var(--forest); font-family: 'Space Mono', monospace; font-size: .65rem;
  letter-spacing: .12em; text-transform: uppercase; transition: background .2s, border-color .2s;
}
.purchase-link:hover { background: var(--sand); border-color: var(--forest); }
.purchase-link .arrow { color: var(--ochre); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sand);
    transition: transform .2s, opacity .2s;
  }
  .nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links.open {
    display: flex !important;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--forest);
    flex-direction: column;
    padding: 1.5rem 2.5rem;
    gap: 1.25rem;
    border-bottom: 2px solid var(--gold);
    z-index: 199;
  }
  .nav-links.open a { font-size: .8rem; }
}

@media (min-width: 961px) {
  .nav-hamburger { display: none; }
}
