/* The Pink Shoelace Foundation — shared stylesheet.
   Palette and type intentionally distinct from AVAIA's own site, since
   the two organizations are separate. Pink is the signal, not the whole
   page: most of the site is white, black, and warm neutral, with pink
   reserved for the shoelace motif, key phrases, and calls to action. */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --pink: #e8168f;
  --pink-deep: #b8106f;
  --pink-pale: #fbe8f2;
  --ink: #201a1d;
  --ink-soft: #5a5058;
  --paper: #fffdfc;
  --paper-alt: #faf3f6;
  --line: #ece2e6;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--pink-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-deep);
  font-weight: 600;
  margin-bottom: 0.6em;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------------------------------------------------------------------
   Header / Nav
--------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand .name em {
  font-style: normal;
  color: var(--pink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--pink-deep);
  text-decoration: none;
}

.site-nav a.featured {
  color: var(--pink-deep);
  font-weight: 700;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1rem 1.5rem 1.4rem;
    border-top: 1px solid var(--line);
    gap: 0.9rem;
  }
  .site-nav.open { display: flex; }
}

/* ---------------------------------------------------------------------
   Hero
--------------------------------------------------------------------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero .principal {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  color: var(--pink-deep);
  margin-top: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background:
    repeating-linear-gradient(135deg, var(--paper-alt), var(--paper-alt) 12px, #f3e2ea 12px, #f3e2ea 24px);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.photo-placeholder.wide { aspect-ratio: 16 / 10; }
.photo-placeholder span { max-width: 22ch; }

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.15s;
}
.btn-primary {
  background: var(--pink);
  color: #fff;
}
.btn-primary:hover { background: var(--pink-deep); text-decoration: none; }
.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--pink-deep); color: var(--pink-deep); text-decoration: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

/* ---------------------------------------------------------------------
   Two Sides section (reused across pages)
--------------------------------------------------------------------- */
.two-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 720px) {
  .two-sides { grid-template-columns: 1fr; }
}

.side-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
}
.side-card .side-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink-deep);
  font-weight: 700;
  margin-bottom: 0.7em;
}
.side-card p.quote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0;
}

/* ---------------------------------------------------------------------
   Sections, cards, generic layout
--------------------------------------------------------------------- */
section.block {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
section.block.alt { background: var(--paper-alt); }
section.block.border-top { border-top: 1px solid var(--line); }

.stack { display: flex; flex-direction: column; gap: 1.1rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  text-align: center;
  padding: 1.6rem 1rem;
}
.pillar .num {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--pink);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.3em;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Contact form
--------------------------------------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4em;
  color: var(--ink);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75em 0.95em;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--pink);
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}
.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

.contact-form-error {
  color: var(--pink-deep);
  font-size: 0.9rem;
  margin: 0;
}

.placeholder-note {
  border: 1.5px dashed #cbb9c4;
  background: #fdf9fb;
  border-radius: 14px;
  padding: 1.5rem 1.8rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.placeholder-note strong { color: var(--ink); }

/* ---------------------------------------------------------------------
   Myth accordion (Grieving page)
--------------------------------------------------------------------- */
.myth-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.myth-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
}

.myth-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.myth-num {
  flex: none;
  width: 2ch;
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--pink);
  font-size: 1.3rem;
}

.myth-title {
  flex: 1;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.myth-toggle:hover .myth-title { color: var(--pink-deep); }

.myth-icon {
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--pink-deep);
  transition: transform 0.25s ease;
}
.myth-toggle[aria-expanded="true"] .myth-icon { transform: rotate(45deg); }

.myth-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.myth-panel-inner {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.myth-attribution {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

.closing-line {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  color: var(--ink);
  text-align: center;
  max-width: 46ch;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.2rem;
  background: var(--ink);
  color: #f3e9ee;
}
.site-footer a { color: #f3c9de; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cbb6c4;
  margin-bottom: 0.9em;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5em; }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid #3a2f35;
  font-size: 0.85rem;
  color: #b8a4ae;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pink);
  color: #fff;
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus { left: 1em; top: 1em; }
