:root {
  --green: #49CE55;
  --dark-green: #1F5B2B;
  --charcoal: #332C2A;
  --cream: #FFF9E8;
  --mint: #E9FFE9;
  --yellow: #F3D64E;
  --white: #FFFFFF;
  --content-width: 76rem;
  --text-width: 42rem;
  --shadow: 0 1.25rem 3rem rgba(31, 91, 43, 0.13);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  min-width: 20rem;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--charcoal);
  background: var(--cream);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--dark-green);
  text-decoration-line: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.2em;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 0.2rem solid var(--charcoal);
  outline-offset: 0.25rem;
  box-shadow: 0 0 0 0.4rem var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0.03em;
}

h1 {
  margin-bottom: 1rem;
  color: var(--dark-green);
  font-size: clamp(2.8rem, 6vw, 5.35rem);
  font-weight: 900;
  letter-spacing: 0.06em;
}

h2 {
  margin-bottom: 1.5rem;
  color: var(--dark-green);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--cream);
  background: var(--charcoal);
  border-radius: 0.5rem;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: relative;
  z-index: 10;
  background: var(--cream);
  border-bottom: 0.2rem solid var(--dark-green);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--content-width));
  min-height: 5.5rem;
  margin-inline: auto;
  gap: 1.5rem;
}

.site-brand {
  display: inline-flex;
  flex: 0 1 auto;
  flex-direction: column;
  color: var(--charcoal);
  line-height: 1.25;
  text-decoration: none;
}

.site-brand__name {
  color: var(--dark-green);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.site-brand__role {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  min-width: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
  gap: 0.35rem 1rem;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.1rem;
  color: var(--charcoal);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration-color: rgba(51, 44, 42, 0.38);
}

.hero {
  display: grid;
  min-height: clamp(36rem, 56.25vw, 62rem);
  background-color: var(--cream);
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 249, 232, 0.98) 0%,
      rgba(255, 249, 232, 0.9) 34%,
      rgba(255, 249, 232, 0.3) 52%,
      rgba(255, 249, 232, 0) 64%
    ),
    url("./assets/character/assistant-chan-lab-hero-v1.png");
  background-position: center top;
  background-size: cover;
  border-bottom: 0.35rem solid var(--green);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  align-items: center;
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
}

.hero__content {
  position: relative;
  z-index: 1;
  grid-column: 1;
  max-width: 39rem;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(0rem, 2vw, 2rem) clamp(3rem, 7vw, 6.5rem) 0;
}

.hero__eyebrow,
.section-heading__number,
.status-card__label {
  margin-bottom: 0.6rem;
  color: var(--dark-green);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__catchcopy {
  margin-bottom: 1.1rem;
  color: var(--charcoal);
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.hero__introduction {
  max-width: 36rem;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 600;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.4rem;
  color: var(--cream);
  background: var(--dark-green);
  border: 0.15rem solid var(--dark-green);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0.45rem 0 var(--green);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.primary-link:hover {
  color: var(--charcoal);
  background: var(--yellow);
  transform: translateY(0.15rem);
  box-shadow: 0 0.25rem 0 var(--green);
}

.hero__mobile-art {
  display: none;
}

.content-sections {
  max-width: 100%;
}

.content-section {
  scroll-margin-top: 1rem;
}

.content-section__inner {
  width: min(100% - 2rem, var(--content-width));
  padding-block: clamp(4.5rem, 9vw, 8rem);
  margin-inline: auto;
}

.content-section--cream {
  background: var(--cream);
}

.content-section--mint {
  background: var(--mint);
}

.content-section--dark {
  color: var(--cream);
  background: var(--dark-green);
}

.content-section--dark h2,
.content-section--dark h3,
.content-section--dark .section-heading__number {
  color: var(--cream);
}

.content-section--dark .section-heading__number {
  color: var(--yellow);
}

.section-heading {
  max-width: var(--text-width);
  margin-bottom: 2rem;
}

.section-heading__number {
  margin-bottom: 0.4rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.8fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.section-grid > div {
  max-width: var(--text-width);
}

.section-lead {
  margin-bottom: 1.1rem;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 800;
  line-height: 1.7;
}

.note-card,
.status-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--white);
  border: 0.15rem solid var(--dark-green);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
}

.note-card--light {
  background: rgba(255, 255, 255, 0.78);
}

.note-card--dark {
  color: var(--cream);
  background: var(--charcoal);
  border-color: var(--green);
  box-shadow: none;
}

.note-card--dark h3 {
  color: var(--yellow);
}

.profile-list {
  margin: 1rem 0 0;
}

.profile-list dt {
  color: var(--dark-green);
  font-weight: 900;
}

.profile-list dt:not(:first-child) {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--green);
}

.profile-list dd {
  margin: 0.25rem 0 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
  gap: 1.2rem;
}

.status-card__label {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  color: var(--charcoal);
  background: var(--yellow);
  border-radius: 999px;
}

.site-footer {
  color: var(--cream);
  background: var(--charcoal);
  border-top: 0.35rem solid var(--green);
}

.site-footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: min(100% - 2rem, var(--content-width));
  padding-block: 2.5rem;
  margin-inline: auto;
  gap: 2rem;
}

.site-footer p {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.site-footer__name {
  color: var(--yellow);
  font-size: 1.2rem;
  font-weight: 900;
}

.site-footer a {
  color: var(--cream);
  text-decoration-color: var(--yellow);
}

.site-footer__meta {
  flex: 0 0 auto;
  text-align: right;
}

@media (min-width: 52.01rem) {
  #hero-title {
    white-space: nowrap;
  }
}

@media (max-width: 64rem) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .site-nav ul {
    justify-content: flex-start;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
  }
}

@media (max-width: 52rem) {
  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.8rem;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    min-height: auto;
    background-color: var(--mint);
    background-image: none;
    border-bottom-width: 0.25rem;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    width: min(100% - 2rem, 42rem);
  }

  .hero__content {
    order: 1;
    width: 100%;
    max-width: none;
    padding: clamp(2.8rem, 9vw, 4.5rem) 0 1.5rem;
  }

  .hero__desktop-description {
    display: none;
  }

  .hero__mobile-art {
    display: grid;
    order: 2;
    width: 100%;
    min-height: 22rem;
    max-height: 39rem;
    margin: 0;
    overflow: hidden;
    place-items: end center;
  }

  .hero__mobile-art img {
    width: min(84vw, 25rem);
    max-height: 39rem;
    object-fit: contain;
    object-position: center top;
  }

  .section-grid,
  .status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-card {
    max-width: 34rem;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__meta {
    text-align: left;
  }
}

@media (max-width: 32rem) {
  body {
    font-size: 0.97rem;
  }

  .site-header__inner,
  .hero__inner,
  .content-section__inner,
  .site-footer__inner {
    width: min(100% - 1.25rem, var(--content-width));
  }

  .site-nav li:last-child {
    grid-column: 1 / -1;
  }

  .hero__catchcopy {
    letter-spacing: 0.02em;
  }

  .hero__mobile-art {
    min-height: 19rem;
    max-height: 34rem;
  }

  .hero__mobile-art img {
    width: min(92vw, 22rem);
    max-height: 34rem;
  }

  .content-section__inner {
    padding-block: 4rem;
  }

  .note-card,
  .status-card {
    padding: 1.25rem;
    border-radius: 0.9rem;
  }
}

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

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