/* ============================================
   LETTRE DE MARQUE — Global Styles v3
   2026-03-23
   
   Colors:
   --bg:        #0a0a0a  (near-black)
   --parchment: #e8e4df  (primary text)
   --gold:      #b8933a  (accent / by invitation)
   --mint:      #86c3ae  (access)
   --red:       #c4392d  (restricted only)
   --muted-gold:#7a6a3a  (in-progress)
   
   Fonts:
   Display/body: Cormorant Garamond
   System/mono:  DM Mono
   ============================================ */

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

body {
  background: #0a0a0a;
  color: #e8e4df;
  font-family: 'Cormorant Garamond', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

html {
  background: #0a0a0a;
}

a { color: inherit; text-decoration: none; }

/* === LAYOUT === */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#dispatch-list, .section, .prose {
  flex: none;
}

.footer {
  margin-top: auto;
}

/* === NAV (sticky) === */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0a0a0a;
  border-bottom: 0.5px solid #b8933a;
}

.nav-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #e8e4df;
  transition: color 0.3s ease;
}

.nav-wordmark .de {
  font-style: italic;
  color: #b8933a;
  text-transform: lowercase;
  letter-spacing: 2px;
}

.nav-wordmark:hover {
  color: #b8933a;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #777;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #b8933a;
}

/* === NAMEPLATE (home only) === */

.nameplate {
  padding: 6vh 0 5vh 0;
}

.nameplate h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.1;
}

.nameplate .lettre {
  font-size: clamp(50px, 8vw, 73px);
  letter-spacing: 5px;
  color: #e8e4df;
}

.nameplate .de {
  font-size: clamp(24px, 3.2vw, 29px);
  color: #b8933a;
  font-style: italic;
  letter-spacing: 3px;
  padding-left: 2px;
  font-weight: 400;
  text-transform: lowercase;
}

.nameplate .marque {
  font-size: clamp(50px, 8vw, 73px);
  letter-spacing: 4px;
  color: #e8e4df;
}

/* === GOLD RULE === */

.rule {
  width: 36px;
  height: 1px;
  background: #b8933a;
  margin: 3vh 0;
}

/* === DIVIDERS === */

.divider {
  width: 100%;
  height: 1px;
  background: #1a1a1a;
  margin: 2vh 0;
}

.divider-gold {
  width: 100%;
  height: 1px;
  background: #b8933a;
  margin: 3vh 0;
}

/* === PROSE === */

.prose p {
  font-size: 24px;
  line-height: 1.5;
  color: #e8e4df;
  font-weight: 400;
}

.prose p + p {
  margin-top: 1.1em;
}

.prose .ldm-highlight {
  color: #b8933a;
  font-style: italic;
}

/* === SECTION === */

.section {
  padding: 5vh 0;
}

.section-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 13px;
  color: #777;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 3vh;
}

/* === PAGE HEADER (non-home pages) === */

.page-header {
  padding: 8vh 0 1vh 0;
}

.page-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 48px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e8e4df;
}

.page-header-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(17px, 2.2vw, 20px);
  color: #777;
  padding: 1.5vh 0 4vh 0;
}

/* === DISPATCH LIST === */

.dispatch {
  border-bottom: 0.5px solid #141414;
  padding: 1.1rem 0.5rem;
  display: grid;
  grid-template-columns: 40px 1fr 80px 160px;
  align-items: flex-start;
  gap: 1.5rem;
  transition: background 0.3s ease;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  text-decoration: none;
}

.dispatch:hover {
  background: rgba(184, 147, 58, 0.02);
}

.dispatch:first-of-type {
  border-top: 0.5px solid #141414;
}

.dispatch-left {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.dispatch-num {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 16px;
  color: #666;
  min-width: 32px;
  padding-top: 4px;
}

.dispatch-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dispatch-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  color: #e8e4df;
  font-weight: 400;
}

.dispatch-title.archived {
  color: #444;
}

.dispatch-title.invitation {
  color: #e8e4df;
}

.dispatch-sub {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}

.dispatch-sub.archived {
  color: #444;
}

.dispatch-num.archived {
  color: #333;
}

.dispatch-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.dispatch-status {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 4px;
}

