/* ==========================================================
   L'Art de la Punchline — launch site
   Palette drawn from the book cover: warm night, champagne
   gold, cream type, steel-blue skyline bokeh.
   ========================================================== */

:root {
  --night:      #141110;
  --night-2:    #1d1815;
  --panel:      #221c17;
  --gold:       #d2a24c;
  --gold-soft:  #e4bd72;
  --cream:      #f2ead9;
  --taupe:      #a89c88;
  --steel:      #8fa8c0;
  --line:       rgba(210, 162, 76, 0.28);

  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-quote:   'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Avenir Next', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--gold); color: var(--night); }

/* ---------- shared ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-gold {
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  color: #241a09;
  box-shadow: 0 6px 24px rgba(210, 162, 76, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(210, 162, 76, 0.4); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: rgba(210, 162, 76, 0.12); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--taupe);
  border-color: rgba(168, 156, 136, 0.4);
}
.btn-ghost.is-soon { cursor: default; }

.btn-small { padding: 0.6rem 1.2rem; font-size: 0.8rem; }

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

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(rgba(20, 17, 16, 0.92), rgba(20, 17, 16, 0.75) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
}
.brand-mark { color: var(--gold); display: inline-flex; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.header-right { display: flex; align-items: center; gap: 1.1rem; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--taupe);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn.is-active { background: var(--gold); color: var(--night); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7.5rem clamp(1.2rem, 5vw, 4rem) 4rem;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(63, 76, 94, 0.35), transparent 65%),
    radial-gradient(ellipse 55% 45% at 12% 85%, rgba(210, 162, 76, 0.08), transparent 70%),
    var(--night);
}

/* skyline bokeh */
.bokeh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bokeh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.5;
  animation: drift 14s ease-in-out infinite alternate;
}
.bokeh span:nth-child(1) { width: 14px; height: 14px; top: 18%; left: 55%; background: var(--steel); }
.bokeh span:nth-child(2) { width: 8px;  height: 8px;  top: 26%; left: 68%; background: var(--gold-soft); animation-delay: -3s; }
.bokeh span:nth-child(3) { width: 18px; height: 18px; top: 12%; left: 82%; background: var(--steel); animation-delay: -6s; }
.bokeh span:nth-child(4) { width: 6px;  height: 6px;  top: 42%; left: 90%; background: var(--gold); animation-delay: -9s; }
.bokeh span:nth-child(5) { width: 10px; height: 10px; top: 64%; left: 8%;  background: var(--gold-soft); animation-delay: -2s; }
.bokeh span:nth-child(6) { width: 16px; height: 16px; top: 78%; left: 16%; background: var(--steel); animation-delay: -7s; opacity: 0.3; }
.bokeh span:nth-child(7) { width: 7px;  height: 7px;  top: 8%;  left: 30%; background: var(--steel); animation-delay: -5s; }
.bokeh span:nth-child(8) { width: 12px; height: 12px; top: 55%; left: 72%; background: rgba(226, 90, 60, 0.7); animation-delay: -11s; opacity: 0.3; }

@keyframes drift {
  from { transform: translateY(0) translateX(0); }
  to   { transform: translateY(-26px) translateX(14px); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
}
.hero-title span { display: block; }
.hero-title em {
  display: block;
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
  font-size: 1.12em;
}

.hero-sub {
  max-width: 34rem;
  color: var(--taupe);
  margin-bottom: 2.2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-bottom: 2.6rem; }
.hero-ctas .btn { padding: 0.9rem 1.4rem; font-size: 0.85rem; }

.hero-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  list-style: none;
  color: var(--taupe);
  font-size: 0.85rem;
}
.hero-facts strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  margin-right: 0.35rem;
}
.facts-sep { width: 1px; height: 2rem; background: var(--line); }

.hero-book { display: flex; justify-content: center; }

.book-tilt {
  position: relative;
  transform: rotate(3deg);
  transition: transform 0.5s ease;
  animation: float 7s ease-in-out infinite;
}
.book-tilt:hover { transform: rotate(0deg) scale(1.02); }
.book-tilt img {
  width: min(400px, 78vw);
  border-radius: 4px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.65),
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 90px rgba(210, 162, 76, 0.12);
}
.book-tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(115deg, rgba(255,255,255,0.14) 0%, transparent 28%);
  pointer-events: none;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

/* ---------- dealer ---------- */

.dealer {
  position: relative;
  padding: 7rem clamp(1.2rem, 5vw, 4rem);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.dealer-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('assets/ambiance.jpg') center 30% / cover no-repeat;
}
.dealer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20, 17, 16, 0.94), rgba(20, 17, 16, 0.82) 45%, rgba(20, 17, 16, 0.96));
}

