@font-face {
  font-family: "Black Mango";
  src: url("/fonts/black-mango-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Black Mango";
  src: url("/fonts/black-mango-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Black Mango";
  src: url("/fonts/black-mango-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sand: #f3efe6;
  --sand-deep: #e4ddd0;
  --ink: #1a2332;
  --navy: #1e3354;
  --navy-deep: #142238;
  --blush: #c9a4a0;
  --blush-deep: #a87d78;
  --paper: #fffcf8;
  --line: color-mix(in srgb, var(--navy) 14%, var(--sand-deep));
  /* Black Mango only for standalone “Bradd” wordmarks — too heavy for body copy */
  --font-brand: "Black Mango", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-reading: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Standalone “Bradd” only — hero wordmark, not Bradd.us / Bradds / BraddCorp */
.wordmark {
  font-family: var(--font-brand);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.92;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

::selection {
  background: color-mix(in srgb, var(--blush) 45%, white);
  color: var(--navy-deep);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
}

.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2048 / 1374;
  object-fit: cover;
  object-position: 50% 22%;
  opacity: 1;
}

.hero__shade {
  display: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  display: flex;
  max-width: 64rem;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.75rem 1.25rem 2rem;
  background: linear-gradient(
    to bottom,
    var(--navy-deep) 0%,
    var(--navy) 55%,
    var(--sand) 100%
  );
}

/* Desktop: full-bleed photo under the copy (wide viewport won't side-crop the family). */
@media (min-width: 640px) {
  .hero {
    min-height: 88vh;
  }

  .hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    opacity: 0.88;
  }

  .hero__shade {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      color-mix(in srgb, var(--navy-deep) 22%, transparent) 0%,
      color-mix(in srgb, var(--navy) 12%, transparent) 38%,
      color-mix(in srgb, var(--navy) 18%, transparent) 62%,
      color-mix(in srgb, var(--navy-deep) 72%, transparent) 82%,
      var(--sand) 100%
    );
  }

  .hero__inner {
    min-height: 88vh;
    justify-content: flex-end;
    padding: 2.5rem 2rem 2.25rem;
    background: none;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blush);
}

.hero h1.wordmark {
  margin: 0;
  font-size: clamp(3.5rem, 11vw, 5.5rem);
}

.lede {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: color-mix(in srgb, var(--paper) 90%, transparent);
}

@media (min-width: 640px) {
  .lede {
    font-size: 1.125rem;
  }
}

.cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cta-pill {
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.cta-pill:hover {
  background: var(--sand);
}

.cta-link {
  color: color-mix(in srgb, var(--paper) 90%, transparent);
  text-decoration: none;
}

.cta-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

main {
  background: var(--sand);
}

.section {
  margin: 0 auto;
  max-width: 64rem;
  padding: 3.5rem 1.25rem;
}

.section--adin {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 55%, var(--sand));
}

.section--family {
  border-top: 1px solid var(--line);
}

.family-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .family-list {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
  }

  .family-list__ruby {
    grid-column: 1 / -1;
  }
}

.family-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1rem 1.15rem 1.1rem;
}

.family-card__face,
.ruby-memorial__face {
  flex-shrink: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sand-deep);
}

.family-card__body,
.ruby-memorial__body {
  min-width: 0;
}

.family-card__n {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--navy) 55%, transparent);
}

.family-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.family-card p:not(.family-card__n) {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

.family-list__ruby {
  padding: 0;
  border: none;
  background: transparent;
}

.ruby-memorial {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--blush) 45%, var(--line));
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--blush) 18%, var(--paper)) 0%,
      var(--paper) 55%
    );
  padding: 1.35rem 1.35rem 1.45rem;
}

.ruby-memorial__face {
  width: 6.25rem;
  height: 6.25rem;
}

.ruby-memorial__label {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blush-deep);
}

