/* About To Bloom — shared styles
   Colors and fonts live in the :root block below, so a change there updates every page. */

:root {
  --ink: #2e211b;          /* main text, buttons, headings */
  --cocoa: #4a352b;
  --muted: #66534a;        /* secondary text */
  --petal: #fbf8f4;        /* page background */
  --tint: #f6ebe6;         /* soft blush section background */
  --sage-tint: #eaeedf;    /* soft sage section background */
  --blush: #efd6cf;
  --rose: #c98a94;
  --sage: #7f9170;
  --line: rgba(46, 33, 27, 0.16);

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 72rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--petal);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--petal);
  padding: 0.5rem 0.9rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(3.4rem, 10vw, 8.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.1; }

.page-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  max-width: 14ch;
}
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem); }

p { margin: 0 0 1.1em; max-width: 62ch; color: var(--muted); }

.lede {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}

/* ---------- Layout ---------- */

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

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.light { background: var(--tint); }
.cocoa { background: var(--sage-tint); }

/* ---------- Header ---------- */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
}
.brand img { width: 2rem; height: 2rem; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.nav a:hover { border-bottom-color: var(--rose); }
.nav a[aria-current="page"] { border-bottom-color: var(--rose); }

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

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--petal);
  text-decoration: none;
  font-weight: 500;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn:hover { background: var(--cocoa); border-color: var(--cocoa); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(46, 33, 27, 0.5);
}
.btn.ghost:hover { background: rgba(46, 33, 27, 0.07); border-color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ---------- Home hero ----------
   Drop your own photo at images/hero.jpg and it covers the illustration automatically.
   The cream wash on top keeps the dark headline readable over any photo. */

.hero {
  min-height: min(88vh, 54rem);
  display: flex;
  align-items: flex-end;
  background-color: #f3e3d6;
  background-image:
    linear-gradient(90deg, rgba(251, 248, 244, 0.92), rgba(251, 248, 244, 0.45) 45%, rgba(251, 248, 244, 0) 72%),
    url("../images/hero.jpg"),
    url("field.svg");
  background-size: cover, cover, cover;
  background-position: center, center, center bottom;
  background-repeat: no-repeat;
}
/* On phones the text sits on the sky at the top, so the rows stay fully visible below it */
@media (max-width: 51.99rem) {
  .hero {
    align-items: flex-start;
    min-height: 40rem;
    background-image:
      linear-gradient(180deg, rgba(251, 248, 244, 0.7), rgba(251, 248, 244, 0) 55%),
      url("../images/hero.jpg"),
      url("field.svg");
  }
  .hero .wrap { padding-block: 2.5rem 3rem; }
}
.hero .wrap { padding-block: clamp(3rem, 8vw, 6rem); }
.hero h1 { max-width: 9ch; margin-bottom: 0.25em; color: var(--ink); }
.hero .lede { color: #4d3b31; }
.hero .btn.ghost { background: rgba(251, 248, 244, 0.8); }
.hero .btn.ghost:hover { background: #ffffff; }

/* ---------- Split sections ---------- */

.split {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.wide-left { grid-template-columns: 1.15fr 0.85fr; }
}

.bud-frame {
  background: var(--blush);
  border-radius: 50% 50% 1.5rem 1.5rem / 38% 38% 1.5rem 1.5rem;
  aspect-ratio: 4 / 5;
  max-width: 26rem;
  width: 100%;
  margin-inline: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-image: url("../images/stems.jpg"), url("bud.svg");
  background-size: cover, 78%;
  background-position: center, center 60%;
  background-repeat: no-repeat;
}

/* ---------- The work: a real sequence, so a ruled list ---------- */

.stages {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.stages li {
  display: grid;
  gap: 0.4rem 2.5rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}
.stages li:last-child { border-bottom: 1px solid var(--line); }
.stages h3 { margin: 0; }
.stages p { margin: 0; }
@media (min-width: 52rem) {
  .stages li { grid-template-columns: 1fr 1.4fr; align-items: baseline; }
}

/* ---------- Photo slot (about page) ---------- */

.photo {
  min-height: clamp(16rem, 38vw, 28rem);
  border-radius: 1.2rem;
  background-color: var(--tint);
  background-image: url("../images/about.jpg"), url("field.svg");
  background-size: cover, cover;
  background-position: center, center bottom;
  background-repeat: no-repeat;
}

/* ---------- Products ---------- */

.offer {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.offer li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1.5rem;
  align-items: center;
  padding-block: 1.3rem;
  border-top: 1px solid var(--line);
}
.offer li:last-child { border-bottom: 1px solid var(--line); }
.offer h3 { margin: 0; font-size: 1.55rem; }
.offer p { margin: 0; font-size: 0.98rem; }
.offer .price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
  text-align: right;
}
.offer .btn { padding: 0.65rem 1.3rem; }
.offer .buy { grid-column: 1 / -1; margin-top: 0.7rem; }
@media (min-width: 40rem) {
  .offer li { grid-template-columns: 1fr auto auto; }
  .offer .buy { grid-column: auto; margin-top: 0; }
}

.note {
  font-size: 0.95rem;
  max-width: 58ch;
}

.care {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.care li { padding-left: 1.4rem; border-left: 2px solid var(--sage); }
.care strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; margin-bottom: 0.2rem; color: var(--ink); }
.care span { color: var(--muted); }
@media (min-width: 52rem) { .care { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 3rem; } }

/* ---------- Contact ---------- */

.mail-link {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.3vw, 2.4rem);
  line-height: 1.1;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.mail-link:hover { text-decoration-color: var(--ink); }

form { display: grid; gap: 1.1rem; max-width: 34rem; }
label { display: grid; gap: 0.35rem; font-size: 0.95rem; color: var(--muted); }
input, textarea {
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(46, 33, 27, 0.3);
  border-radius: 0.6rem;
  padding: 0.8rem 0.95rem;
}
input:focus, textarea:focus {
  outline: 2px solid var(--cocoa);
  outline-offset: 1px;
  border-color: transparent;
}
textarea { min-height: 9rem; resize: vertical; }
.form-note { font-size: 0.92rem; color: var(--muted); margin: 0; }

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

.site-footer {
  background: var(--tint);
  border-top: 1px solid var(--line);
  padding-block: 2.2rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
}
.site-footer p { margin: 0; max-width: none; }
.site-footer a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
