/* Knollwood Flowers — shared brand foundation
   Palette + type from the Megan Mack Brand Suite Guidelines. */

:root {
  /* primary */
  --stem: #435236;
  --dew: #E9EFE3;
  --sage: #8EA07E;
  --forest: #21271C;
  /* secondary (used sparingly) */
  --lavender: #DCC4F8;
  --cosmo: #523636;
  --dahlia: #FFBFBF;
  --daffodil: #FBDFB4;
  --marigold: #EBA576;

  --paper: #F3F6EE;            /* a breath lighter than dew, for long reading */
  --ink: var(--forest);
  --ink-soft: #4d5645;
  --rule: rgba(33, 39, 28, .16);
  --rule-light: rgba(233, 239, 227, .22);

  --serif: "Hoefler Text", "EB Garamond", Garamond, "Times New Roman", serif;
  --display: "Lexend Tera", "Lexend", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter Tight", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --script: "La Belle Aurore", "Snell Roundhand", "Segoe Script", cursive;

  --wrap: 1240px;
  /* one spacing rhythm for the whole site */
  --sp-section: clamp(72px, 9vw, 120px);     /* top & bottom of every main section */
  --sp-section-sm: clamp(48px, 6vw, 80px);   /* smaller sections and openings */
  --sp-head: clamp(28px, 3.5vw, 48px);       /* section heading → what's under it */
  --sp-gap: clamp(16px, 2vw, 28px);          /* space between cards and photos */
  --sp-card: clamp(22px, 2.6vw, 32px);       /* inside cards */
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));  /* left edge of page content, for half-width hero text */
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  /* faint paper grain, like the brand's printed pieces */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .15 0 0 0 0 .11 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

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

/* ── type ───────────────────────────────────────────── */
.eyebrow, .sub {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  line-height: 1.5;
}
.sub--lg { font-size: clamp(14px, 1.6vw, 20px); letter-spacing: .18em; }
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -.005em;
}
.caps { text-transform: uppercase; letter-spacing: .04em; }
.italic { font-style: italic; }
.muted { color: var(--ink-soft); }
.ui { font-family: var(--sans); font-size: 15px; }

/* ── buttons ────────────────────────────────────────── */
.btn {
  --bg: var(--stem); --fg: var(--dew); --bd: var(--stem);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd); border-radius: 0;
  font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { --bg: var(--forest); --bd: var(--forest); }
.btn--ghost { --bg: transparent; --fg: var(--stem); --bd: var(--stem); }
.btn--ghost:hover { --bg: var(--stem); --fg: var(--dew); }
.btn--dew { --bg: var(--dew); --fg: var(--forest); --bd: var(--dew); }
.btn--dew:hover { --bg: transparent; --fg: var(--dew); --bd: var(--dew); }
.btn--line-dew { --bg: transparent; --fg: var(--dew); --bd: var(--rule-light); }
.btn--line-dew:hover { --bg: var(--dew); --fg: var(--forest); --bd: var(--dew); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--block { width: 100%; }
.link {
  font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; cursor: pointer;
  background: none; border-top: 0; border-left: 0; border-right: 0;
}

/* ── form fields ────────────────────────────────────── */
.field { display: grid; gap: 8px; }
.field > span { font-family: var(--display); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: transparent; border: 1px solid currentColor; border-radius: 0;
  font-family: var(--serif); font-size: 18px;
  -webkit-appearance: none; appearance: none;
}
.select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: currentColor; opacity: .5; }

/* ── misc ───────────────────────────────────────────── */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--forest); color: var(--dew); padding: 14px 24px; border-radius: 999px; line-height: 1.5;
  font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: all .35s var(--ease); z-index: 200; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.demo-flag { pointer-events: none;
  position: fixed; top: 0; right: 0; z-index: 300; background: var(--marigold); color: var(--forest);
  font: 10px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* handwritten notes (Megan's notes, little labels) */
.note { font-family: var(--script); font-size: 1.35em; line-height: 1.25; color: var(--stem); letter-spacing: 0; text-transform: none; font-weight: 400; }

/* scroll reveal — content is fully visible without JS */
/* scroll reveal: things rise and settle as they come into view */
.reveal-ready [data-reveal]:not(.in) { opacity: 0; transform: translateY(42px); }
.reveal-ready [data-reveal="photo"]:not(.in) { opacity: 1; transform: none; clip-path: inset(18% 0 0 0 round var(--r, 12px)); }
.reveal-ready [data-reveal="photo"]:not(.in) img { transform: scale(1.12); }
[data-reveal] { transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms), clip-path 1.3s var(--ease) var(--d, 0ms); }
[data-reveal="photo"] { clip-path: inset(0 0 0 0 round var(--r, 12px)); }
[data-reveal="photo"] img { transition: transform 1.6s var(--ease) var(--d, 0ms); }
