/* Talk2Me — Ezio French lessons
   Palette: cream / near-black / restrained blue accent
   Typography: Cormorant Garamond (French) + Noto Sans TC (Cantonese)
*/

:root {
  --cream: #f6f1e8;
  --cream-deep: #ebe3d6;
  --ink: #121212;
  --ink-soft: #2a2a2a;
  --muted: #4a453e;
  --line: rgba(22, 22, 22, 0.12);
  --blue: #2f5f7a;
  --blue-deep: #244a60;
  --blue-soft: rgba(47, 95, 122, 0.12);
  --white: #fffcf7;
  --radius: 2px;
  --shell: min(68rem, calc(100% - 2.5rem));
  --font-display: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --space-section: clamp(4.5rem, 10vw, 7.5rem);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(47, 95, 122, 0.08), transparent 55%),
    radial-gradient(90% 60% at -10% 20%, rgba(235, 227, 214, 0.9), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, #f3eee5 48%, var(--cream-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-deep);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  border-radius: var(--radius);
}

.skip:focus {
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
  max-width: 100%;
}

.shell.narrow {
  width: min(40rem, calc(100% - 2.5rem));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

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

/* Hero — one composition */
.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(4.5rem, 11vw, 7rem);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
  background:
    linear-gradient(115deg, transparent 42%, rgba(47, 95, 122, 0.04) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 32px,
      rgba(22, 22, 22, 0.012) 32px,
      rgba(22, 22, 22, 0.012) 33px
    );
}

.hero-inner {
  position: relative;
  max-width: 42rem;
  animation: rise 0.9s ease both;
}

.hero-french {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  color: var(--blue);
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.hero-brand {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 5.6rem);
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.hero-line {
  display: block;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.hero-lede {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-inner,
.hero-inner * {
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 1s ease 0.15s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--blue-deep);
  color: var(--white);
}

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

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
}

.btn-lg {
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: var(--space-section) 0;
}

.section-alt {
  background: color-mix(in srgb, var(--white) 55%, transparent);
  border-block: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--blue);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.65rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.section h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.section p {
  margin: 0 0 1rem;
}

.section-intro {
  max-width: 38rem;
  color: var(--ink-soft);
  margin-bottom: 2rem !important;
}

.muted {
  color: var(--muted);
  font-size: 0.98rem;
}

abbr {
  text-decoration: none;
  border-bottom: 1px dotted color-mix(in srgb, var(--blue) 50%, transparent);
  cursor: help;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 0 1.5rem;
}

.price-block {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 70%, var(--white));
  border-radius: var(--radius);
  min-width: 0;
}

.price-featured {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--blue-soft) 80%, var(--white)),
    var(--white)
  );
  box-shadow: inset 3px 0 0 var(--blue);
}

.price-tag {
  margin: 0 0 0.65rem;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  color: var(--ink);
}

.price .currency {
  font-size: 1.1rem;
  font-weight: 600;
}

.price .amount {
  font-size: clamp(2.4rem, 6vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price .unit {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
}

.price-note {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Contact */
.contact {
  text-align: left;
}

.contact-inner {
  animation: rise 0.8s ease both;
}

.contact .btn {
  margin: 0.5rem 0 1rem;
}

.contact-handle {
  margin: 0;
  font-size: 0.95rem;
}

.contact-handle a {
  color: var(--muted);
  text-decoration: none;
  word-break: break-all;
}

.contact-handle a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.75rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer p[lang="fr"] {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-inner,
  .hero-cta,
  .contact-inner,
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile 375 / 390 — no horizontal overflow */
@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 2rem);
  }

  .shell.narrow {
    width: calc(100% - 2rem);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .nav {
    gap: 0.35rem 0.9rem;
    justify-content: flex-start;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  body {
    font-size: 1rem;
  }

  .hero-brand {
    font-size: 3.1rem;
  }

  .price-block {
    padding: 1.4rem 1.15rem;
  }
}
