/* ==========================================================================
   Bond Theory — shared stylesheet
   Palette: warm blush paper, plum-brown ink, dusty rose accent
   Type: Fraunces (display) + Karla (body / utility)
   ========================================================================== */

:root {
  --paper:      #FBF6F3;
  --paper-deep: #F3E6E0;
  --panel:      #FFFFFF;
  --ink:        #2E2126;
  --ink-soft:   #6B5B60;
  --rose:       #C0697A;
  --rose-deep:  #9E4E5F;
  --taupe:      #B9A79E;
  --line:       #E6D6CF;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1080px;
  --narrow: 700px;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.4rem + 4vw, 4rem);
}

/* --- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 40;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1.15em; }
a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

/* --- layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: var(--narrow); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 1.1em;
}

.section { padding: 88px 0; }
.section + .section { padding-top: 0; }
.section__head { max-width: 34ch; margin-bottom: 44px; }
.section__head h2 { font-size: var(--step-3); }
.section__head p { color: var(--ink-soft); margin-bottom: 0; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- masthead ----------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 20;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 26px; height: 16px; flex: none; }
.navlinks { display: flex; align-items: center; gap: 26px; }
.navlinks a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.navlinks a:hover { color: var(--rose-deep); }

/* --- hero (signature: two overlapping bonds) ---------------------------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero__inner { position: relative; z-index: 2; }
.hero h1 { font-size: var(--step-4); max-width: 15ch; }
.hero__lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 28px;
}

.bonds {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  display: grid; place-items: center;
  opacity: 0.9;
}
.bonds span {
  position: absolute;
  width: clamp(260px, 34vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(2px);
}
.bonds span:nth-child(1) {
  background: radial-gradient(circle at 35% 35%, #F7DCD6, #EFC9C6);
  right: 16%; top: 8%;
  animation: drift-a 18s ease-in-out infinite;
}
.bonds span:nth-child(2) {
  background: radial-gradient(circle at 65% 60%, #F6E4D2, #E9CDBE);
  right: 3%; top: 30%;
  animation: drift-b 22s ease-in-out infinite;
}
@keyframes drift-a {
  0%, 100% { transform: translate3d(0,0,0); }
  50%      { transform: translate3d(-14px, 16px, 0); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0,0,0); }
  50%      { transform: translate3d(12px, -18px, 0); }
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--rose-deep); color: var(--paper); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--rose); color: var(--rose-deep); }
.btnrow { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* --- cards -------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.5em; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 1rem; }
.card__tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--taupe);
  display: block; margin-bottom: 14px;
}

/* --- principles list ---------------------------------------------------- */
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principles li {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.principles h3 { font-size: var(--step-1); margin: 0; }
.principles p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* --- panel / callout ---------------------------------------------------- */
.panel {
  background: var(--paper-deep);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
}
.panel h2 { font-size: var(--step-3); }
.panel p { color: var(--ink-soft); max-width: 44ch; margin-inline: auto; }

/* --- faq ---------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: var(--step-1);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 20;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--body);
  color: var(--rose);
  font-size: 1.4rem;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; color: var(--ink-soft); max-width: 62ch; }

/* --- legal pages -------------------------------------------------------- */
.pagehead { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.pagehead h1 { font-size: var(--step-3); margin-bottom: 0.3em; }
.pagehead .meta { color: var(--taupe); font-size: 0.9rem; margin: 0; }

.legal { padding: 48px 0 96px; }
.legal h2 {
  font-size: var(--step-2);
  margin-top: 2.2em;
}
.legal h2:first-of-type { margin-top: 0.6em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.8em; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; margin: 0 0 1.15em; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }

.infobox {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rose);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 32px 0;
}
.infobox p:last-child { margin-bottom: 0; }

/* --- contact ------------------------------------------------------------ */
.contactgrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.deflist { margin: 0; }
.deflist dt {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--taupe); margin-top: 22px;
}
.deflist dt:first-child { margin-top: 0; }
.deflist dd { margin: 6px 0 0; color: var(--ink); }

/* --- footer ------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--paper-deep);
  padding: 64px 0 40px;
  margin-top: 40px;
}
.footer a { color: var(--paper-deep); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.footer .brand { color: var(--paper); }
.footer__blurb { color: var(--taupe); max-width: 42ch; margin: 18px 0 0; font-size: 0.95rem; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.footer__legal {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: var(--taupe);
  font-size: 0.85rem;
}
.footer__legal p { margin: 0 0 8px; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .grid--3, .grid--2, .contactgrid, .footer__top { grid-template-columns: 1fr; }
  .principles li { grid-template-columns: 1fr; gap: 8px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .panel { padding: 40px 24px; }
  .bonds { opacity: 0.55; }
  .bonds span:nth-child(1) { right: -12%; top: -4%; }
  .bonds span:nth-child(2) { right: -22%; top: 22%; }
}
@media (max-width: 560px) {
  .navlinks { gap: 16px; }
  .navlinks a.is-hideable { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bonds span { animation: none; }
  .btn { transition: none; }
}
