@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --indigo: #24205c;
  --indigo-lift: #37327a;
  --ink-soft: #4e4a79;
  --mist: #d3d1e6;
  --cream: #f5f2ec;
  --white: #ffffff;
  --red: #d9262c;
  --red-bright: #ed3e42;
  --line-dark: rgba(245, 242, 236, 0.22);
  --line-light: rgba(36, 32, 92, 0.16);

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1120px;
  --leaf: 14px 0 14px 0;
  --leaf-lg: 56px 0 56px 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--indigo);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul, dl, dd { margin: 0; }

h1, h2 { font-weight: 500; letter-spacing: -0.02em; }

h1 {
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.15;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
}

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

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

.btn {
  display: inline-block;
  padding: 0.85em 1.5em;
  border: 2px solid transparent;
  border-radius: var(--leaf);
  background: var(--red);
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.btn:hover { background: #b81e24; }

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

.btn--line:hover {
  background: var(--cream);
  color: var(--indigo);
}

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

.hero {
  background: var(--indigo);
  color: var(--cream);
  padding-block: clamp(20px, 3vw, 32px) clamp(56px, 8vw, 104px);
}

.hero__host {
  margin-bottom: clamp(40px, 7vw, 88px);
  color: var(--mist);
  font-size: 1rem;
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__lead {
  max-width: 34em;
  margin-top: 1.25rem;
  color: var(--mist);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
}

.facts {
  max-width: 30em;
  margin-top: 2rem;
  border-top: 1px solid var(--line-dark);
}

.facts p {
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line-dark);
  font-weight: 500;
}

.facts .facts__local {
  color: var(--mist);
  font-size: 1rem;
  font-weight: 400;
}

.hero__cta { margin-top: 2rem; }

.cal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.875rem;
}

.cal-buttons .btn { padding-inline: 1.1em; }

.cal-label {
  margin-top: 2rem;
  font-weight: 600;
}

.hero__visual { justify-self: center; width: min(100%, 420px); }

.hero__caption {
  margin-top: 1rem;
  color: var(--mist);
  font-size: 1rem;
  text-align: center;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

/* Keep the circle modest on phones, where it sits below the main content. */
@media (max-width: 899px) {
  .hero__visual { width: min(70%, 300px); }
}

/* --- Breathing circle: 14s cycle of in 4s, hold 2s, out 6s, hold 2s.
   The ring's arcs and ticks are drawn to those same proportions, so the dot
   crosses a tick exactly when the phase changes. ------------------------- */

.breath { display: block; width: 100%; height: auto; overflow: visible; }

.breath__arc {
  fill: none;
  stroke: var(--mist);
  stroke-opacity: 0.6;
  stroke-width: 2;
}

.breath__arc--hold { stroke-opacity: 0.2; }

.breath__tick {
  stroke: var(--mist);
  stroke-opacity: 0.8;
  stroke-width: 2;
}

.breath__shape {
  fill: var(--indigo-lift);
  transform-box: fill-box;
  transform-origin: center;
  animation: breath-shape 14s ease-in-out infinite;
}

.breath__dot {
  fill: var(--red-bright);
  transform-origin: 200px 200px;
  animation: breath-dot 14s linear infinite;
}

.breath__label,
.breath__still {
  fill: var(--cream);
  font-size: 20px;
  font-weight: 500;
  text-anchor: middle;
  dominant-baseline: middle;
}

.breath__still { opacity: 0; }

.breath__label {
  opacity: 0;
  animation: 14s linear infinite;
}

.breath__label--in { animation-name: breath-label-in; }
.breath__label--hold-1 { animation-name: breath-label-hold-1; }
.breath__label--out { animation-name: breath-label-out; }
.breath__label--hold-2 { animation-name: breath-label-hold-2; }

/* Phase boundaries as a share of 14s: 4s = 28.571%, 6s = 42.857%, 12s = 85.714%. */
@keyframes breath-shape {
  0% { transform: scale(0.55); }
  28.571%, 42.857% { transform: scale(1); }
  85.714%, 100% { transform: scale(0.55); }
}

@keyframes breath-dot {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes breath-label-in {
  0% { opacity: 0; }
  2.5%, 26.5% { opacity: 1; }
  28.571%, 100% { opacity: 0; }
}

@keyframes breath-label-hold-1 {
  0%, 28.571% { opacity: 0; }
  31%, 40.5% { opacity: 1; }
  42.857%, 100% { opacity: 0; }
}

@keyframes breath-label-out {
  0%, 42.857% { opacity: 0; }
  45.5%, 83.5% { opacity: 1; }
  85.714%, 100% { opacity: 0; }
}

@keyframes breath-label-hold-2 {
  0%, 85.714% { opacity: 0; }
  88%, 97.5% { opacity: 1; }
  100% { opacity: 0; }
}

/* --- Light sections ------------------------------------------------------ */

.section { padding-block: clamp(56px, 8vw, 104px); }

.section--white { background: var(--white); }

.notes {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}

.notes li {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink-soft);
}

.notes strong {
  color: var(--indigo);
  font-weight: 600;
}

/* --- Sign-up page: about + booking --------------------------------------- */

.about {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about__photo {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 60%;
  border-radius: var(--leaf-lg);
}

.about__bio {
  max-width: 34em;
  margin-top: 1rem;
  color: var(--ink-soft);
}

.about__h2-second { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
}

.booking__head { max-width: 34em; }

.booking__head p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

/* The widget only puts its time slots beside the calendar from ~850px of
   iframe width; narrower, it stacks and runs much taller. */
.booking__embed {
  max-width: 900px;
  min-height: 620px;
  margin-top: 2rem;
}

.booking__embed iframe { display: block; }

/* --- Confirmation page --------------------------------------------------- */

.join {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}

.join__text {
  max-width: 30em;
  margin-top: 1rem;
  color: var(--ink-soft);
}

.join__btn { margin-top: 1.5rem; }

.join__contact { margin-top: 1.5rem; color: var(--ink-soft); }

.join__contact a { color: var(--indigo); font-weight: 600; }

@media (min-width: 900px) {
  .join { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

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

.footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line-light);
  color: var(--ink-soft);
  font-size: 1rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
}

.footer__brand img { width: 40px; height: 40px; }

.footer a { display: inline-block; padding-block: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breath__shape, .breath__dot, .breath__label { animation: none; }
  .breath__still { opacity: 1; }
  .btn { transition: none; }
}
