/* =========================================
   Murray Abeles — Direction A
   Warm & Humanistic · Editorial
   ========================================= */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ── Design Tokens ── */
:root {
  --ink:         oklch(0.18 0.020 250);
  --ink-2:       oklch(0.28 0.018 250);
  --text:        oklch(0.35 0.015 250);
  --muted:       oklch(0.50 0.012 250);
  --subtle:      oklch(0.68 0.010 250);
  --line:        oklch(0.88 0.008 250);
  --line-2:      oklch(0.94 0.006 250);
  --paper:       oklch(0.985 0.003 250);
  --paper-2:     oklch(0.965 0.005 250);
  --accent:      oklch(0.52 0.08  240);
  --accent-soft: oklch(0.94 0.02  240);

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(oklch(0.40 0.02 250 / 0.020) 1px, transparent 1px),
    radial-gradient(oklch(0.20 0.02 250 / 0.015) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 1px;
  mix-blend-mode: multiply;
  z-index: 0;
}

/* =========================================
   NAV
   ========================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  background: oklch(0.985 0.003 250 / 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark-rule {
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}
.mark-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.site-nav > nav:not(.nav-drawer) {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-dash {
  font-family: var(--mono);
  color: var(--subtle);
  font-size: 11px;
}
.nav-link:hover { background: oklch(0.20 0.015 250 / 0.06); }
.nav-link.active { background: var(--ink); color: var(--paper); }
.nav-link.active .nav-dash { color: oklch(0.70 0.01 250); }

.nav-linkedin {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--ink);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-linkedin:hover { color: var(--accent); background: oklch(0.20 0.015 250 / 0.06); }

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: oklch(0.20 0.015 250 / 0.06); }
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: oklch(0.985 0.003 250 / 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 12px 20px 20px;
  gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link {
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 8px;
}
.nav-drawer .nav-linkedin {
  margin-left: 0;
  padding: 12px 16px;
  justify-content: flex-start;
  gap: 10px;
  font-size: 13px;
  font-family: var(--sans);
  border-radius: 8px;
}
.nav-drawer .nav-linkedin::after {
  content: 'LinkedIn';
  font-size: 15px;
}

/* =========================================
   HOME — HERO
   ========================================= */
.home-wrap {
  padding: 0 56px 40px;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0 64px;
  padding: 40px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-body {
  align-self: end;
  padding-bottom: 8px;
}

.hero-h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 78px;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.hero-line-1 { display: block; }
.hero-line-2 { display: block; margin-left: 0.12em; }
.hero-line-2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.hero-rule {
  width: 72px;
  height: 2px;
  background: var(--ink);
  margin: 36px 0 28px;
}

.hero-lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  max-width: 520px;
  margin: 0;
}
.hero-lede em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin: 24px 0 0;
  max-width: 520px;
}

.hero-portrait {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.portrait-frame {
  position: relative;
  width: 100%;
  height: 720px;
  background: var(--paper-2);
  overflow: hidden;
  border: 1px solid var(--line);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;
  filter: saturate(0.85) contrast(1.02);
}
.portrait-grain {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, oklch(0.20 0.02 250 / 0) 60%, oklch(0.20 0.02 250 / 0.20) 100%),
    repeating-linear-gradient(0deg, oklch(0.20 0.02 250 / 0.02) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

/* =========================================
   SHARED — EYEBROW
   ========================================= */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 3px oklch(0.52 0.08 240 / 0.22);
  flex-shrink: 0;
}

/* =========================================
   INTERIOR PAGES
   ========================================= */
.page-wrap {
  padding: 40px 56px 120px;
  position: relative;
  z-index: 1;
  min-height: 80vh;
}

.page-head {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
}

.page-h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 120px;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
  margin: 0;
}
.page-h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

/* =========================================
   BIO — ESSAY
   ========================================= */
.essay {
  max-width: 680px;
  margin: 0 auto;
}

.essay-p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  margin: 0 0 36px;
}
.essay-first { margin-top: 12px; }
.essay-p strong { color: var(--ink); }
.essay-p em { font-style: italic; }

.dropcap {
  float: left;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 88px;
  line-height: 0.85;
  color: var(--ink);
  margin: 8px 14px -2px 0;
  letter-spacing: -0.04em;
}

.plate {
  margin: 48px -60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plate-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper-2);
  display: block;
  transition: opacity 0.2s;
}
a.plate-img:hover { opacity: 0.92; }
.plate-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
}

.plate figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  display: flex;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 4px;
}
.cap-num {
  color: var(--accent);
  font-weight: 500;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.essay-colophon {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 64px;
  padding-top: 8px;
}
.essay-colophon-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.essay-colophon-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================
   PRESS
   ========================================= */
.press { display: flex; flex-direction: column; gap: 80px; max-width: 760px; margin: 0 auto; }

.press-group-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.press-list { list-style: none; padding: 0; margin: 0; }

.press-embed {
  margin-left: 194px;
  margin-top: 22px;
  margin-bottom: 4px;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-2);
}
.press-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.press-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: center;
  transition: padding-left 0.2s;
}
.press-item:hover { padding-left: 12px; }

.press-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-right: 20px;
  border-right: 1px solid var(--line-2);
  height: 56px;
  width: 100%;
  flex-shrink: 0;
}
.press-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.press-logo--cnbc .press-logo-img,
.press-logo--univision .press-logo-img { max-width: 60px; }
.press-logo--wall-street-journal .press-logo-img { max-width: 56px; }

.press-logo-text {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
}

.press-title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.press-item:hover .press-title { color: var(--accent); }

/* =========================================
   CONTACT
   ========================================= */
.contact-solo {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--paper-2);
  padding: 40px;
  border: 1px solid var(--line);
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 2px;
  transition: border-color 0.2s;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-field textarea { resize: vertical; }

.form-btn {
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, gap 0.2s;
}
.form-btn:hover { background: var(--accent); gap: 16px; }
.form-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-error {
  font-family: var(--mono);
  font-size: 12px;
  color: oklch(0.5 0.18 25);
  padding: 10px 14px;
  border: 1px solid oklch(0.5 0.18 25 / 0.3);
  background: oklch(0.5 0.18 25 / 0.04);
}

/* =========================================
   THANK YOU
   ========================================= */
.thankyou-msg {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 28px;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 24px 56px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.footer-base {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1000px) {
  .site-nav  { padding: 16px 32px; }
  .home-wrap { padding: 0 32px 40px; }
  .page-wrap { padding: 32px 32px 80px; }
  .site-footer { padding: 20px 32px; }

  .hero { grid-template-columns: 1fr; gap: 48px; padding: 32px 0 64px; }
  .hero-h1 { font-size: 56px; }
  .portrait-frame { height: 480px; }

  .page-h1 { font-size: 72px; }
  .plate { margin: 40px 0; }
}

@media (max-width: 680px) {
  .site-nav  { padding: 14px 20px; position: relative; flex-wrap: wrap; }
  .home-wrap { padding: 0 20px 32px; }
  .page-wrap { padding: 40px 20px 64px; }
  .site-footer { padding: 16px 20px; }

  .site-nav > nav:not(.nav-drawer) { display: none; }
  .nav-hamburger { display: flex; }
  .mark-name { font-size: 16px; }

  .hero-h1 { font-size: 42px; }
  .hero-lede { font-size: 17px; }
  .portrait-frame { height: 360px; }

  .page-h1 { font-size: 48px; }
  .essay-p { font-size: 17px; }
  .dropcap { font-size: 64px; }

  .press-item { grid-template-columns: 120px 1fr; }
  .press-embed { margin-left: 0; }

  .contact-form { padding: 24px; }
}
