/* Eric Websites — Style 3 (Fast). Direction: "Type and nothing else", rose grey + green. */

@font-face {
  font-family: "Gambarino";
  src: url("/assets/fonts/gambarino-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ebe5e3;
  --surface: #e1dad7;
  --ink: #2b2622;
  --muted: #645b57;
  --accent: #0f7d45;
  --accent-ink: #ffffff;

  --display: "Gambarino", "Times New Roman", serif;
  --text: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.125rem, 1rem + 4vw, 4.75rem);

  --margin: clamp(16px, 4vw, 56px);
  --gap: clamp(88px, 11vw, 200px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--margin);
}

.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;
}
.skip {
  position: absolute;
  left: var(--margin); top: 12px;
  padding: 12px 16px;
  background: var(--ink); color: var(--bg);
  transform: translateY(-200%);
  z-index: 10;
}
.skip:focus { transform: none; }

/* Top: wordmark left, a few links right, no bar */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 24px;
  font-size: 15px;
}
.wordmark { font-weight: 500; text-decoration: none; }
.top-links { display: flex; gap: 24px; }
.top-links a {
  text-decoration: none;
  display: inline-block;
  padding-block: 12px;
}
.top-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero: the name across the full width, what he does stepped to the right */
.hero {
  min-height: min(calc(100svh - 72px), calc(48vw + 300px));
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 8svh;
  padding-bottom: 28px;
  gap: 48px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  align-self: start;
}
.line { display: block; overflow: hidden; padding-block: 0.06em 0.12em; }
.line-in { display: inline-block; }
.line-name {
  font-size: clamp(56px, 15.6vw, 240px);
  line-height: 0.92;
  white-space: nowrap;
}
.line-what {
  font-size: var(--step-head);
  line-height: 1;
  text-align: right;
  margin-top: 0.15em;
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.hero-sub {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.4;
  max-width: 44ch;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms var(--ease-out), background-color 150ms ease;
}
.button:active { transform: scale(0.97); }
@media (hover: hover) {
  .button:hover { background: #000; }
}

/* Pictures: few and large, one treatment */
figure img { filter: grayscale(1) contrast(1.05); }
.band { margin-top: var(--gap); }
.band img {
  width: 100%;
  height: clamp(300px, 52vw, 760px);
  object-fit: cover;
}
.band-street img { object-position: center 60%; }

figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink);
}

/* How it works: lines that step across */
.how { margin-top: var(--gap); }
.soft-head {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--muted);
  margin-bottom: 56px;
}
.stairs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 56px;
}
.stair { grid-column: 1 / span 8; }
.stair:nth-child(2) { grid-column: 3 / span 8; }
.stair:nth-child(3) { grid-column: 5 / span 8; }
.stair-line {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stair-last { color: var(--accent); }
.stair-note {
  margin-top: 14px;
  max-width: 40ch;
}

/* Two pictures side by side */
.pair {
  margin-top: var(--gap);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px;
  align-items: end;
}
.pair-item img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.pair-wide img { aspect-ratio: 4 / 3; }

/* What you get: capabilities at poster scale */
.get { margin-top: var(--gap); }
.get-row {
  display: grid;
  grid-template-columns: 8fr 4fr;
  column-gap: 24px;
  align-items: first baseline;
  padding-block: 0.35em;
}
.get-head,
.get-list dt {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -0.02em;
}
.get-head { display: block; color: var(--muted); }
.get-list dd { max-width: 34ch; }

/* Pricing: one sentence on a colour field */
.pricing {
  margin-top: var(--gap);
  background: var(--surface);
  padding-block: clamp(96px, 14vw, 220px);
}
.pricing-in {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 56px;
}
.pricing-line {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 0.6rem + 7.4vw, 136px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.pricing-note {
  grid-column: 1 / span 7;
  font-size: var(--step-lead);
  line-height: 1.4;
  max-width: 44ch;
}

/* Footer: inverted, wordmark across the bottom */
.foot {
  background: var(--ink);
  color: var(--bg);
  padding-top: 56px;
  padding-bottom: 24px;
}
.foot :focus-visible { outline-color: var(--bg); }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  font-size: 15px;
}
.foot-head {
  font-family: var(--text);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}
.foot-col li a { display: inline-block; padding-block: 6px; }
.foot-col a { text-underline-offset: 3px; }
.credits a { padding-block: 2px; }
.foot-mark { margin-top: clamp(96px, 14vw, 200px); }
.mark {
  font-family: var(--display);
  font-size: clamp(56px, 15.6vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding-top: 0.08em;
}
.legal { margin-top: 20px; font-size: var(--step-small); }

/* Phone */
@media (max-width: 767px) {
  .top { padding-block: 16px; }
  .top-links { gap: 16px; }
  .top-links li:not(:last-child) { display: none; }
  .hero { min-height: 0; padding-top: 12svh; gap: 22svh; }
  .line-what { font-size: 6.6vw; }
  .line-name { font-size: 15.4vw; }
  .line-what { text-align: left; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 24px; }
  .button { width: 100%; }
  .soft-head { margin-bottom: 40px; }
  .stairs { display: block; }
  .stair + .stair { margin-top: 40px; }
  .stair:nth-child(2) { padding-left: 6vw; }
  .stair:nth-child(3) { padding-left: 12vw; }
  .stair-line { font-size: 8.6vw; }
  .soft-head { font-size: 8.6vw; }
  .pair { grid-template-columns: 1fr; }
  .pair-item img, .pair-wide img { aspect-ratio: 4 / 3; }
  .get-row { grid-template-columns: 1fr; padding-block: 0; }
  .get-row + .get-row { margin-top: 28px; }
  .get-head, .get-list dt { font-size: 8.6vw; }
  .get-list dd { margin-top: 8px; padding-left: var(--margin); }
  .pricing-line, .pricing-note { grid-column: 1 / -1; }
  .pricing-line { font-size: 11vw; }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .mark { font-size: 15.4vw; }
}

/* Motion: the headline rises from behind its baseline, then the rest arrives. Within 1.2s. */
@media (prefers-reduced-motion: no-preference) {
  .line-in { animation: rise 900ms var(--ease-out) both; }
  .line-what .line-in { animation-delay: 110ms; }
  .hero-foot { animation: fade-up 700ms var(--ease-out) 350ms both; }
  .top { animation: fade-in 600ms ease 200ms both; }
  @keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @media (hover: hover) {
    .top-links a, .foot-col a { transition: opacity 150ms ease; }
  }
}
