/* eddiemercado.com
   Colors and type follow the Oct 8, 2026 brand board. */

:root {
  --green: #00D89A;        /* NV green: hero color, on black only */
  --green-deep: #009D70;   /* icon and large green type on white */
  --green-text: #008861;   /* small green text on white (4.5:1) */
  --coral: #FB6257;
  --blue: #5465F6;
  --gray-light: #C9CED6;
  --gray-dark: #3A3F46;
  --black: #050708;
  --white: #FFFFFF;
  --wrap: 1120px;
  --line: #E4E7EB;       /* hairline on white */
  --line-dark: #1C2025;  /* hairline on black */
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  color: var(--black);
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration-color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 { font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 0.5em; text-wrap: balance; }
::selection { background: var(--green); color: var(--black); }
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); color: var(--black); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--black); color: var(--white); border-bottom: 1px solid var(--line-dark); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 3px; background: var(--white); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.nav { display: flex; gap: 6px 30px; flex-wrap: wrap; font-weight: 500; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; color: var(--gray-light); transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--green); color: var(--white); }

/* Hero */
.hero { background: var(--black); color: var(--white); padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.on-white .eyebrow, .eyebrow.on-white { color: var(--green-text); }
.hero .lede { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.55; color: var(--gray-light); max-width: 32em; }
.hero .lede strong { color: var(--white); font-weight: 500; }
.hero h1 .accent { color: var(--green); }

.page-hero { background: var(--black); color: var(--white); padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 14em; }
.page-hero .lede { font-size: clamp(1.15rem, 2.1vw, 1.4rem); color: var(--gray-light); max-width: 36em; margin: 0; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap; min-height: 52px; padding: 0 26px; font: inherit; font-weight: 500; font-size: 0.98rem; letter-spacing: 0.02em; text-decoration: none; background: var(--green); color: var(--black); border: 1px solid var(--green); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn .arr { display: inline-block; font-size: 1.1em; line-height: 1; transition: transform .2s; }
.btn:hover { background: var(--white); border-color: var(--white); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn:hover .arr.down { transform: translateY(3px); }
.btn.alt { background: var(--black); color: var(--white); border-color: var(--black); }
.btn.alt:hover { background: var(--green); border-color: var(--green); color: var(--black); }

/* Photos: each slot shows its expected file name until the image exists */
.photo { position: relative; margin: 0; background: var(--gray-light); overflow: hidden; aspect-ratio: 3 / 4; }
.photo::before { content: attr(data-file); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; font-size: 0.85rem; font-weight: 500; color: var(--gray-dark); }
.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.photo.headshot { aspect-ratio: 1 / 1; background: var(--green); }
.hero .photo.headshot { overflow: visible; margin: 0 14px 14px 0; }
.hero .photo.headshot::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--green); z-index: -1; }
.hero .wrap > * { position: relative; z-index: 0; }
.photo.headshot::before { color: var(--black); }
.photo.wide { aspect-ratio: 4 / 3; }

/* Sections */
section { padding: clamp(56px, 9vw, 128px) 0; }
section.rule { border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4.5vw, 56px); }
.section-head p { color: var(--gray-dark); font-size: 1.15rem; margin: 0; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.step { border-top: 1px solid var(--black); padding-top: 26px; }
.step svg { width: 36px; height: 25px; color: var(--green-deep); margin-bottom: 20px; }
.step p { color: var(--gray-dark); margin: 0; }

.band { background: var(--black); color: var(--white); }
.band .section-head p { color: var(--gray-light); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }

.promo { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.promo-logo { display: block; max-width: 440px; margin-bottom: clamp(24px, 4vw, 44px); }
.promo-logo img { width: 100%; height: auto; }
.promo h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.promo h2 .accent { color: var(--green); }
.promo-note { color: var(--gray-light); font-size: 1.15rem; }
.subscribe { display: flex; gap: 0; }
.subscribe input { flex: 1; min-width: 0; min-height: 52px; padding: 12px 18px; font: inherit; color: var(--black); background: var(--white); border: 2px solid var(--white); border-radius: 0; }
.subscribe input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.subscribe .btn { cursor: pointer; }
.promo-fine { color: var(--gray-light); font-size: 0.9rem; margin: 12px 0 0; }
.embed { background: var(--white); color: var(--black); padding: 8px; }
.embed iframe { display: block; width: 100%; height: 320px; border: 0; background: var(--white); }

.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.ig-grid .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.ig-card { border: 1px solid var(--black); padding: clamp(22px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.ig-card p { margin: 0; max-width: 30em; color: var(--gray-dark); }
.ig-card .handle { font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--black); display: block; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.card { display: block; text-decoration: none; border: 1px solid var(--line); transition: background-color .25s, border-color .25s, color .25s; }
.card .photo img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .photo img { transform: scale(1.04); }
.card .photo { aspect-ratio: 4 / 3; }
.card .body { padding: 28px 30px 32px; }
.card p { color: var(--gray-dark); margin: 0 0 12px; }
.card .more { font-weight: 500; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-text); }
.card .more::after { content: " \2192"; }
.card:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.card:hover p { color: var(--gray-light); }
.card:hover .more { color: var(--green); }

/* Long-form pages */
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #1b1f24; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.aside { position: sticky; top: 24px; }
.aside .facts { list-style: none; margin: 20px 0 0; padding: 0; font-size: 1rem; }
.aside .facts li { padding: 12px 0; border-top: 1px solid var(--line); }
.aside .facts span { display: block; margin-bottom: 2px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-text); font-weight: 500; }
.career { list-style: none; padding: 0; margin: 0 0 1.1em; }
.career li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; }
.career li:last-child { border-bottom: 1px solid var(--line); }
.career small { font-weight: 400; color: var(--gray-dark); font-size: 0.95rem; }
.note { font-size: 0.95rem; color: var(--gray-dark); font-style: italic; }

.person { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery .photo.wide { grid-column: span 2; aspect-ratio: 4 / 3; }

/* Footer */
.site-footer { background: var(--black); color: var(--gray-light); padding: 56px 0; font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--white); text-decoration: none; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer a:hover { color: var(--green); }
.site-footer p { margin: 0; }
.site-footer .note { flex-basis: 100%; color: var(--gray-light); }

@media (max-width: 820px) {
  .site-header .wrap { flex-wrap: wrap; }
  .brand img { height: 26px; }
  .nav-toggle { display: flex; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: 8px; font-size: 0.9rem; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line-dark); color: var(--green); }
  .hero .photo.headshot { margin-bottom: 30px; }
  .hero .wrap, .split, .with-aside, .person, .promo { grid-template-columns: 1fr; }
  .promo-logo { max-width: 300px; }
  .hero .photo.headshot { max-width: 280px; order: -1; }
  .three, .cards, .ig-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .aside .photo { max-width: 280px; }
}
@media (max-width: 460px) {
  .actions .btn { flex: 1 1 100%; }
  .subscribe { flex-direction: column; gap: 10px; }
  body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
