/* =========================================================
   Ruben Montané, D.C. | site styles
   Big-type studio look (reference: magic.film). Linen palette:
   dark home page, linen pages everywhere else, orange primary buttons.
   One huge centered Anton statement per section, small uppercase
   Inter for everything around it, rounded pill buttons.
   ========================================================= */

:root {
  --ink: #0E0D0C;          /* near-black: text, pills, home page and menu background */
  --paper: #EFE8DC;        /* linen: light page background, text on dark */
  --white: #FFFFFF;
  --orange: #E9672F;       /* primary buttons (ink text), menu hover line */
  --orange-hover: #F28252; /* primary button hover */
  --accent: #C4552A;       /* accent text on linen. Large text only (3.7:1): prices */
  --muted-on-ink: #B5AEA3;
  --muted-on-paper: #4A443D;
  --rule: #D8CFC1;         /* divider on linen */
  --rule-on-color: rgba(239, 232, 220, .22);  /* divider on dark */
  --pad: clamp(20px, 6vw, 72px);
  --font-poster: 'Anton', 'Impact', sans-serif;                         /* headlines, brand, menu, footer mark */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; /* everything else */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.dark { background: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* On dark surfaces use orange */
.dark :focus-visible, .menu :focus-visible { outline-color: var(--orange); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 16px; font: 700 .78rem var(--font-body);
  letter-spacing: .1em; text-transform: uppercase;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 60; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Pills (every button on the site) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 8px; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font: 700 .78rem var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
}
.pill:hover { color: var(--orange); }
.pill-alt { background: var(--white); color: var(--ink); }
.pill-alt:hover { background: var(--paper); color: var(--ink); }
.pill-light { background: var(--paper); color: var(--ink); }
.pill-light:hover { background: var(--white); color: var(--ink); }
.pill-cta { min-height: 52px; padding: 0 20px; font-size: .85rem; background: var(--orange); color: var(--ink); }
.pill-cta:hover { background: var(--orange-hover); color: var(--ink); }
/* Header and menu pills on dark: linen with ink text */
.dark .pill:not(.pill-cta), .menu .pill { background: var(--paper); color: var(--ink); }
.dark .pill:not(.pill-cta):hover, .menu .pill:hover { background: var(--white); color: var(--ink); }

/* ---------- Header: name left, pills right ---------- */
/* Transparent: takes the page color (cyan or beige). */
.site-header { background: transparent; color: var(--ink); }
.dark .site-header, .dark .brand, .menu .brand { color: var(--paper); }
.bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px 24px; padding: 18px var(--pad);
}
.brand {
  font: 400 1.35rem/1 var(--font-poster);
  letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
@media (max-width: 600px) { .bar .pill-soc { display: none; } }

/* ---------- Menu: full-screen, opens on #menu, no JavaScript ---------- */
.menu { display: none; }
.menu:target {
  display: block; position: fixed; inset: 0; z-index: 50; overflow-y: auto;
  background: var(--ink); color: var(--paper);
}
.menu-nav { padding: 0 var(--pad) 40px; }
.menu-nav a {
  display: block; padding: 4px 0 2px; white-space: nowrap;
  border-bottom: 1px solid var(--rule-on-color);
  font: 400 clamp(3rem, 8.6vw, 8.4rem)/1.04 var(--font-poster);
  text-transform: uppercase; text-decoration: none; color: var(--paper);
}
.menu-nav a:nth-child(2) { padding-left: 22%; }
.menu-nav a:nth-child(3) { text-align: right; }
.menu-nav a:nth-child(4) { padding-left: 30%; }
.menu-nav a:nth-child(5) { padding-left: 10%; }
.menu-nav .num {
  display: inline-block;  /* stops the active line-through from crossing the number */
  margin-right: 10px; vertical-align: top;
  font: 600 .9rem var(--font-body); letter-spacing: .1em; opacity: .65;
}
.menu-nav a:hover, .menu-nav a.is-active { text-decoration: line-through; text-decoration-thickness: .08em; text-decoration-color: var(--paper); }  /* linen line on the current page */
.menu-nav a:hover { text-decoration-color: var(--orange); }  /* orange line on hover */
@media (max-width: 600px) {
  .menu-nav a { padding-left: 0 !important; text-align: left !important; }
}

/* ---------- Shared type ---------- */
.eyebrow {
  margin: 0 0 26px;
  font: 500 .9rem var(--font-body); letter-spacing: .14em; text-transform: uppercase;
}
.title {
  margin: 0;
  font: 400 clamp(3rem, 8.6vw, 8.2rem)/.9 var(--font-poster);
  letter-spacing: -.005em; text-transform: uppercase;
}
.title span { display: block; }
.lede {
  max-width: 54ch; margin: 34px auto 0;
  font: 400 clamp(1.1rem, 1.5vw, 1.3rem)/1.6 var(--font-body);
}
.meta {
  margin: 26px 0 0;
  font: 500 .78rem/1.6 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-on-paper);
}
.dark .meta { color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }

/* ---------- Home: one centered statement + signup ---------- */
.hero-home {
  min-height: calc(100svh - 76px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px var(--pad) 64px; text-align: center; color: var(--ink);
}
/* Home only: three facts in Anton above the statement (other pages use the small // eyebrow) */
.hero-tags {
  margin: 0 0 22px;
  font: 400 clamp(1.3rem, 2.4vw, 2.1rem)/1.1 var(--font-poster);
  letter-spacing: .02em; text-transform: uppercase;
}
.hero-tags span { margin: 0 .35em; opacity: .45; }
.hero-title {
  margin: 0;
  font: 400 clamp(3.2rem, 9.6vw, 9.5rem)/.9 var(--font-poster);
  letter-spacing: -.005em; text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-sub {
  max-width: 44ch; margin: 30px auto 0;
  font: 500 .95rem/1.55 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
}
.hero-form { display: flex; gap: 8px; margin: 30px auto 0; width: min(520px, 100%); }
.hero-form input {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 8px;
  background: transparent; color: var(--ink);
  font: 400 1rem var(--font-body);
}
.hero-form input::placeholder { color: var(--ink); opacity: .6; }
.dark .hero-home { color: var(--paper); }
.dark .hero-form input { border-color: var(--paper); color: var(--paper); }
.dark .hero-form input::placeholder { color: var(--paper); opacity: .55; }
.hero-fine {
  margin: 12px 0 0;
  font: 500 .72rem var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
@media (max-width: 600px) {
  .hero-form { flex-direction: column; }
  .hero-form input { flex: none; width: 100%; }
  .hero-form .pill-cta { justify-content: center; }
}

/* ---------- Inner page blocks ---------- */
.block {
  padding: clamp(48px, 7vw, 104px) var(--pad) clamp(64px, 8vw, 120px);
  text-align: center;
}
.block + .block { border-top: 2px solid var(--rule); }

/* About photo */
.photo { margin: clamp(36px, 5vw, 56px) auto 0; width: min(520px, 100%); }
.photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 45%; border-radius: 8px; }

/* ---------- About: photo left, story right ---------- */
.about-grid {
  display: grid; max-width: 1240px; margin: 0 auto; text-align: left;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 80px);
  grid-template-areas: "photo head" "photo body"; align-items: start;
}
.about-head { grid-area: head; }
.about-head .title { font-size: clamp(3rem, 6.6vw, 7.2rem); }
.about-photo { grid-area: photo; margin: 0; width: 100%; position: sticky; top: 24px; }
.about-body { grid-area: body; max-width: 58ch; margin-top: 28px; }
.about-body p { margin: 0 0 1.1em; font: 400 clamp(1.05rem, 1.35vw, 1.2rem)/1.65 var(--font-body); }
.about-body .meta { margin-top: 1.6em; font: 500 .78rem/1.6 var(--font-body); }
.about-body .about-nudge { margin: 2em 0 0; font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.1 var(--font-poster); text-transform: uppercase; }
.about-body .actions { justify-content: flex-start; margin-top: 18px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "photo" "body"; text-align: center; }
  .about-photo { position: static; margin-top: 32px; max-width: 520px; justify-self: center; }
  .about-body { margin: 32px auto 0; }
  .about-body .actions { justify-content: center; }
}

/* ---------- Guides: compact who it's for / not for ---------- */
.fit { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); }
.fit-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 5vw, 72px);
  max-width: 1240px; margin: 0 auto; text-align: left;
}
.fit .eyebrow { margin-bottom: 14px; }
.fit-title { margin: 0 0 14px; font: 400 clamp(1.8rem, 3vw, 2.6rem)/1 var(--font-poster); text-transform: uppercase; }
.fit-col p:not(.eyebrow) { margin: 0; font: 400 1.05rem/1.6 var(--font-body); }
.notfor { list-style: none; margin: 0; padding: 0; }
.notfor li { padding: 12px 0; border-top: 1px solid var(--rule); font: 400 1.05rem/1.55 var(--font-body); }
.notfor li:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) { .fit-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rows: projects, guides, contact ---------- */
.rows { list-style: none; margin: clamp(40px, 6vw, 72px) auto 0; padding: 0; max-width: 1240px; text-align: left; }
.row {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 340px) 180px;  /* fixed button column keeps descriptions aligned */
  gap: 12px 32px; align-items: center;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.row:last-child { border-bottom: 1px solid var(--rule); }
.row-tag { margin: 0; font: 600 .78rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-paper); }
.row-title { margin: 0; font: 400 clamp(2.2rem, 4.6vw, 4.4rem)/.95 var(--font-poster); text-transform: uppercase; }
.row-body { margin: 0; font: 400 1rem/1.5 var(--font-body); }
.row .pill { justify-self: end; white-space: nowrap; }
/* Guides: price sits right above the button */
.row-buy { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.row-price { margin: 0; font: 400 clamp(1.6rem, 2.2vw, 2rem)/1 var(--font-poster); color: var(--accent); }
@media (max-width: 900px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 24px 0; }
  .row .pill { justify-self: start; }
  .row-buy { justify-self: start; align-items: flex-start; }
}

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 64ch; margin: clamp(36px, 5vw, 56px) auto 0; text-align: left; font: 400 1.08rem/1.65 var(--font-body); }
.prose h3 { margin: 2.2rem 0 .4rem; font: 400 1.5rem/1.1 var(--font-poster); text-transform: uppercase; }
.prose p { margin: 0 0 1rem; }
.prose strong { font-weight: 600; }

/* ---------- Footer: one cyan line ---------- */
.site-footer { background: var(--paper); color: var(--ink); padding: 16px var(--pad); border-top: 1px solid var(--rule); }
.dark .site-footer { background: var(--ink); color: var(--paper); border-top-color: var(--rule-on-color); }  /* home only: dark footer on the dark page */
.footer-line {
  margin: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  font: 500 .72rem/1.6 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
}
.footer-meta { display: flex; gap: 20px; }
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }
.footer-meta a:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
.site-footer :focus-visible { outline-color: var(--accent); }
.dark .site-footer :focus-visible { outline-color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
