/* Veronika — warm editorial static site. Optional palette/density classes on <body> for manual theming. */

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

:root {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter Tight", system-ui, sans-serif;
  --font-accent: "Caveat", cursive;

  --reveal-duration: 1s;
  --reveal-ease: cubic-bezier(0.45, 0, 0.2, 1);
  --reveal-shift: 1.35rem;

  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-content: 38rem;
  --max-wide: 72rem;

  --header-h: 5.5rem;
  --transition: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Palette: Clay & terracotta (default) */
body.palette--clay,
body:not([class*="palette--"]) {
  --bg-page: #f6f0e8;
  --bg-paper: #fdfaf5;
  --ink: #2c2420;
  --ink-muted: #5c514a;
  --accent: #b85c38;
  --accent-soft: #d4a08f;
  --blush: #e8cfc4;
  --border: rgba(44, 36, 32, 0.12);
  --border-strong: rgba(44, 36, 32, 0.2);
}

body.palette--rose {
  --bg-page: #f7ecee;
  --bg-paper: #fff8f9;
  --ink: #2a2226;
  --ink-muted: #5a4a50;
  --accent: #a8485c;
  --accent-soft: #d4a0ab;
  --blush: #edcdd4;
  --border: rgba(42, 34, 38, 0.1);
  --border-strong: rgba(42, 34, 38, 0.18);
}

body.palette--sage {
  --bg-page: #eef2ea;
  --bg-paper: #f9fbf6;
  --ink: #252b24;
  --ink-muted: #4a5348;
  --accent: #5a6f4a;
  --accent-soft: #a8b89a;
  --blush: #d6e0d0;
  --border: rgba(37, 43, 36, 0.1);
  --border-strong: rgba(37, 43, 36, 0.16);
}

body.palette--blush {
  --bg-page: #f5ebe4;
  --bg-paper: #fffaf7;
  --ink: #2d2420;
  --ink-muted: #5a4d45;
  --accent: #9a5b3c;
  --accent-soft: #c9a090;
  --blush: #e4cfc2;
  --border: rgba(45, 36, 32, 0.1);
  --border-strong: rgba(45, 36, 32, 0.18);
}

body.palette--plum {
  --bg-page: #f0eaef;
  --bg-paper: #faf7fa;
  --ink: #2a222c;
  --ink-muted: #534a55;
  --accent: #6b4a6f;
  --accent-soft: #b59db8;
  --blush: #dfd4e3;
  --border: rgba(42, 34, 44, 0.1);
  --border-strong: rgba(42, 34, 44, 0.16);
}

html {
  scroll-behavior: smooth;
}

@view-transition {
  navigation: auto;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-page);
  position: relative;
}

body.density--airy {
  --space-lg: 2.75rem;
  --space-xl: 4.5rem;
  --space-2xl: 7rem;
  --max-content: 34rem;
}

body.density--editorial {
  --space-lg: 1.75rem;
  --space-xl: 3rem;
  --space-2xl: 4.25rem;
  --max-content: 42rem;
}

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

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

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100%;
  z-index: 200;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space-sm);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-page) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md) var(--space-xs);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  text-wrap: balance;
  max-width: 100%;
  line-height: 1.25;
}

.brand:hover {
  color: var(--accent);
}

.site-nav {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
}

.site-nav::-webkit-scrollbar {
  height: 4px;
}

.site-nav::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 99px;
}

.site-nav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2.5vw, 1.15rem);
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0 var(--space-xs) var(--space-xs);
}

.site-nav__list li {
  flex: 0 0 auto;
  text-align: center;
}

.site-nav__list a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-muted);
  white-space: nowrap;
}

.site-nav__list a:hover {
  color: var(--ink);
}

.site-nav__list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-paper);
  border-color: color-mix(in srgb, var(--accent) 70%, #000);
}

.btn--primary:hover {
  background: var(--ink);
  color: var(--bg-paper);
  border-color: var(--ink);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

main {
  padding-top: var(--space-md);
  padding-bottom: var(--space-2xl);
}

.page-content {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  max-width: var(--max-content);
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* Home: title + lede, then flower GIF (natural ratio, not full-bleed) */
.hero--cinematic {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: var(--space-xl) 0 var(--space-2xl);
  min-height: min(88dvh, 52rem);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-lg);
  color: var(--ink);
}

.hero__line {
  display: block;
}

.hero__line--accent {
  font-style: normal;
}

.hero__lede {
  font-size: 1.1rem;
  margin: 0;
  color: var(--ink-muted);
}

.hero__flower {
  margin: var(--space-xl) 0 0;
  padding: 0;
  width: 100%;
  max-width: min(22rem, 78vw);
}

.hero__flower-slot {
  display: block;
  line-height: 0;
}

.hero__flower-media,
canvas.hero__flower-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 28rem);
  object-fit: contain;
  opacity: 0;
  transform: translateX(-0.5rem);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

.hero__flower--loaded .hero__flower-media {
  opacity: 1;
  transform: translateX(0);
}

.hero__flower-media--static,
.hero__flower-media--still,
.hero__flower--frozen .hero__flower-media {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero__flower--missing .hero__flower-slot:empty::after {
  content: "";
  display: block;
  min-height: 12rem;
  background: color-mix(in srgb, var(--blush) 35%, var(--bg-paper));
}

.eyebrow {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0 0 var(--space-sm);
}

.eyebrow--vol {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
}

.display-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 var(--space-md);
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-muted);
  margin: 0 0 var(--space-md);
}

