:root {
  --v2-ink: #30262d;
  --v2-ink-deep: #231a20;
  --v2-paper: #fffdf9;
  --v2-cream: #f7f1e9;
  --v2-coral: #e65d60;
  --v2-coral-dark: #c94750;
  --v2-coral-soft: #d98f8e;
  --v2-line: #e1d7cf;
  --v2-line-soft: #eee6df;
  --v2-white: #ffffff;
  --v2-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --v2-sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.family-v2 {
  min-width: 320px;
  margin: 0;
  background: var(--v2-paper);
  color: var(--v2-ink);
  font-family: var(--v2-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.family-v2 ::selection {
  color: var(--v2-ink-deep);
  background: rgba(230, 93, 96, 0.22);
}

.family-v2 a,
.family-v2 a:visited {
  color: var(--v2-coral-dark);
}

.family-v2 a:focus-visible {
  outline: 3px solid rgba(230, 93, 96, 0.34);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 9px 14px;
  color: var(--v2-white) !important;
  background: var(--v2-ink-deep);
  border-radius: 3px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Centered primary navigation */

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 253, 249, 0.98);
  border-top: 4px solid var(--v2-coral);
  border-bottom: 1px solid var(--v2-line);
}

.header-inner {
  display: flex;
  justify-content: center;
  width: min(100% - 40px, 1160px);
  min-height: 78px;
  margin: 0 auto;
}

#nav-wrap {
  display: flex;
  align-items: center;
}

#nav-wrap ul,
#nav-wrap li {
  margin: 0;
  padding: 0;
}

ul#nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 74px;
  list-style: none;
}

ul#nav li {
  list-style: none;
}

ul#nav li a,
ul#nav li a:visited {
  display: block;
  position: relative;
  padding: 10px 12px;
  color: var(--v2-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

ul#nav li a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  background: var(--v2-coral);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

ul#nav li a:hover,
ul#nav li a:focus-visible {
  color: var(--v2-coral-dark);
}

ul#nav li a:hover::after {
  transform: scaleX(1);
}

/* Page introduction */

.family-masthead {
  color: var(--v2-white);
  background: var(--v2-ink-deep);
}

.family-masthead-inner {
  width: min(100% - 80px, 1120px);
  margin: 0 auto;
  padding: 72px 0 68px;
}

.page-kicker {
  margin: 0 0 17px;
  color: var(--v2-coral);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.masthead-copy h1 {
  max-width: 1050px;
  margin: 0;
  color: var(--v2-white);
  font-family: var(--v2-serif);
  font-size: clamp(52px, 5.1vw, 68px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

/* Alternating family stories */

.content-outer {
  background: var(--v2-paper);
}

#page-content {
  width: min(100% - 80px, 1120px);
  margin: 0 auto;
  padding: 42px 0 112px;
}

.family-story {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 68px;
  align-items: center;
  padding: 58px 0 64px;
  border-bottom: 1px solid var(--v2-line-soft);
}

.family-story:last-child {
  border-bottom: 0;
}

.story-photo {
  margin: 0;
  overflow: hidden;
  background: var(--v2-cream);
  border: 1px solid var(--v2-line);
  border-radius: 2px;
  box-shadow: 0 20px 45px rgba(55, 40, 47, 0.09);
}

.story-photo-square {
  aspect-ratio: 1;
}

.story-photo-landscape {
  aspect-ratio: 5 / 4;
}

.story-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy {
  position: relative;
  padding-left: 28px;
}

.story-copy::before {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 0;
  width: 3px;
  background: var(--v2-coral-soft);
}

.story-text {
  margin: 0;
  color: var(--v2-ink-deep);
  font-family: var(--v2-serif);
  font-size: clamp(29px, 2.8vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.story-cheer {
  margin: 23px 0 0;
  color: var(--v2-coral-dark);
  font-family: var(--v2-serif);
  font-size: clamp(24px, 2.2vw, 31px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
}

.family-story:nth-child(even) .story-photo {
  grid-column: 2;
  grid-row: 1;
}

.family-story:nth-child(even) .story-copy {
  grid-column: 1;
  grid-row: 1;
}

.site-footer {
  padding: 25px 30px 29px;
  color: #81767b;
  background: var(--v2-cream);
  border-top: 1px solid var(--v2-line);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

@media only screen and (max-width: 900px) {
  .family-masthead-inner,
  #page-content {
    width: min(100% - 60px, 760px);
  }

  .family-story {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 43px;
  }

  .story-copy {
    padding-left: 23px;
  }

  .story-text {
    font-size: 29px;
  }
}

@media only screen and (max-width: 720px) {
  .header-inner {
    width: calc(100% - 20px);
    min-height: 69px;
  }

  ul#nav {
    gap: 0;
    min-height: 65px;
  }

  ul#nav li a,
  ul#nav li a:visited {
    padding: 10px 8px;
    font-size: 12.5px;
    letter-spacing: 0.045em;
  }

  ul#nav li a::after {
    right: 8px;
    left: 8px;
  }

  .family-masthead-inner {
    width: min(100% - 48px, 600px);
    padding: 57px 0 52px;
  }

  .masthead-copy h1 {
    font-size: clamp(43px, 12vw, 58px);
    line-height: 0.96;
  }

  #page-content {
    width: min(100% - 48px, 600px);
    padding: 24px 0 82px;
  }

  .family-story,
  .family-story:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 29px;
    padding: 42px 0 48px;
  }

  .family-story .story-photo,
  .family-story:nth-child(even) .story-photo {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }

  .family-story .story-copy,
  .family-story:nth-child(even) .story-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .story-copy {
    padding-left: 21px;
  }

  .story-text {
    font-size: 29px;
  }

  .story-cheer {
    margin-top: 17px;
    font-size: 25px;
  }
}

@media only screen and (max-width: 460px) {
  .header-inner {
    width: calc(100% - 12px);
  }

  ul#nav li a,
  ul#nav li a:visited {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 11.5px;
    letter-spacing: 0.015em;
  }

  ul#nav li a::after {
    right: 5px;
    left: 5px;
  }

  .family-masthead-inner,
  #page-content {
    width: calc(100% - 36px);
  }

  .masthead-copy h1 {
    font-size: clamp(40px, 11.5vw, 50px);
  }

  .family-story {
    padding-top: 36px;
  }

  .story-text {
    font-size: 27px;
  }
}

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

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