.dealer-inner { max-width: 900px; margin: 0 auto; }

.punch-card {
  position: relative;
  margin: 3rem auto 2.4rem;
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.6rem, 5vw, 4rem);
  background: rgba(34, 28, 23, 0.75);
  border: 1px solid var(--line);
  border-radius: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.punch-card.is-dealing { opacity: 0; transform: translateY(14px) rotate(0.6deg); }

.punch-open {
  position: absolute;
  top: -0.5rem;
  left: 1.4rem;
  font-family: var(--font-quote);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.85;
}

.punch-card blockquote {
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  color: var(--cream);
  quotes: none;
}

.punch-card figcaption {
  margin-top: 1.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- anatomy ---------- */

.anatomy {
  padding: 7rem clamp(1.2rem, 5vw, 4rem);
  background: var(--night-2);
  border-top: 1px solid rgba(210, 162, 76, 0.12);
}
.anatomy-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.anatomy-lede { max-width: 40rem; margin: 0 auto 3.4rem; color: var(--taupe); }

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  text-align: left;
}

.anatomy-card {
  background: var(--panel);
  border: 1px solid rgba(210, 162, 76, 0.15);
  border-radius: 6px;
  padding: 2.2rem 1.8rem 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.anatomy-card:hover { transform: translateY(-5px); border-color: var(--line); }

.anatomy-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.anatomy-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
.anatomy-card p { color: var(--taupe); font-size: 0.98rem; }

/* ---------- author ---------- */

.author { padding: 7rem clamp(1.2rem, 5vw, 4rem); }

.author-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.author-photo { position: relative; }
.author-photo img {
  border-radius: 6px;
  filter: saturate(0.88);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.author-photo::before {
  content: '';
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  z-index: -1;
}

.author-copy p { color: var(--taupe); margin-bottom: 1.1rem; max-width: 34rem; }

.author-quote {
  margin-top: 1.8rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
}
.author-quote p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--cream);
  margin: 0;
}

/* ---------- vol 2 ---------- */

.vol2 {
  padding: 7rem clamp(1.2rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(210, 162, 76, 0.09), transparent 70%),
    var(--night-2);
  border-top: 1px solid rgba(210, 162, 76, 0.12);
}
.vol2-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.vol2-lede { color: var(--taupe); max-width: 38rem; margin: 0 auto 3rem; }

.vol2-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  text-align: left;
}

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-wide { grid-column: 1 / -1; }

.field span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--cream);
  background: rgba(20, 17, 16, 0.7);
  border: 1px solid rgba(210, 162, 76, 0.25);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.field textarea {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(168, 156, 136, 0.55); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(210, 162, 76, 0.15);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.form-note { font-size: 0.82rem; color: var(--taupe); max-width: 26rem; line-height: 1.5; }

.form-status { min-height: 1.4rem; color: var(--gold); font-size: 0.95rem; }

/* ---------- footer ---------- */

.site-footer {
  padding: 4.5rem clamp(1.2rem, 5vw, 4rem) 3rem;
  border-top: 1px solid rgba(210, 162, 76, 0.15);
  text-align: center;
}
.footer-inner { max-width: 640px; margin: 0 auto; }
.site-footer .brand-mark { color: var(--gold); display: inline-flex; margin-bottom: 1.2rem; }

.footer-quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 1.6rem;
}
.footer-legal { font-size: 0.85rem; color: var(--taupe); }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero { padding-top: 7.5rem; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-book { order: -1; }
  .book-tilt img { width: min(280px, 62vw); }
  .anatomy-grid { grid-template-columns: 1fr; }
  .author-inner { grid-template-columns: 1fr; }
  .author-photo { max-width: min(340px, calc(100vw - 4.6rem)); margin: 0 auto; }
  .vol2-form { grid-template-columns: 1fr; }
  .brand-name { display: none; }

  /* header: tighter, always readable over content */
  .site-header { padding: 0.7rem 1rem; }
  .btn-small { padding: 0.55rem 0.9rem; font-size: 0.74rem; }

  /* dealer card: keep the quote mark clear of the text */
  .punch-card { padding-top: 3.6rem; margin-top: 2.2rem; }
  .punch-open { font-size: 4rem; top: -0.4rem; left: 1rem; }

  /* sections breathe a little less on small screens */
  .dealer, .anatomy, .author, .vol2 { padding-top: 5rem; padding-bottom: 5rem; }

  .hero-title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .section-title { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bokeh span, .book-tilt { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