.dispatch-status.access { color: #86c3ae; }
.dispatch-status.invitation { color: #b8933a; }
.dispatch-status.in-progress { color: #7a6a3a; }
.dispatch-status.archived { color: #c4392d; }

.dispatch-date {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  padding-top: 6px;
  text-align: center;
}

.dispatch-request-btn {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 0.5px solid #333;
  background: transparent;
  color: #777;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dispatch-request-btn:hover {
  background: #b8933a;
  border-color: #b8933a;
  color: #fff;
}

/* === DISPATCH DETAIL === */

.dispatch-detail {
  padding: 4vh 0 8vh 0;
  max-width: 720px;
}

.dispatch-detail-num {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 14px;
  color: #666;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.dispatch-detail h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(30px, 4.5vw, 42px);
  color: #e8e4df;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.dispatch-detail-meta {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #777;
  letter-spacing: 1px;
  margin-bottom: 4vh;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.dispatch-detail-body p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(18px, 2.2vw, 21px);
  color: #c8c4bf;
  line-height: 2;
  margin-bottom: 1.5em;
}

.dispatch-detail-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 26px);
  color: #e8e4df;
  margin: 2em 0 1em 0;
}

.dispatch-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 13px;
  color: #b8933a;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 0.5px solid #b8933a;
  padding: 10px 24px;
  transition: all 0.3s ease;
}

.dispatch-download:hover {
  background: rgba(184, 147, 58, 0.08);
}

/* === PORTAL === */

.portal {
  max-width: 400px;
}

.portal-field {
  margin-bottom: 1.2rem;
}

.portal-field label {
  display: block;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 13px;
  color: #777;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.portal-field input {
  width: 100%;
  background: #111;
  border: 0.5px solid #222;
  padding: 14px 16px;
  color: #e8e4df;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.portal-field input:focus {
  border-color: #b8933a;
}

.portal-field input::placeholder {
  color: #444;
}

/* === INQUIRY FORM === */

.inquiry-intro {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(16px, 1.8vw, 19px);
  color: #888;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 3vh;
}

.inquiry-form {
  max-width: 500px;
}

.inquiry-field {
  margin-bottom: 1.8rem;
}

.inquiry-field label {
  display: block;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 13px;
  color: #777;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.inquiry-field input,
.inquiry-field textarea {
  width: 100%;
  background: #111;
  border: 0.5px solid #222;
  padding: 14px 16px;
  color: #e8e4df;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.inquiry-field input:focus,
.inquiry-field textarea:focus {
  border-color: #b8933a;
}

.inquiry-field textarea {
  height: 120px;
  resize: vertical;
}

.inquiry-field input::placeholder,
.inquiry-field textarea::placeholder {
  color: #444;
}

/* === BUTTONS === */

.btn {
  display: inline-block;
  padding: 10px 28px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-gold {
  background: transparent;
  color: #b8933a;
  border: 0.5px solid #b8933a;
}

.btn-gold:hover {
  background: #b8933a;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #b8933a;
  border: 0.5px solid #b8933a;
}

.btn-outline:hover {
  background: rgba(184, 147, 58, 0.08);
}

/* === ABOUT TEXT === */

.about-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  color: #e8e4df;
  line-height: 1.9;
  max-width: none;
}

.about-text p + p {
  margin-top: 1.5em;
}

/* === MODAL === */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #111;
  border: 0.5px solid #222;
  padding: 3rem;
  max-width: 420px;
  width: 90%;
}

.modal-title {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 13px;
  color: #b8933a;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal-dispatch-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  color: #e8e4df;
  margin-bottom: 2rem;
}

.modal-field {
  margin-bottom: 1.5rem;
}

.modal-field label {
  display: block;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #777;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal-field input {
  width: 100%;
  background: #0a0a0a;
  border: 0.5px solid #222;
  padding: 12px 14px;
  color: #e8e4df;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease;
}

.modal-field input:focus {
  border-color: #b8933a;
}

.modal-success {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 13px;
  color: #b8933a;
  letter-spacing: 1px;
  display: none;
}

/* === FOOTER === */

.footer {
  margin-top: auto;
  padding: 4vh 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid #141414;
}

.footer span {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 11px;
  color: #666;
  letter-spacing: 2px;
}

/* === ANIMATIONS === */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in-1 { animation-delay: 0.2s; }
.fade-in-2 { animation-delay: 0.5s; }
.fade-in-3 { animation-delay: 0.8s; }
.fade-in-4 { animation-delay: 1.1s; }

/* === MOBILE === */

@media (max-width: 768px) {
  .nav { flex-direction: column; gap: 1.5rem; align-items: flex-start; padding: 1.5rem 0; }
  .nav-links { gap: 1.5rem; }
  .dispatch { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; }
  .dispatch-date { display: none; }
  .dispatch-right { grid-column: 2; }
  .footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
