/* Willow Page Works — brand-matched landing styles
   Colours from the approved house style and sampled brand assets.
   Sage #526D58 and ivory #FBF8ED: /workspace/omega/tools/make_briefs.py
   Ink #243A31, leaf #8E9F8D, gold #C8A56F: sampled from the approved wordmark.
   Fonts: Libre Baskerville + Source Sans 3 (open licence; closest documented pairing).
*/

:root {
  --ivory: #FBF8ED;
  --sage: #526D58;
  --ink: #243A31;
  --leaf: #8E9F8D;
  --gold: #C8A56F;
  --white: #ffffff;
  --pale: #E8EDE4;
  --muted: #5C6F63;
  --line: #D5DCD3;
  --focus: #243A31;
  --max: 70rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --font-serif: "Libre Baskerville", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 8px 28px rgba(36, 58, 49, 0.08);
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("../assets/fonts/LibreBaskerville-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("../assets/fonts/LibreBaskerville-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/SourceSans3-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/SourceSans3-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

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

a {
  color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 100;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.5rem 0.85rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
}

.logo img {
  height: 2.7rem;
  width: auto;
  max-width: min(18rem, 80vw);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
}

.nav-list a {
  color: var(--ink);
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--sage);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--sage);
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.35rem;
  border: 2px solid var(--sage);
  border-radius: 2px;
  cursor: pointer;
  line-height: 1.2;
}

.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
  text-decoration: none;
}

.btn-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
}

.btn-ghost {
  background: transparent;
  color: var(--sage);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--sage);
  color: var(--ivory);
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(3rem, 8vw, 5.75rem);
  overflow: hidden;
}

.hero-logo {
  width: min(32rem, 86vw);
  margin: 0 auto 0.4rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  line-height: 1.35;
  margin: 0.35rem 0 0;
  color: var(--ink);
  max-width: 18em;
  margin-inline: auto;
}

.hero .rule {
  width: min(12rem, 50%);
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.35rem auto 1.15rem;
}

.hero .lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.sprig {
  position: absolute;
  width: clamp(4.5rem, 12vw, 7.5rem);
  pointer-events: none;
  opacity: 0.9;
}

.sprig-tl { top: 1.25rem; left: clamp(0.25rem, 3vw, 2rem); }
.sprig-tr { top: 1.25rem; right: clamp(0.25rem, 3vw, 2rem); }
.sprig-bl { bottom: 0.75rem; left: clamp(0.25rem, 3vw, 2rem); transform: scaleY(-1); }
.sprig-br { bottom: 0.75rem; right: clamp(0.25rem, 3vw, 2rem); transform: scaleY(-1); }

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4.25rem) 0;
}

.section h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  text-align: center;
  color: var(--ink);
}

.section .intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--muted);
}

/* Featured products */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  height: 100%;
}

.card-image {
  background: var(--ivory);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-body {
  padding: 1.15rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}

.card .price {
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.card .coming-soon {
  margin: 0.15rem 0 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  pointer-events: none;
}

/* Sign-up */
.signup {
  background: var(--ivory);
}

.signup-box {
  max-width: 28.5rem;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.75rem 1.4rem 1.85rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.signup-box .consent {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.privacy-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.signup-box .btn { width: 100%; text-align: center; }

/* Journal */
.journal {
  text-align: center;
  border-top: 1px solid var(--line);
}

.journal .intro { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 2.25rem 0 1.75rem;
  font-size: 0.95rem;
}

.site-footer a { color: #E8EDE4; }

.site-footer a:hover { color: var(--ivory); }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: center;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
}

.footer-sep { color: var(--leaf); }

.legal {
  margin: 0.4rem 0 0;
  color: #D5DCD3;
  font-size: 0.88rem;
}

.ai-line {
  margin: 0.85rem auto 0;
  max-width: 36rem;
  color: #C5CFC3;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Privacy page */
.page-header {
  padding: 2.25rem 0 0.5rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  margin: 0 0 0.4rem;
}

.prose {
  max-width: 40rem;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  margin: 1.75rem 0 0.4rem;
}

.prose p { margin: 0 0 0.85rem; }

.draft-banner {
  background: var(--pale);
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}


@media (max-width: 719px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-block: 1rem 0.9rem;
  }
  .logo img { height: 2.45rem; }
  .nav-list { justify-content: center; }
  .sprig { display: none; }
  .hero { padding-top: 2.25rem; padding-bottom: 2.5rem; }
  .hero-logo { width: min(20.5rem, 92vw); }
}

@media (min-width: 720px) {
  .logo img { height: 3rem; }
}

.privacy-note a { white-space: nowrap; }
