/* ---------- TOKENS ---------- */
:root {
  --bg: #faf7f2;
  --bg-elev: #f3ede2;
  --ink: #1c1814;
  --ink-muted: #6b6258;
  --ink-soft: #9e9486;
  --accent: #6e4a3a;
  --hairline: #d8d0bf;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 60ch;
  --container: 1280px;
  --gutter: clamp(1.25rem, 2.5vw, 2rem);

  --step-xl: clamp(3rem, 9vw, 6.5rem);
  --step-l:  clamp(2.25rem, 5.5vw, 4rem);
  --step-m:  clamp(1.75rem, 3.5vw, 2.5rem);
  --step-s:  1rem;
  --step-xs: 0.8125rem;

  --transition: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181513;
    --bg-elev: #221c18;
    --ink: #f1ece2;
    --ink-muted: #a89e90;
    --ink-soft: #6b6258;
    --accent: #c98a6f;
    --hairline: #2c2520;
  }
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-s);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { padding: 0; margin: 0; list-style: none; }
a { color: inherit; text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.62; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* ---------- TYPOGRAPHY HELPERS ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}
.display--xl { font-size: var(--step-xl); line-height: 1; letter-spacing: -0.02em; }
.display--l  { font-size: var(--step-l);  line-height: 1.08; }
.display--m  { font-size: var(--step-m);  line-height: 1.15; }

/* Italic descender clearance (section 4.1) */
.italic {
  font-style: italic;
  font-variation-settings: "opsz" 144;
  line-height: 1.12;
  padding-bottom: 0.08em;
  display: inline-block;
}

.amp {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  color: var(--ink-muted);
  padding: 0 0.05em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--step-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}
.eyebrow--centered { text-align: center; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--gutter);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent;
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
  font-size: var(--step-xs);
  letter-spacing: 0.05em;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.wordmark__amp { color: var(--ink-muted); font-style: italic; }

.nav-list {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
  min-height: calc(100dvh - 64px);
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  max-width: var(--container);
  margin-inline: auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding-block: clamp(1rem, 3vw, 3rem);
}

.hero__content .display--xl {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.18em;
  margin-block: 0.25em 0.4em;
}

.hero__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  max-width: 28ch;
  color: var(--ink-muted);
  margin: 0;
}

.hero__cta { margin-top: clamp(1rem, 2vw, 1.5rem); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.6em 0;
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
}
.link-arrow .arrow {
  transition: transform var(--transition);
  color: var(--accent);
}
.link-arrow:hover .arrow { transform: translateX(0.25em); }

.hero__image {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.02);
}

/* ---------- ABOUT ---------- */
.about {
  max-width: 56rem;
  margin-inline: auto;
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  text-align: left;
}

.about__title {
  margin-block: 0 clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 22ch;
  font-weight: 400;
  font-variation-settings: "opsz" 72;
}

.about__body {
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.7;
  color: var(--ink);
  max-width: var(--measure);
  margin: 0 0 1.25em;
  font-weight: 400;
  font-variation-settings: "opsz" 14;
}

/* ---------- SECTION HEADER (shared by portfolio / pricing) ---------- */
.section-header {
  max-width: var(--container);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding: 0 var(--gutter);
}

/* ---------- PORTFOLIO ---------- */
.portfolio {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--hairline);
}

.serie {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--container);
  margin: 0 auto clamp(5rem, 9vw, 7rem);
  padding: 0 var(--gutter);
  align-items: end;
}
.serie:last-of-type { margin-bottom: 0; }

.serie--left {
  grid-template-columns: 8fr 4fr;
}
.serie--right {
  grid-template-columns: 4fr 6fr;
  align-items: center;
}
.serie--full {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.serie--full .serie__caption {
  max-width: var(--container);
  padding-top: 0.5rem;
}

.serie__image {
  margin: 0;
  background: var(--bg-elev);
  overflow: hidden;
}
.serie__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.serie__image:hover img { transform: scale(1.025); }

.serie__caption { padding-block: 1rem; }

.serie__index {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.serie__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-variation-settings: "opsz" 48;
}

.serie__meta {
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin: 0;
  max-width: 38ch;
  line-height: 1.55;
}

/* ---------- PRICING ---------- */
.pricing {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.pricing-list {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.pricing-item {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--hairline);
}
.pricing-item:last-child { border-bottom: 1px solid var(--hairline); }

.pricing-item__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.pricing-item__name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 48;
  white-space: nowrap;
}

.pricing-item__leader {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--ink-soft);
  margin-bottom: 0.5em;
  min-width: 2rem;
}

.pricing-item__price {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 400;
  margin: 0;
  color: var(--accent);
  white-space: nowrap;
}

.pricing-item__body {
  font-family: var(--sans);
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0;
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* ---------- CONTACT ---------- */
.contact {
  max-width: 50rem;
  margin: 0 auto;
  padding: clamp(6rem, 10vw, 9rem) var(--gutter);
  text-align: center;
}

.contact__title {
  margin: 0 0 1.5rem;
  font-variation-settings: "opsz" 72;
}

.contact__body {
  max-width: 42ch;
  margin: 0 auto 2.5rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.link-mail {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
  font-variation-settings: "opsz" 72;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2.5rem var(--gutter) 3rem;
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 2rem;
  font-size: var(--step-xs);
  color: var(--ink-muted);
}

.footer__brand {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}

.footer__meta { margin: 0; }

.footer__legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}
.footer__legal .sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-soft);
  opacity: 0.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .site-header { padding-block: 1rem; }
  .nav-list { gap: 1.25rem; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
    gap: 2rem;
  }
  .hero__image {
    order: -1;
    aspect-ratio: 4 / 5;
  }
  .hero__content { padding-block: 1rem 2rem; }

  .serie--left,
  .serie--right { grid-template-columns: 1fr; align-items: stretch; }

  .pricing-item__head {
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
  }
  .pricing-item__leader { display: none; }
}

@media (max-width: 560px) {
  .hero__content .display--xl { font-size: clamp(2.75rem, 13vw, 4rem); }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .serie__image:hover img { transform: none; }
  .link-arrow:hover .arrow { transform: none; }
}