.page-content p {
  margin: 0 0 var(--space-md);
}

.credentials {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 0;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}

.credentials li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--ink-muted);
}

.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.welcome-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

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

figure {
  margin: 0;
}

.portrait__placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-paper);
  display: grid;
  place-items: center;
  padding: var(--space-md);
  text-align: center;
}

.portrait__label {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
  font-family: var(--font-display);
}

/* Philosophy (You): float-right image so copy runs down its left, then full width underneath */
.page-philosophy {
  --philosophy-hero-img-opacity: 1;
}

.section.philosophy-hero {
  max-width: min(100%, var(--max-wide));
  width: 100%;
  margin-inline: auto;
}

.philosophy-hero__figure {
  float: right;
  width: min(42%, 26rem);
  max-width: 100%;
  margin: 0.2em 0 var(--space-md) var(--space-lg);
  background: none;
}

.philosophy-hero__img {
  display: block;
  width: 100%;
  height: auto;
  opacity: var(--philosophy-hero-img-opacity, 1);
}

.philosophy-hero__copy {
  display: flow-root;
  text-align: left;
  min-width: 12rem;
}

.philosophy-hero__copy > :last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .philosophy-hero__figure {
    float: none;
    width: min(18rem, 78%);
    margin: 0 auto var(--space-lg);
  }

  .philosophy-hero__copy {
    min-width: 0;
  }
}

.eco-words {
  margin: 0 auto;
  max-width: min(40rem, 100%);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border: none;
  border-top: 3px solid var(--accent-soft);
  background: color-mix(in srgb, var(--bg-paper) 92%, var(--blush));
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
}

.eco-words__sub {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  margin: var(--space-md) 0 0;
  color: var(--accent);
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .pillar-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.pillar-card__keyword {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  color: var(--accent);
  margin: 0 0 var(--space-xs);
}

.pillar-card__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 var(--space-sm);
}

.pillar-card p:last-child {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Offerings */
.offerings-grid {
  max-width: 100%;
}

.offering-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}

/* Stacked: single column (default when not ledger/framed) */
body.offerings--stacked .offering-cards,
body:not(.offerings--ledger):not(.offerings--framed) .offering-cards {
  grid-template-columns: 1fr;
  max-width: var(--max-content);
}

@media (min-width: 900px) {
  body.offerings--framed .offering-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 48rem;
    margin-inline: auto;
  }

  body.offerings--framed .offering-card--featured {
    grid-column: 1 / -1;
    max-width: 32rem;
    width: 100%;
    justify-self: center;
  }
}

body.offerings--framed .offering-cards {
  max-width: 48rem;
  margin-inline: auto;
}

body.offerings--ledger .offering-cards {
  grid-template-columns: 1fr;
  max-width: 48rem;
}

body.offerings--ledger .offering-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: var(--space-lg);
  align-items: baseline;
}

body.offerings--ledger .offering-card__kicker {
  grid-column: 1 / -1;
}

body.offerings--ledger .offering-card__name,
body.offerings--ledger .offering-card__duration {
  grid-column: 1;
}

body.offerings--ledger .offering-card__price {
  grid-row: 2 / span 2;
  grid-column: 2;
  justify-self: end;
  font-size: 1.5rem;
}

body.offerings--ledger .offering-card__bullets {
  grid-column: 1 / -1;
}

body.offerings--ledger .offering-card__link {
  grid-column: 1 / -1;
}

body.offerings--framed .offering-card {
  border-width: 2px;
  border-color: var(--border-strong);
  box-shadow: 0 12px 40px rgba(44, 36, 32, 0.06);
}

.offering-card {
  position: relative;
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.offering-card--featured {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: linear-gradient(160deg, var(--bg-paper), color-mix(in srgb, var(--blush) 40%, var(--bg-paper)));
}

.offering-card__badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-paper);
}

.offering-card__kicker {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 0 var(--space-xs);
}

.offering-card__name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  margin: 0 0 0.15rem;
}

.offering-card__duration {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 var(--space-sm);
}

.offering-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 var(--space-sm);
}

.offering-card__bullets {
  margin: 0 0 var(--space-md);
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.offering-card__link {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.offering-card__link:hover {
  text-decoration: underline;
}

/* Contact */
.field {
  margin-bottom: var(--space-md);
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-paper);
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--ink-muted) 65%, transparent);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-thanks {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-paper);
  max-width: var(--max-content);
}

.contact-thanks__title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 var(--space-sm);
}

.site-footer {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

body.page-home .site-footer--home {
  border-top: 1px solid var(--border);
  background: var(--bg-page);
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
}

/* Scroll reveal: soft lateral drift + fade, ~1s, in and out of view */
[data-reveal] {
  opacity: 0;
  transform: translateX(calc(-1 * var(--reveal-shift)));
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

article.page-content > section[data-reveal]:nth-of-type(even),
.page-content > section[data-reveal]:nth-of-type(even) {
  transform: translateX(var(--reveal-shift));
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.reveal-ready [data-reveal].is-visible {
  will-change: auto;
}
