/* Mariana Zapata portfolio: Direction C "Loud".
   Single deliberate theme: every surface paints its own color and the page ignores prefers-color-scheme. */

@font-face {
  font-family: "Bagel Fat One";
  src: url("/assets/fonts/bagel-fat-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #FFF5E3;
  --butter: #FFD84D;
  --cherry: #D7263D;
  --cocoa: #1C1414;
  --frosting: #FFB8D2;
  --mint: #9ED9D0;
  --white: #FFFFFF;
  --muted: #5B4A45;
  --gutter: clamp(16px, 3.5vw, 40px);
  --display: "Bagel Fat One", "Arial Rounded MT Bold", "Arial Black", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-inline: var(--gutter);
  overflow-x: clip;
  background: var(--cream);
  color: var(--cocoa);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cocoa); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin-inline: auto; }
.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;
}
.kicker {
  display: block;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cherry);
  margin-bottom: 10px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--cocoa); border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--cocoa); }
.btn-dark { background: var(--cocoa); color: var(--cream); }
.btn-dark:hover { box-shadow: 4px 4px 0 var(--frosting); }
.btn-light { background: var(--white); color: var(--cocoa); }
.btn-butter { background: var(--butter); color: var(--cocoa); border-color: var(--butter); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px;
}
.logo { font: 400 clamp(22px, 2.4vw, 28px)/1 var(--display); color: var(--cherry); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--cocoa); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.site-nav a:not(.btn) { font-size: 15px; font-weight: 600; text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px);
  align-items: end;
  background: var(--white);
  border-radius: 32px;
  box-shadow: inset 0 0 0 2px var(--cocoa);
  padding: clamp(28px, 4.5vw, 56px);
}
.hero h1 { font-size: clamp(42px, 6.2vw, 84px); line-height: .95; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--cherry); }
.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero-side p { font-size: 18px; font-weight: 500; max-width: 40ch; }

/* ---------- client ticker ---------- */
.ticker {
  margin: clamp(28px, 4vw, 44px) calc(-1 * var(--gutter)) 0;
  padding-block: 14px;
  background: var(--cherry); color: var(--cream);
  transform: rotate(-1.2deg);
  overflow: hidden; white-space: nowrap;
}
.ticker-track { display: inline-flex; animation: ticker 32s linear infinite; }
.ticker-track span { font: 400 clamp(20px, 2.4vw, 28px)/1 var(--display); padding-inline: 18px; }
.ticker-track span:nth-child(even) { color: var(--butter); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 7vw, 96px) 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 12px 40px; margin-bottom: clamp(22px, 3vw, 36px);
}
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); }
.section-head p { max-width: 46ch; color: var(--muted); font-size: 16px; }

/* ---------- phone frames ---------- */
.phone {
  background: var(--cocoa);
  border-radius: 30px;
  padding: 9px;
  box-shadow: 7px 7px 0 var(--frosting);
}
.screen {
  aspect-ratio: 9 / 19.5;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 22px;
  background: var(--white);
  scrollbar-width: thin;
  scrollbar-color: var(--frosting) transparent;
}
.screen:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; }
.screen img { width: 100%; }

.phones {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0; padding: 0; list-style: none;
}
.phones li:nth-child(2) .phone { transform: rotate(2deg); }
.phones li:nth-child(4) .phone { transform: rotate(-1.6deg); }
.phones figure { margin: 0; }
.phones figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.phones figcaption span { display: block; font-weight: 400; color: var(--muted); }

/* ---------- clients ---------- */
.clients { display: grid; gap: 18px; }
.client {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 28px;
}
.client-sweetes { background: var(--frosting); }
.client-claq { background: var(--cocoa); color: var(--cream); }
.client-airavata { background: var(--mint); }
.client-califirst { background: var(--white); box-shadow: inset 0 0 0 2px var(--cocoa); }
.client-cover { width: 100%; aspect-ratio: 10 / 3; object-fit: cover; border-radius: 16px; margin-bottom: 18px; }
.cover-fallback {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(0deg, rgb(255 216 77 / .16) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgb(255 216 77 / .16) 0 1px, transparent 1px 22px),
    var(--cocoa);
  color: var(--butter);
  font: 400 clamp(22px, 2.6vw, 32px)/1 var(--display);
}
.client h3 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 8px; }
.client .meta { font-size: 14px; font-weight: 600; margin-bottom: 12px; opacity: .8; }
.client-claq .meta { opacity: 1; color: var(--butter); }
.client .desc { font-size: 16px; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 13px; font-weight: 600; padding: 4px 11px; border: 1.5px solid currentColor; border-radius: 999px; }
.client-side .kicker { color: inherit; opacity: .8; }
.client-claq .client-side .kicker { color: var(--butter); opacity: 1; }

.tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px; margin: 0; padding: 0; list-style: none;
}
.tile {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  text-decoration: none; color: inherit;
}
.tile-media { position: relative; border-radius: 14px; overflow: hidden; border: 2px solid var(--cocoa); background: var(--cocoa); }
.tile-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .25s ease; }
.tile:hover .tile-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 7px; left: 7px;
  padding: 3px 8px; border-radius: 999px;
  background: var(--cocoa); color: var(--cream);
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.tile-label { font-size: 13px; font-weight: 600; line-height: 1.3; }

