/* ==========================================================================
   Better We Connect — betterweconnect.com
   Single stylesheet. Mobile-first. No frameworks, no build step.
   Design language inherited from the Instagram card system:
   rose hairline + centre diamond dividers, corner dots, pale-circle icons,
   Lora headings on beige, generous whitespace.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --beige:      #F5F0EB;
  --warm-white: #FFFCF8;
  --charcoal:   #2D2D2D;
  --rose:       #C4A08A;
  --dark-rose:  #AA826E;
  --sage:       #789078;
  --light-rose: #E8D5C4;

  /* Two web-only adjustments to the card palette, for WCAG AA text contrast.
     The card generator keeps the originals — these apply to screen text only.
       --grey      #787878 -> #6A6A6A  (was 4.32:1 on warm-white, now 5.29:1)
       --rose-deep new             (buttons + small tracked labels; #AA826E
                                    filled buttons were 3.35:1 — failed AA)
     --dark-rose is still used for large display text, lines and hovers. */
  --grey:       #6A6A6A;
  --rose-deep:  #8A5F4A;

  --pale-rose: #EFE4DB;
  --pale-sage: #E3EADE;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1080px;   /* echoes the 1080px card width */
  --read:  62ch;

  --gap:   1.5rem;
  --block: 4rem;     /* vertical rhythm between sections */
  --radius: 10px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--beige);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 8.5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 4vw, 1.4rem); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--rose-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.4rem;
}

.lede   { max-width: var(--read); }
.center { text-align: center; margin-inline: auto; }

/* Small tracked all-caps label — the card "subtitle" treatment */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 0 0 1rem;
}

.muted { color: var(--grey); }
.small { font-size: 0.9rem; line-height: 1.65; }

/* ---------- 3. Signature: rose top bar, hairline divider, corner dots ---------- */
.topbar {
  height: 8px;
  background: var(--rose);
}

/* Divider: thin rose line broken by a centre diamond (straight from the cards) */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: var(--block) auto;
  max-width: 340px;
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rose);
}
.rule span {
  width: 9px; height: 9px;
  background: var(--rose);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.rule--tight { margin-block: 2.2rem; }

/* ---------- 4. Header ---------- */
.site-head {
  padding-block: 1.4rem 0.5rem;
}
.site-head .shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
.wordmark:hover { text-decoration: none; color: var(--dark-rose); }

.site-nav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-nav a { color: var(--grey); }
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--rose-deep);
  text-decoration: none;
}
.site-nav a[aria-current="page"] { border-bottom: 1px solid var(--rose); }

@media (min-width: 42rem) {
  .site-head .shell { flex-direction: row; justify-content: space-between; }
  .wordmark { font-size: 1.3rem; }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding-block: 3rem 0;
  overflow: hidden;
}
.hero .shell { position: relative; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--dark-rose); display: block; }
.hero p { color: var(--grey); max-width: 34ch; }

.hero-art {
  width: min(300px, 78%);
  margin: 2.4rem auto 0;
  opacity: 0.5;
}

@media (min-width: 52rem) {
  .hero { padding-block: 4.5rem 1rem; min-height: 30rem; }
  .hero-copy { max-width: 32rem; }
  .hero-art {
    position: absolute;
    right: 1.4rem;
    bottom: -1rem;
    width: clamp(16rem, 30vw, 25rem);
    margin: 0;
    opacity: 0.55;
    z-index: 1;
  }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--rose-deep);
  color: var(--warm-white);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--rose-deep);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--warm-white);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--quiet {
  background: transparent;
  color: var(--rose-deep);
  border-color: var(--rose);
}
.btn--quiet:hover { background: var(--rose-deep); color: var(--warm-white); }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- 7. Section scaffolding ---------- */
.section { padding-block: 0; }
.section-head { text-align: center; max-width: 46ch; margin: 0 auto 2.5rem; }
.section-head p { color: var(--grey); }

/* ---------- 8. Card grids ---------- */
.grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 46rem) { .grid--two { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--warm-white);
  border: 1px solid var(--light-rose);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--grey); font-size: 0.96rem; }

.card--topic { text-align: center; }

