/* ==========================================================================
   Celebra — theme.css
   Design tokens, reset and base typography. Swap the values in :root to
   re-skin the whole site; nothing below this file hardcodes a colour.
   ========================================================================== */

:root {
  /* ---- brand palette ---------------------------------------------------- */
  --color-primary:      #0F6B66;   /* deep teal   */
  --color-primary-700:  #0A4D49;
  --color-primary-600:  #0C5B57;
  --color-primary-300:  #6FAEAA;
  --color-primary-100:  #D6E9E7;
  --color-primary-050:  #EDF5F4;

  --color-accent:       #FF7A59;   /* warm coral  */
  --color-accent-700:   #C1462A;   /* coral, dark enough for text on light */
  --color-accent-300:   #FFB39F;
  --color-accent-050:   #FFF0EB;

  --color-gold:         #F5B942;   /* sunflower   */
  --color-gold-700:     #A9760A;
  --color-gold-050:     #FEF6E6;

  --color-amber:        #F5A623;   /* rating stars */

  --color-charcoal:     #1E2328;
  --color-ivory:        #FBF8F3;

  /* ---- semantic surfaces ------------------------------------------------ */
  --color-bg:           var(--color-ivory);
  --color-surface:      #FFFFFF;
  --color-surface-alt:  #F5F1EA;
  --color-text:         var(--color-charcoal);
  --color-text-muted:   #5C6670;
  --color-text-faint:   #8A939C;
  --color-line:         #E6E0D6;
  --color-line-strong:  #D2CABC;
  --color-on-dark:      #F4FAF9;
  --color-on-dark-muted:#B9D3D1;

  /* ---- typography ------------------------------------------------------- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-h1:   clamp(2.25rem, 1.45rem + 3.4vw, 4.15rem);
  --fs-h2:   clamp(1.75rem, 1.25rem + 2.1vw, 2.85rem);
  --fs-h3:   clamp(1.12rem, 1.02rem + 0.45vw, 1.4rem);
  --fs-lead: clamp(1rem, 0.96rem + 0.28vw, 1.15rem);
  --fs-sm:   0.875rem;
  --fs-xs:   0.78rem;

  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* ---- layout ----------------------------------------------------------- */
  --wrap-max: 1240px;
  --wrap-narrow: 780px;
  --gutter: 1.15rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --section-y: clamp(3rem, 2rem + 5vw, 6rem);

  /* ---- shape ------------------------------------------------------------ */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(30, 35, 40, 0.05);
  --shadow-sm: 0 2px 10px rgba(30, 35, 40, 0.06);
  --shadow-md: 0 10px 28px -12px rgba(30, 35, 40, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(15, 107, 102, 0.28);
  --shadow-gold: 0 12px 28px -14px rgba(245, 185, 66, 0.75);

  /* ---- motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-back: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-fast: 140ms;
  --t: 240ms;
  --t-slow: 420ms;

  /* ---- chrome ----------------------------------------------------------- */
  --header-h: 68px;
  /* Shared height for every pill-shaped control in the header, so the row
     reads as one band instead of four differently sized buttons. */
  --control-h: 44px;
  --z-header: 60;
  --z-drawer: 80;
  --z-lightbox: 100;
  --z-modal: 110;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  min-height: 100vh;
  overflow-x: clip;           /* guards against stray wide children */
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

img { height: auto; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; }

ul, ol { list-style: none; padding: 0; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover { color: var(--color-primary-700); }

table { border-collapse: collapse; width: 100%; }

fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

:target { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ==========================================================================
   Base typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 600; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { text-wrap: pretty; }

strong, b { font-weight: 700; }

s { color: inherit; text-decoration-thickness: 1.5px; }

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

/* ==========================================================================
   Focus, motion and screen-reader utilities
   ========================================================================== */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: calc(var(--z-lightbox) + 1);
  padding: 0.7rem 1.2rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform var(--t) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@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;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */

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

.wrap--narrow { max-width: var(--wrap-narrow); }

.main { display: block; }

.center { text-align: center; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: middle;
}

.icon-sprite {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
}

/* Scroll-reveal: elements start slightly low and fade in once seen.
   Only applied when JS is on, so no-JS visitors see everything. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}
