/* ==========================================================================
   base.css — tokens, type, buttons, motion
   Design: "Sunroom + Cupped Hands" — airy sun-glow editorial type (Young Serif)
   with the soft rounded shapes and arched photos of the logo's cupped hands.
   ========================================================================== */

:root {
  /* colors — taken from the logo */
  --lead: #A4D8EF;         /* logo light blue: large surfaces, never text      */
  --lead-deep: #7FC3E4;    /* hover and image beds                             */
  --lead-pale: #EAF5FB;    /* pale sky band                                    */
  --anchor: #153643;       /* logo roof teal: all text, dark panels            */
  --anchor-soft: #2E5566;  /* small labels, still readable on light grounds    */
  --royal: #0458C8;        /* logo subline blue: main buttons, links           */
  --royal-deep: #033E8F;   /* button base shadow                               */
  --relief: #E8DCC8;       /* warm sand, the house wall in the logo            */
  --relief-pale: #F7F1E7;  /* pale sand                                        */
  --accent: #C0842C;       /* logo gold: rules, dots, emphasis in headings     */
  --sun: #F9C138;          /* logo sun: glows, highlights, chips               */
  --paper: #FBFDFE;        /* page ground, a breath of blue                    */
  --white: #FFFFFF;

  --hair: rgba(21, 54, 67, 0.14);
  --shadow: 0 24px 50px -30px rgba(21, 54, 67, 0.55);
  --shadow-soft: 0 12px 30px -18px rgba(21, 54, 67, 0.45);

  /* type */
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --round: "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --ui: "Figtree", "Helvetica Neue", Arial, sans-serif;

  /* shape and rhythm */
  --radius: 26px;
  --radius-sm: 16px;
  /* content uses the full screen: side space grows with the window, up to a very wide cap */
  --pad: clamp(18px, 4vw, 72px);
  --maxw: 1860px;
  --band-y: clamp(64px, 9vw, 116px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bounce: cubic-bezier(.3, 1.4, .5, 1);
}

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

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

body {
  margin: 0;
  /* type grows slightly on very large screens */
  background: var(--paper);
  color: var(--anchor);
  font-family: var(--ui);
  font-size: clamp(16px, 0.55vw + 9px, 19px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--anchor); }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--anchor); color: var(--white); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* --- type ----------------------------------------------------------------- */

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 5.4rem); line-height: 1.03; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.6rem); line-height: 1.08; }
h3 { font-family: var(--round); font-weight: 800; font-size: 1.2rem; line-height: 1.3; margin: 0; }
h4 { font-family: var(--round); font-weight: 800; font-size: 1rem; margin: 0; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
p { margin: 0; }

.label {
  display: inline-block;
  font-family: var(--round);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--anchor-soft);
}

.lede { font-size: clamp(1.05rem, 1.3vw, 1.4rem); max-width: 44ch; }
.body-copy { font-size: clamp(1.02rem, 1.05vw, 1.2rem); max-width: 62ch; }
.quiet { color: var(--anchor-soft); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border-radius: 999px;
  padding: 6px 14px 6px 6px;
  font-family: var(--round); font-weight: 700; font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}
.chip b { white-space: nowrap; background: var(--sun); border-radius: 999px; padding: 2px 10px; font-weight: 900; }

/* --- buttons -------------------------------------------------------------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.centered { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--round); font-weight: 800; font-size: 1rem; line-height: 1.2;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary { background: var(--royal); color: var(--white); box-shadow: 0 7px 0 -2px var(--royal-deep); }
.btn-primary:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 0 -2px var(--royal-deep); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 -2px var(--royal-deep); }
.btn-primary:disabled { opacity: .7; cursor: progress; }

.btn-secondary { background: var(--white); color: var(--anchor); box-shadow: 0 7px 0 -2px var(--lead), inset 0 0 0 1.5px var(--lead); }
.btn-secondary:hover { color: var(--anchor); transform: translateY(-3px); box-shadow: 0 10px 0 -2px var(--lead-deep), inset 0 0 0 1.5px var(--lead-deep); }
.btn-secondary:active { transform: translateY(3px); box-shadow: 0 2px 0 -2px var(--lead), inset 0 0 0 1.5px var(--lead); }

.btn-sun { background: var(--sun); color: #1a1405; box-shadow: 0 7px 0 -2px #B98A12; }
.btn-sun:hover { color: #1a1405; transform: translateY(-3px); box-shadow: 0 10px 0 -2px #B98A12; }

.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }

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

/* page-load rise, used on hero copy */
.rise { animation: rise 1s var(--ease) both; }
.rise-2 { animation-delay: .1s; }
.rise-3 { animation-delay: .2s; }
.rise-4 { animation-delay: .3s; }
@keyframes rise { from { opacity: .2; transform: translateY(22px); } }

/* scroll reveal — elements stay readable before they animate */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.pending { opacity: .3; transform: translateY(28px); }

/* gentle floating photos */
.float { animation: float 6s ease-in-out infinite; }
.float-late { animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -10px; } }

/* slow zoom on the main hero photo */
.kenburns { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, 1%); } }

/* the sun glow behind heroes and the dark panels */
.sun-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  left: -190px; top: -180px; pointer-events: none;
  background: radial-gradient(circle, rgba(249, 193, 56, .42), rgba(249, 193, 56, .1) 45%, transparent 70%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal.pending { opacity: 1; transform: none; }
}
