:root {
  --navy: #172765;
  --raspberry: #c72e50;
  --raspberry-dark: #8f1e36;
  --cream: #fff4dc;
  --tan: #f3d7a3;
  --green: #b4cc42;
  --blue: #dcefea;
  --gold: #d69b00;
  --charcoal: #282326;
  --shadow: 0 20px 55px rgba(40, 35, 38, 0.16);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--charcoal);
  background: var(--cream);
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 1000;
  background: var(--navy);
  color: white;
  padding: 0.7rem 1rem;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  background: var(--navy);
  color: white;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 72% 100%, 29% 79%, 0 100%);
  padding: 1rem 0 2rem;
}
.site-header.simple {
  clip-path: none;
  padding-bottom: 1rem;
}
.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand {
  font: 400 2rem "DM Serif Display";
  text-decoration: none;
}
.brand span {
  color: var(--gold);
}
.site-header nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.site-header nav a {
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  font-weight: 900;
  border-bottom: 3px solid transparent;
}
.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a[aria-current="page"] {
  border-color: var(--green);
}
.menu-button {
  display: none;
}
main {
  overflow: hidden;
}
.hero {
  min-height: 690px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 5rem max(1rem, calc((100vw - 1180px) / 2)) 7rem;
  background: linear-gradient(
    168deg,
    var(--cream) 0 70%,
    var(--green) 70% 100%
  );
}
.hero-copy {
  z-index: 2;
}
.eyebrow,
.section-kicker,
.project-category {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--raspberry-dark);
}
h1,
h2 {
  font-family: "DM Serif Display";
  line-height: 1.03;
  margin-top: 0;
}
h1 {
  font-size: clamp(4.3rem, 10vw, 7.6rem);
  color: var(--raspberry);
  margin-bottom: 0.5rem;
}
h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin-bottom: 0.8rem;
}
h3 {
  font: 700 1.85rem "Baloo 2";
  line-height: 1.05;
  margin: 0.25rem 0 0.5rem;
  color: var(--navy);
}
.tagline {
  font: 700 clamp(1.45rem, 3vw, 2.2rem) / 1.25 "DM Serif Display";
  color: var(--navy);
  max-width: 650px;
  margin: 0.2rem 0 1rem;
}
.intro {
  font-size: 1.13rem;
  max-width: 650px;
}
.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.button {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.95rem 1.2rem;
  text-decoration: none;
  font-weight: 900;
  border: 2px solid var(--navy);
  box-shadow: 5px 6px 0 rgba(23, 39, 101, 0.2);
  transition: 0.2s;
}
.button:hover {
  transform: translate(-2px, -3px);
}
.primary {
  background: var(--raspberry);
  color: white;
  border-color: var(--raspberry-dark);
}
.secondary {
  background: white;
  color: var(--navy);
}
.hero-art {
  position: relative;
  align-self: end;
  min-height: 560px;
  display: grid;
  place-items: end center;
}
.razz-button {
  border: 0;
  background: transparent;
  padding: 0;
  width: min(100%, 620px);
  cursor: pointer;
  transform-origin: center bottom;
}
.razz-button.greet {
  animation: greet 0.7s ease;
}
@keyframes greet {
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
}
.razz-bubble {
  position: absolute;
  left: 5%;
  bottom: 12%;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--charcoal);
  background: white;
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
}
.razz-bubble.show {
  opacity: 1;
  transform: translateY(0) rotate(-2deg);
}
.sparkle {
  position: absolute;
  color: var(--gold);
  font-size: 2.5rem;
}
.s1 {
  top: 18%;
  left: 9%;
}
.s2 {
  top: 30%;
  right: 5%;
  color: var(--raspberry);
}
.s3 {
  bottom: 25%;
  right: 9%;
}
.project-shell {
  background: var(--raspberry);
  padding: 5rem max(1rem, calc((100vw - 1180px) / 2)) 6rem;
  position: relative;
}
.project-shell:before,
.project-shell:after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--cream);
}
.project-shell:before {
  top: 0;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 15% 40%);
}
.project-shell:after {
  bottom: 0;
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 48% 60%, 0 15%);
}
.inverted {
  color: white;
}
.inverted .section-kicker {
  color: var(--gold);
}
.inverted p {
  max-width: 700px;
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.62fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.feature {
  background: var(--cream);
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.7);
  text-decoration: none;
  overflow: hidden;
  position: relative;
}
.baby-feature {
  grid-row: 1/3;
}
.razz-feature {
  grid-row: 1/3;
}
.shiwada-feature {
  grid-column: 3;
}
.flags-feature {
  grid-column: 3;
}
.feature-media {
  position: relative;
  overflow: hidden;
  background: white;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-media.contain img {
  object-fit: contain;
}
.baby-media {
  height: 520px;
}
.razz-feature .feature-media {
  height: 410px;
  background: var(--blue);
}
.shiwada-feature .feature-media {
  height: 220px;
}
.flags-feature .feature-media {
  height: 185px;
  background: var(--navy);
}
.feature-copy {
  padding: 1.2rem 1.25rem 1.4rem;
}
.feature-copy p {
  margin: 0.4rem 0;
}
.ribbon {
  position: absolute;
  left: 0;
  top: 1rem;
  background: var(--green);
  padding: .45rem 1.35rem .45rem .8rem;
  font-weight: 900;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
}
.ribbon.right {
  left: auto;
  right: 0;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 13% 100%, 0 50%);
}
.text-link {
  font-weight: 900;
  color: var(--raspberry-dark);
}
.status-tag {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: var(--tan);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.about-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 5rem;
  display: grid;
  grid-template-columns: 220px 1fr 290px;
  gap: 2rem;
  align-items: center;
}
.about-portrait {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue);
  border: 10px solid white;
  box-shadow: var(--shadow);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.about-copy p {
  font-size: 1.06rem;
}
.object-cluster {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
}
.object-cluster span {
  display: grid;
  place-items: center;
  border: 4px solid var(--navy);
  box-shadow: 6px 7px 0 rgba(23, 39, 101, 0.15);
  font-weight: 900;
}
.notebook {
  width: 78px;
  height: 110px;
  background: var(--raspberry);
  color: var(--gold);
  transform: rotate(-8deg);
}
.console {
  width: 95px;
  height: 145px;
  border-radius: 18px;
  background: #8ac4cf;
  font-size: 2rem;
}
.pencils {
  width: 75px;
  height: 120px;
  background: var(--tan);
  font-size: 2rem;
  transform: rotate(6deg);
}
.process-section {
  background: var(--blue);
  padding: 4.5rem max(1rem, calc((100vw - 1180px) / 2));
  border-top: 3px solid #78aeb4;
  border-bottom: 3px solid #78aeb4;
}
.centered {
  text-align: center;
}
.tool-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
  margin-top: 2rem;
}
.tool-row div {
  text-align: center;
  border-right: 1px dashed rgba(23, 39, 101, 0.35);
  padding: 0.8rem;
}
.tool-row div:last-child {
  border: 0;
}
.tool-row span {
  display: grid;
  place-items: center;
  height: 52px;
  font: 800 1.5rem "Baloo 2";
  color: var(--navy);
}
.tool-row strong {
  display: block;
  color: var(--navy);
}
.process-note {
  text-align: center;
  font-weight: 900;
  color: var(--raspberry-dark);
}
.latest-section {
  background: var(--navy);
  color: white;
  padding: 2.5rem max(1rem, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
.latest-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--gold);
}
.latest-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.latest-section .section-kicker {
  color: var(--green);
}
.latest-section h2 {
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
}
.latest-button {
  background: var(--cream);
  color: var(--navy);
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 5px 6px 0 var(--green);
}
.directory-cta {
  position: relative;
  padding: 4rem max(1rem, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--cream);
}
.flag-corner {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 230px;
  height: 120px;
  background: var(--navy);
  border-top: 18px solid var(--raspberry);
  clip-path: polygon(0 10%, 100% 35%, 88% 100%, 0 100%);
}
.flag-corner span {
  color: var(--gold);
  font-size: 4rem;
  position: absolute;
  left: 80px;
  top: 28px;
}
.directory-cta > div:not(.flag-corner) {
  margin-left: 190px;
}
.dark {
  background: var(--navy);
  color: white;
}
footer {
  background: var(--navy);
  color: white;
  padding: 2rem max(1rem, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
footer p {
  grid-column: 1/-1;
  text-align: center;
  margin: 0;
}
footer a {
  color: inherit;
}
.directory-page {
  width: min(1000px, calc(100% - 2rem));
  margin: 5rem auto;
}
.directory-intro {
  font-size: 1.3rem;
}
.directory-groups {
  display: grid;
  gap: 1rem;
}
.directory-groups section {
  background: white;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}
.directory-groups section div,
.directory-groups section > a {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
  border-top: 1px solid #ddd;
  text-decoration: none;
}
.directory-groups span {
  background: var(--tan);
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 900;
}
:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }
  .hero-art {
    min-height: 470px;
  }
  .editorial-grid {
    grid-template-columns: 1fr 1fr;
  }
  .baby-feature {
    grid-row: auto;
    grid-column: 1/3;
  }
  .razz-feature {
    grid-row: auto;
  }
  .shiwada-feature,
  .flags-feature {
    grid-column: auto;
  }
  .about-section {
    grid-template-columns: 170px 1fr;
  }
  .object-cluster {
    grid-column: 1/3;
  }
  .tool-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .latest-section {
    grid-template-columns: 110px 1fr;
  }
  .latest-button {
    grid-column: 2;
  }
  .directory-cta {
    grid-template-columns: 1fr;
  }
  .directory-cta > div:not(.flag-corner) {
    margin-left: 0;
  }
  .flag-corner {
    opacity: 0.25;
  }
}
@media (max-width: 650px) {
  .site-header {
    clip-path: none;
    padding-bottom: 1rem;
  }
  .header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .menu-button {
    display: block;
  }
  .site-header nav {
    width: 100%;
    display: none;
  }
  .site-header nav.open {
    display: flex;
  }
  .hero {
    padding-top: 3rem;
  }
  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .baby-feature,
  .razz-feature,
  .shiwada-feature,
  .flags-feature {
    grid-column: auto;
  }
  .baby-media {
    height: 360px;
  }
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-portrait {
    margin: auto;
  }
  .object-cluster {
    grid-column: auto;
  }
  .tool-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .latest-photo {
    margin: auto;
  }
  .latest-button {
    grid-column: auto;
  }
  .directory-cta {
    text-align: center;
  }
  .directory-cta .button {
    justify-content: center;
  }
  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  footer nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
