/* ============================================================
   Pacific Shelf — Shared Stylesheet
   Applies to: index.html, contact.html, about.html
   Fonts: IBM Plex Sans, IBM Plex Serif, IBM Plex Mono
   ============================================================ */

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

/* ── VARIABLES ── */
:root {
  --cream:      #F2EDE3;
  --cream-d:    #E8E2D6;
  --cream-dd:   #DDD6C8;
  --ink:        #1E1D1A;
  --ink-mid:    #3D3C38;
  --ink-dim:    #7A7870;
  --ink-faint:  #AAA89F;
  --grove:      #2B4532;
  --grove-bg:   #E6EDE8;
  --clay:       #8C4A2A;
  --rule:       #D0CBB8;
  --white:      #FDFCF8;
  --sans:   'IBM Plex Sans', sans-serif;
  --serif:  'IBM Plex Serif', Georgia, serif;
  --mono:   'IBM Plex Mono', monospace;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2.5rem;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 50;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* ── PS MARK (logo) ── */
.nav-mark {
  width: 32px;
  height: 32px;
  background: var(--grove);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-mark svg {
  width: 18px;
  height: 18px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-wordmark {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
  line-height: 1.1;
}

.nav-sub {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 500; }

.nav-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 9px 18px;
  background: var(--grove);
  color: var(--cream);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.nav-btn:hover { opacity: 0.85; }

/* ── MOBILE HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  margin-left: 0.5rem;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.2s;
}

/* ── MOBILE DRAWER ── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 100;
  flex-direction: column;
  padding: 1.5rem 2rem;
}
.nav-drawer.open { display: flex; }

.nav-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.nav-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--ink-dim);
  line-height: 1;
  padding: 4px;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-drawer-link {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  padding: 1.1rem 0;
  border-bottom: 0.5px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-drawer-link::after {
  content: '→';
  font-size: 16px;
  color: var(--ink-faint);
}
.nav-drawer-link:hover { color: var(--grove); }

.nav-drawer-btn {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 20px;
  background: var(--grove);
  color: var(--cream);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s;
}
.nav-drawer-btn:hover { opacity: 0.85; }

/* ── FOOTER ── */
footer {
  background: var(--cream-d);
  border-top: 1px solid var(--rule);
  padding: 1.6rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.1px;
}

.footer-disc {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 300;
  color: var(--ink-faint);
  max-width: 500px;
  line-height: 1.5;
}

/* ── TICKER ── */
.ticker {
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--ink);
  padding: 9px 0;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 50s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
  flex-shrink: 0;
}
.ticker-item strong {
  color: var(--cream-dd);
  font-weight: 500;
}
.ticker-dot {
  color: var(--grove);
  margin: 0 0.5rem;
}

/* ── SECTION LABELS ── */
.sect-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 4.5rem 2.5rem 3.5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.page-header-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--ink-faint);
}

.eyebrow-text {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.page-headline {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 520px;
}

.page-headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--grove);
}

.page-subhead {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 480px;
}

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

.anim-1 { animation: fadeUp 0.45s ease both 0.05s; }
.anim-2 { animation: fadeUp 0.45s ease both 0.15s; }
.anim-3 { animation: fadeUp 0.45s ease both 0.25s; }
.anim-4 { animation: fadeUp 0.45s ease both 0.32s; }
.anim-5 { animation: fadeUp 0.45s ease both 0.38s; }

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  background: var(--grove);
  color: var(--cream);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }

/* ── EMAIL INPUT ── */
.email-input {
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.email-input:focus { border-color: var(--grove); }
.email-input::placeholder { color: var(--ink-faint); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav { padding: 1rem 1.5rem; }
  footer { padding: 1.25rem 1.5rem; }
  .page-header { padding: 3rem 1.5rem 2.5rem; }
}

@media (max-width: 640px) {
  .nav-sub { display: none; }
  .nav-right .nav-link { display: none; }
  .nav-right .nav-btn { display: none; }
  .nav-hamburger { display: flex; }
}
