/* juliapaulinecreates.com
   Ground and ink are quiet so the paintings carry the page.
   Colour from Pip's world (ochre, blue, olive) only appears on the Pip page. */

:root {
  --ground: #FBFAF7;
  --ink: #1B3A52;          /* dark navy text */
  --ink-soft: #4A6275;     /* secondary text, ~6:1 on ground */
  --rule: #DAD6CE;
  --white: #FFFFFF;
  --ochre: #D9932F;        /* Pip page only */

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;

  --wrap: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;     /* Garamond runs small; 19px reads like 16px sans */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header { padding-block: 1.75rem 2.25rem; }

.nav ul {
  display: flex; gap: clamp(1.25rem, 4vw, 2.75rem);
  list-style: none; margin: 0; padding: 0;
}

.nav a {
  text-decoration: none;
  font-size: 1.0625rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }

.masthead { text-align: center; margin-top: clamp(1.75rem, 5vw, 3rem); }

.masthead__name {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.1rem, 6.4vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: 0.2em;
  padding-left: 0.2em;          /* balances trailing letter-spacing */
}
.masthead__name a { text-decoration: none; }

.masthead__tagline {
  margin: 0.6rem 0 0;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* ── The split: oils | Pip ──────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split__half {
  position: relative;
  display: block;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: var(--ink);
}

.split__half img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter 0.45s ease;
}

.split__half--oils img { object-position: 55% 45%; }
.split__half--pip  img { object-position: 41% 50%; }

/* The half that isn't the current section sits in shadow */
.split__half.is-dim img { filter: brightness(0.42) saturate(0.55); }
.split__half.is-dim:hover img,
.split__half.is-dim:focus-visible img { filter: brightness(0.75) saturate(0.85); }

.split__captions {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.split__captions a { text-decoration: none; }
.split__captions a:hover { text-decoration: underline; text-underline-offset: 3px; }
.split__captions a + a { padding-left: 0.9rem; }

/* ── Intro block under the split ────────────────────────── */

.intro { padding-block: clamp(3rem, 8vw, 5rem); }
.intro > * { max-width: 36rem; }

.intro h2 {
  margin: 0 0 1.5rem;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  line-height: 1.15;
}

.intro p { margin: 0 0 1.1rem; line-height: 1.75; }

.lines p { margin: 0 0 0.35rem; }

.actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.25rem;
}

/* ── Buttons: thin outline, as in the mockup ────────────── */

.btn {
  display: inline-block;
  min-width: 11rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--white); }

/* ── Sections & galleries ───────────────────────────────── */

.section { padding-block: clamp(3rem, 8vw, 5.5rem); border-top: 1px solid var(--rule); }

.section h2 {
  margin: 0 0 2rem;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.1rem);
}

/* A single featured painting: image + details */
.feature {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}
.feature__img { display: block; }
.feature h3 { margin: 0 0 0.25rem; font-weight: 400; font-size: 1.6rem; }
.feature .meta { margin: 0 0 1.5rem; color: var(--ink-soft); }
.feature .actions { margin-top: 0; flex-direction: column; align-items: flex-start; }
.note { margin-top: 3rem; color: var(--ink-soft); }

/* Pip gallery: two columns, art shown uncropped */
.gallery { columns: 2; column-gap: clamp(1.25rem, 4vw, 2.5rem); }
.gallery figure { break-inside: avoid; margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }
.gallery__img { display: block; }
.gallery img { width: 100%; }
.gallery figcaption {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 0.55rem; font-size: 1.0625rem;
}
.gallery figcaption { flex-wrap: wrap; align-items: baseline; }
.opts { color: var(--ink-soft); }
.opts a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; padding-block: 0.35rem; }
.opts a:hover { text-decoration-color: currentColor; color: var(--ink); }
.custom-note { margin-top: 1.75rem; max-width: 36rem; color: var(--ink-soft); line-height: 1.7; }

/* ── Pip page colour ────────────────────────────────────── */

.pip-wave {
  display: block; width: 100%; max-width: none;
  height: clamp(60px, 11vw, 130px);
  object-fit: fill;
  margin-top: -1px;
}

.signup {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.signup__flower { width: clamp(90px, 14vw, 150px); }
.signup p { max-width: 32rem; line-height: 1.75; }

/* ── Forms ──────────────────────────────────────────────── */

.form { display: grid; gap: 1.25rem; max-width: 34rem; }
.form--inline { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: 30rem; }
.form--inline input { flex: 1 1 14rem; }

.field label { display: block; margin-bottom: 0.35rem; font-size: 1rem; }

input, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ink-soft);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
textarea { min-height: 10rem; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.hp { display: none; }

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
}
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
}
.site-footer ul {
  list-style: none; margin: 0; padding: 0; text-align: right; font-size: 1.0625rem;
}
.site-footer li + li { margin-top: 0.3rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Small screens ──────────────────────────────────────── */

@media (max-width: 700px) {
  body { font-size: 1.125rem; }
  .split__half { aspect-ratio: 3 / 4; }
  .feature { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .signup { grid-template-columns: 1fr; }
  .signup__flower { display: none; }
  .btn { min-width: 0; }
}

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

/* ── Pip page sections ──────────────────────────────────── */


.pip-section, .art-section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.pip-section + .pip-section, .art-section + .art-section { border-top: 1px solid var(--rule); }
.pip-section h2, .art-section h2 {
  margin: 0 0 2rem; font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}
.section-lede { max-width: 36rem; margin: -0.75rem 0 2.5rem; line-height: 1.75; }

.book {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}
.book__cover { width: 100%; box-shadow: 0 1px 2px rgba(27,58,82,.18), 0 12px 32px -12px rgba(27,58,82,.35); }
.book__text { max-width: 34rem; }
.book__text h3 { margin: 0 0 1.25rem; font-weight: 400; font-size: 1.6rem; }
.book__text p { margin: 0 0 1rem; line-height: 1.75; }
.book__text .meta { margin-top: 1.5rem; color: var(--ink-soft); }
.book__soon { margin-top: 2rem !important; }

.merch { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.merch__flower { width: clamp(90px, 14vw, 150px); }

@media (max-width: 700px) {
  .book { grid-template-columns: 1fr; }
  .book__cover { max-width: 360px; }
  .merch { grid-template-columns: 1fr; }
  .merch__flower { display: none; }
}

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

/* ── Kit signup form ────────────────────────────────────── */

.kit-form { max-width: 30rem; }
.kit-fields { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.kit-fields input { flex: 1 1 14rem; width: auto; }
.kit-fields .btn { min-width: 0; }
.formkit-spinner { display: none; }
.formkit-submit[data-active] { opacity: 0.6; pointer-events: none; }
.kit-fine { margin: 0.75rem 0 0 !important; font-size: 0.9375rem; color: var(--ink-soft); }
.kit-fine a { color: inherit; }
.formkit-alert { list-style: none; margin: 0 0 1rem; padding: 0.75rem 1rem; border: 1px solid var(--rule); }
.formkit-alert:empty { display: none; }
.formkit-alert-error { border-color: #B5523B; color: #8A3A26; }
.formkit-alert-success { border-color: var(--ink); color: var(--ink); background: var(--white); }