.claq-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.claq-stats div {
  display: grid; place-items: center; text-align: center;
  width: 150px; aspect-ratio: 1; padding: 16px;
  border-radius: 50%;
  background: var(--butter); color: var(--cocoa);
  font-size: 13px; font-weight: 700; line-height: 1.25;
}
.claq-stats div:nth-child(2) { transform: rotate(7deg); background: var(--frosting); }
.claq-stats b { display: block; font: 400 26px/1 var(--display); color: var(--cherry); }
.client-claq a { color: var(--butter); font-weight: 700; }
.client-claq :focus-visible { outline-color: var(--butter); }

/* ---------- influencer case studies ---------- */
.cases { display: grid; gap: 18px; }
.case {
  display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px);
  align-items: start;
  padding: clamp(18px, 3vw, 36px);
  background: var(--white);
  border-radius: 28px;
  box-shadow: inset 0 0 0 2px var(--cocoa);
}
.case .phone .screen { aspect-ratio: auto; overflow: hidden; }
.case figure { margin: 0; }
.case figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.case h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 6px; }
.case .sub { font-weight: 700; color: var(--cherry); margin-bottom: 16px; }
.case-body { display: grid; gap: 14px; max-width: 64ch; }
.case-body strong { font-weight: 700; }
.stats { display: flex; flex-wrap: wrap; gap: 14px; }
.stat {
  padding: 14px 18px;
  background: var(--butter);
  border: 2px solid var(--cocoa); border-radius: 20px;
  font-size: 13px; font-weight: 600;
}
.stat b { display: block; font: 400 clamp(28px, 3vw, 36px)/1 var(--display); color: var(--cherry); margin-bottom: 4px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.flow li { padding: 6px 13px; border-radius: 999px; background: var(--mint); font-size: 14px; font-weight: 600; }
.flow li:not(:last-child)::after { content: "→"; margin-left: 10px; font-weight: 700; }

/* ---------- shopify ---------- */
.shop {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(22px, 4vw, 48px);
  background: var(--white);
  border-radius: 28px;
  box-shadow: inset 0 0 0 2px var(--cocoa);
}
.shop-num b { display: block; font: 400 clamp(72px, 10vw, 128px)/.9 var(--display); color: var(--cherry); }
.shop-num span { font-weight: 700; }
.shop-body { display: grid; gap: 16px; }
.shop-body .tags li { background: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.post {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white);
  border: 2px solid var(--cocoa); border-radius: 22px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--cocoa); }
.post-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 2px solid var(--cocoa); }
.post-cover.cover-fallback { font-size: clamp(30px, 3.2vw, 44px); }
.post-cover.mint { background: var(--mint); color: var(--cocoa); }
.post-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.post-body .kicker { margin: 0; font-size: 12px; }
.post-body h3 { font: 700 18px/1.25 var(--text); }
.post-body p { font-size: 14.5px; color: var(--muted); }
.post-body .more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; }
.blog-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.services li { padding: 22px 24px; border-radius: 22px; border: 2px solid var(--cocoa); }
.services li:nth-child(1) { background: var(--butter); }
.services li:nth-child(2) { background: var(--white); }
.services li:nth-child(3) { background: var(--frosting); }
.services li:nth-child(4) { background: var(--mint); }
.services li:nth-child(5) { background: var(--cocoa); color: var(--cream); }
.services li:nth-child(6) { background: var(--white); }
.services h3 { font-size: 23px; margin-bottom: 8px; }
.services p { font-size: 15px; }

/* ---------- contact + footer ---------- */
.contact {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px;
  margin-top: clamp(56px, 8vw, 104px);
  padding: clamp(32px, 6vw, 72px);
  background: var(--cocoa); color: var(--cream);
  border-radius: 32px;
}
.contact h2 { font-size: clamp(36px, 5.4vw, 68px); max-width: 13ch; }
.contact h2 span { color: var(--butter); }
.contact .actions { flex-direction: column; align-items: flex-start; }
.contact :focus-visible { outline-color: var(--butter); }
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 28px 36px;
  font-size: 14px; color: var(--muted);
}

/* ---------- 404 ---------- */
.not-found { display: grid; gap: 22px; justify-items: start; }
.not-found h1 { font-size: clamp(48px, 9vw, 120px); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .phones {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 230px);
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 10px 4px 22px; margin-inline: -4px;
  }
  .phones li { scroll-snap-align: start; }
  .client { grid-template-columns: 1fr; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .case, .shop { grid-template-columns: 1fr; }
  .case figure { max-width: 240px; }
}
@media (max-width: 560px) {
  .posts, .services { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claq-stats div { width: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .btn, .post, .tile-media img { transition: none; }
  .btn:hover, .post:hover { transform: none; }
  .tile:hover .tile-media img { transform: none; }
}
