/* Serlen Luchi — editorial site system */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --graphite: #1c1c1c;
  --line: rgba(245, 245, 240, 0.12);
  --line-strong: rgba(245, 245, 240, 0.28);
  --fg: #f5f5f0;
  --fg-muted: #9c9a92;
  --fg-subtle: #6f6d66;
  --accent: #d62219;
  --accent-hover: #ef2e24;
  --cream: #f5f5f0;
  --ink: #111111;
  --header-h: 4.5rem;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Outfit", system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.4rem, 1.3rem + 3.6vw, 4.5rem);
  --text-hero: clamp(2.35rem, 1.2rem + 4.2vw, 4.6rem);

  --leading-tight: 1.08;
  --leading-snug: 1.22;
  --leading-body: 1.6;

  --track-display: -0.025em;
  --track-wide: 0.16em;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-y: clamp(5rem, 12vw, 9.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 180ms;
  --motion-med: 280ms;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/outfit.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  background: var(--bg);
  color: var(--fg);
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--track-display);
  line-height: var(--leading-tight);
  margin: 0;
}

p {
  text-wrap: pretty;
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--cream);
  padding: 0.6rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  min-width: 3rem;
  padding: 0.85rem 1.55rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--ease),
    color var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease),
    transform 150ms var(--ease);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--accent);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--fg);
  background: rgba(245, 245, 240, 0.04);
}

.btn-large {
  min-height: 3.5rem;
  padding: 1rem 2rem;
  font-size: 0.8125rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color var(--motion-med) var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: var(--bg);
}

.site-header-inner {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 1.65rem;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color var(--motion-fast) var(--ease);
}

.nav-desktop a:hover {
  color: var(--fg);
}

.header-cta {
  display: none;
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--fg);
  cursor: pointer;
  padding: 0;
}

.menu-toggle-bars {
  width: 1.35rem;
  height: 0.7rem;
  position: relative;
  display: block;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--motion-fast) var(--ease);
}

.menu-toggle-bars::before {
  top: 0;
}

.menu-toggle-bars::after {
  bottom: 0;
}

.site-header.is-open .menu-toggle-bars::before {
  transform: translateY(0.27rem) rotate(45deg);
}

.site-header.is-open .menu-toggle-bars::after {
  transform: translateY(-0.27rem) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 2rem var(--gutter) 3rem;
  gap: 0.25rem;
  transform: translateY(-0.5rem);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity var(--motion-med) var(--ease),
    transform var(--motion-med) var(--ease),
    visibility 0s linear var(--motion-med);
  z-index: 40;
}

.nav-mobile.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  font-weight: 500;
  letter-spacing: var(--track-display);
  padding: 0.55rem 0;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}

.nav-mobile .btn {
  margin-top: 1.5rem;
  align-self: flex-start;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle,
  .nav-mobile {
    display: none;
  }

  .logo img {
    height: 1.85rem;
  }
}

/* ---------- Shared section chrome ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}

.kicker::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}

.section {
  padding-block: var(--section-y);
}

.section-title {
  font-size: var(--text-2xl);
  max-width: 18ch;
}

.section-lead {
  margin-top: 1.35rem;
  max-width: 38rem;
  color: var(--fg-muted);
  font-size: var(--text-lg);
}

.hairline {
  width: 100%;
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-h));
  align-items: stretch;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(2.5rem, 8vh, 5rem) var(--gutter) 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 42rem;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.55) 28%,
    var(--bg) 72%
  );
}

.hero h1 {
  font-size: var(--text-hero);
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--fg);
}

.hero-lead {
  margin-top: 1.5rem;
  color: var(--fg-muted);
  font-size: var(--text-lg);
  max-width: 34rem;
}

.hero .btn-row {
  margin-top: 2.25rem;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 18%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6.5rem;
  background: linear-gradient(180deg, var(--bg), transparent);
  pointer-events: none;
}

@media (max-height: 720px) and (max-width: 899px) {
  .hero h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
  }

  .hero-lead {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .hero-copy {
    padding-block: 1.5rem 1.75rem;
  }

  .hero .btn-row {
    margin-top: 1.25rem;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(22rem, 1.05fr) minmax(18rem, 1fr);
    min-height: calc(100svh - var(--header-h));
  }

  .hero-copy {
    padding-block: 4rem;
    padding-right: 2rem;
    justify-content: center;
    background: none;
    max-width: none;
    min-height: 0;
  }

  .hero-photo {
    position: relative;
    inset: auto;
    pointer-events: auto;
  }

  .hero-photo::after {
    display: none;
  }

  .hero-photo::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 22%;
    background: linear-gradient(90deg, var(--bg), transparent);
    pointer-events: none;
    z-index: 1;
  }

  .hero-photo img {
    object-fit: contain;
    object-position: center bottom;
    height: calc(100svh - var(--header-h));
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .hero-copy {
    padding-left: max(var(--gutter), calc((100vw - 90rem) / 2 + var(--gutter)));
  }
}

/* ---------- Occasions ---------- */

.occasions-head {
  margin-bottom: 0.5rem;
}

.occasion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.occasion-list .kicker {
  margin-bottom: 0.25rem;
}

.occasion-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.75rem 1.25rem;
  padding-block: 1.85rem;
  border-top: 1px solid var(--line);
}

.occasion-item:last-child {
  border-bottom: 1px solid var(--line);
}

.occasion-num {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 0.35rem;
}

.occasion-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
}

.occasion-item p {
  margin-top: 0.55rem;
  color: var(--fg-muted);
  max-width: 38rem;
}

@media (min-width: 900px) {
  .occasion-item {
    grid-template-columns: 4.5rem 1fr;
    padding-block: 2.15rem;
  }
}

/* ---------- Show ---------- */

.show {
  background: var(--bg-elevated);
}

.show-stage {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.show h2 {
  font-size: var(--text-3xl);
  max-width: 18ch;
}

.show-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--fg-subtle);
  font-size: var(--text-sm);
  max-width: 36rem;
}

/* ---------- About ---------- */

.about-block {
  max-width: 40rem;
}

.about-copy .section-lead {
  max-width: 32rem;
}

.about-meta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.about-meta strong {
  color: var(--fg);
  font-weight: 500;
}

/* ---------- Identity ---------- */

.identity {
  background: var(--bg-elevated);
}

.identity h2 {
  font-size: var(--text-3xl);
  max-width: 14ch;
}

/* ---------- CTA ---------- */

.cta {
  text-align: left;
}

.cta h2 {
  font-size: var(--text-3xl);
  max-width: 16ch;
}

.cta-lead {
  margin-top: 1.35rem;
  color: var(--fg-muted);
  font-size: var(--text-lg);
  max-width: 34rem;
}

.quote-form {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
}

.field input,
.field select {
  appearance: none;
  background: transparent;
  color: var(--fg);
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.7rem 0;
  font-size: 1rem;
  min-height: 2.75rem;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%),
    linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 6px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}

.field input[type="date"] {
  color-scheme: dark;
}

.field input::placeholder {
  color: var(--fg-subtle);
}

.cta .btn-row {
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.5rem 0 2.25rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo img {
  height: 1.35rem;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-meta {
  font-size: 0.75rem;
  color: var(--fg-subtle);
}

@media (min-width: 800px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- 404 ---------- */

.not-found {
  min-height: calc(100svh - var(--header-h) - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 4rem;
}

.not-found h1 {
  font-size: var(--text-3xl);
}

.not-found p {
  margin-top: 1rem;
  color: var(--fg-muted);
  max-width: 28rem;
}

.not-found .btn-row {
  margin-top: 2rem;
}

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn:active {
    transform: none;
  }
}