.ruby-memorial h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.ruby-memorial__body > p:not(.family-card__n):not(.ruby-memorial__label):not(.ruby-memorial__note) {
  margin: 0.55rem 0 0;
  max-width: 36rem;
  font-family: var(--font-reading);
  font-size: 1.02rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}

.ruby-memorial__links {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.ruby-memorial__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--blush-deep) 55%, transparent);
  padding-bottom: 0.1rem;
}

.ruby-memorial__links a:hover {
  color: var(--navy-deep);
  border-bottom-color: var(--navy);
}

.ruby-memorial__note {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}

@media (min-width: 640px) {
  .section {
    padding: 5rem 2rem;
  }
}

.section__intro {
  max-width: 36rem;
}

.section__intro .eyebrow {
  color: var(--navy);
}

.section h2 {
  margin: 0.5rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}

.section__intro p {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}

.grid {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.25rem;
  text-decoration: none;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--navy) 6%, transparent);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--navy) 30%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--navy) 10%, transparent);
}

.card__logo {
  position: relative;
  height: 5rem;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--sand-deep) 60%, transparent);
}

.card--feature .card__logo {
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.65rem 0.85rem;
}

.card--feature .card__logo img {
  max-height: 8rem;
  padding: 1rem 1.25rem;
}

.card--feature .card__logo--braddcorp,
.card__logo--braddcorp {
  background: #1e3a5f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.braddcorp-mark {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}

.card:hover h3 {
  color: var(--navy-deep);
}

.card p {
  margin: 0.5rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink) 75%, transparent);
}

.card__go {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.next {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.next__inner {
  margin: 0 auto;
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 1.25rem;
}

@media (min-width: 640px) {
  .next__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 3rem 2rem;
  }
}

.next h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.next p {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 75%, transparent);
}

.next strong {
  font-weight: 600;
  color: var(--navy);
}

.next__note {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

footer {
  border-top: 1px solid var(--line);
  background: var(--navy-deep);
  color: color-mix(in srgb, var(--paper) 80%, transparent);
  padding: 2rem 1.25rem;
}

@media (min-width: 640px) {
  footer {
    padding: 2rem;
  }
}

.footer__inner {
  margin: 0 auto;
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__brand {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
}

footer a {
  color: var(--paper);
}

footer a:hover {
  text-decoration: underline;
}

.dot {
  margin: 0 0.5rem;
  color: color-mix(in srgb, var(--paper) 40%, transparent);
}

/* —— Treehouse story —— */
.th-top {
  background: var(--navy-deep);
  color: var(--paper);
}

.th-top__inner {
  margin: 0 auto;
  max-width: 48rem;
  padding: 2rem 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .th-top__inner {
    padding: 2.5rem 2rem 1.75rem;
  }
}

.th-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--paper) 85%, transparent);
  text-decoration: none;
}

.th-back:hover {
  text-decoration: underline;
}

.th-top h1 {
  margin: 0.5rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.th-lede {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--paper) 88%, transparent);
}

.th-hero {
  margin: 0;
}

.th-hero img {
  display: block;
  width: 100%;
  max-height: min(70vh, 36rem);
  object-fit: cover;
  object-position: 50% 40%;
}

.th-main {
  margin: 0 auto;
  max-width: 48rem;
  padding: 2.5rem 1.25rem 4rem;
}

@media (min-width: 640px) {
  .th-main {
    padding: 3rem 2rem 5rem;
  }
}

.th-entry {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.th-entry h2 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.th-entry p,
.th-close p {
  margin: 0 0 0.85rem;
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
}

.th-gallery {
  margin: 1.25rem 0 0.5rem;
}

.th-gallery--multi {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .th-gallery--multi {
    grid-template-columns: 1fr 1fr;
  }
}

.th-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 0.65rem;
  background: var(--sand-deep);
}

.th-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.th-close {
  margin-top: 1rem;
  padding: 2rem 1.25rem;
  border-radius: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.th-close h2 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}