/* Pale-circle icon holder — the card system's icon treatment */
.icon-circle {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  background: var(--pale-rose);
}
.icon-circle--sage { background: var(--pale-sage); }
.icon-circle svg { width: 34px; height: 34px; display: block; }

/* ---------- 9. Bookshelf ---------- */
.disclosure {
  background: var(--warm-white);
  border: 1px solid var(--light-rose);
  border-left: 3px solid var(--rose);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--grey);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-block: 0 2.5rem;
}
.disclosure--foot { margin-block: 2.5rem 0; }

.book {
  background: var(--warm-white);
  border: 1px solid var(--light-rose);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}
.book-spine {
  height: 132px;
  border-radius: 4px;
  margin-bottom: 1.3rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--charcoal);
  background: var(--pale-rose);
  border: 1px solid var(--light-rose);
  border-left: 6px solid var(--rose);
}
.book-spine--sage { background: var(--pale-sage); border-left-color: var(--sage); }
.book h3 { margin-bottom: 0.15rem; font-size: 1.22rem; }
.book .byline {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.9rem;
}
.book p { color: var(--grey); font-size: 0.96rem; }
.book .btn { margin-top: auto; }
.book-why {
  margin-top: 1.2rem;
  margin-bottom: 1.4rem;
}

/* ---------- 10. Article teaser ---------- */
.teaser {
  background: var(--warm-white);
  border: 1px solid var(--light-rose);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
}
.teaser h3 { max-width: 30ch; margin-inline: auto; }
.teaser p { color: var(--grey); max-width: 48ch; margin-inline: auto; }

/* ---------- 11. Email signup band ---------- */
.signup {
  background: var(--warm-white);
  border-block: 1px solid var(--light-rose);
  padding-block: 3rem;
  margin-top: var(--block);
}
.signup h2 { margin-bottom: 0.6rem; }
.signup .eyebrow { color: var(--sage); }
.signup .signup-copy { text-align: center; max-width: 44ch; margin: 0 auto 1.8rem; }
.signup .signup-copy p { color: var(--grey); }

.signup-form {
  display: grid;
  gap: 0.7rem;
  max-width: 26rem;
  margin-inline: auto;
}
.signup-form label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  display: block;
  margin-bottom: 0.35rem;
}
.signup-form input {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--beige);
  border: 1px solid var(--light-rose);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
}
.signup-form input::placeholder { color: #8A8580; }
.signup-form input:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px rgba(196,160,138,0.22); }
.signup-note { text-align: center; color: var(--grey); font-size: 0.82rem; margin-top: 0.9rem; }

/* ---------- 12. Footer ---------- */
.site-foot {
  padding-block: 2.6rem 3.2rem;
  text-align: center;
  color: var(--grey);
  font-size: 0.88rem;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  margin-bottom: 1.2rem;
}
.foot-links a { color: var(--grey); }
.foot-links a:hover { color: var(--rose-deep); }
.foot-mark {
  font-family: var(--serif);
  color: var(--rose);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

/* Corner dots, drawn once around the whole page — the card frame motif */
.corner {
  position: fixed;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rose);
  pointer-events: none;
  z-index: 5;
}
.corner-tl { top: 22px; left: 22px; }
.corner-tr { top: 22px; right: 22px; }
.corner-bl { bottom: 22px; left: 22px; }
.corner-br { bottom: 22px; right: 22px; }
@media (max-width: 46rem) { .corner { display: none; } }

/* ---------- 13. Accessibility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------- 14. Quotes (quotes.html) ---------- */
/* Illustration above, line below, sitting straight on the beige — no panel,
   no border, no box. The drawing is the ornament now, so the rose diamond
   that used to sit here is gone. */
.quote {
  margin: 0;                    /* reset the browser's blockquote indent */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quote img {
  width: 100%;
  max-width: 200px;             /* source is 800px — 4x, sharp on retina */
  height: auto;
  margin-bottom: 0.9rem;
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 3.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--charcoal);
  max-width: 32ch;              /* keeps the line readable under a 200px drawing */
}

/* Without card edges, 24 quotes need more air than the default grid gap */
.grid--quotes { gap: 3.2rem 2rem; }
