@font-face {
  font-family: "Viga";
  src: url("/assets/fonts/Viga-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Inclusive Sans";
  src: url("/assets/fonts/InclusiveSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Inclusive Sans";
  src: url("/assets/fonts/InclusiveSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inclusive Sans";
  src: url("/assets/fonts/InclusiveSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fbf6eb;
  --paper-card: #fffef9;
  --ink: #2c3a2a;
  --ink-soft: #5c6b54;
  --leaf: #5fa463;
  --leaf-deep: #3e7a46;
  --leaf-wash: #e7f0e2;
  --sun-soft: #fbebc4;
  --border: #d9dfce;
  --shadow: 0 18px 44px -24px rgba(44, 58, 42, 0.34);
  --display: "Viga", system-ui, sans-serif;
  --body: "Inclusive Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.72;
}

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

a {
  color: var(--leaf-deep);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.14;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: clamp(2.45rem, 7vw, 4.5rem);
}

h2 {
  margin: 2.7rem 0 0.8rem;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1.35rem;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 0;
  background:
    radial-gradient(circle at 88% 18%, var(--sun-soft), transparent 28%),
    radial-gradient(circle at 70% 88%, var(--leaf-wash), transparent 24%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-mark {
  position: relative;
  z-index: 0;
  color: var(--leaf-deep);
  white-space: nowrap;
}

.hero-mark::after {
  position: absolute;
  right: -0.04em;
  bottom: 0.03em;
  left: -0.04em;
  z-index: -1;
  height: 0.3em;
  border-radius: 4px;
  background: var(--sun-soft);
  content: "";
  transform: rotate(-1deg);
}

.hero-path {
  position: relative;
  height: 130px;
  margin-top: 0.75rem;
}

.hero-path svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trail {
  fill: none;
  stroke: #b9cfae;
  stroke-width: 3;
  stroke-dasharray: 1 14;
  stroke-linecap: round;
}

.hero-path img {
  position: absolute;
  top: 25px;
  left: max(1rem, calc((100vw - 1080px) / 2 - 70px));
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid #cfe0c6;
  border-radius: 999px;
  color: var(--leaf-deep);
  background: var(--leaf-wash);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
}

.breadcrumbs {
  padding-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
}

.article-list {
  display: grid;
  gap: 1.35rem;
  width: min(960px, calc(100% - 2rem));
  padding: 0.5rem 0 clamp(4rem, 8vw, 6rem);
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--paper-card);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.article-card:hover {
  border-color: #bdcfb4;
  box-shadow: 0 26px 58px -28px rgba(44, 58, 42, 0.46);
  transform: translateY(-3px);
}

.article-card-link {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.article-card-link:focus-visible {
  outline: 4px solid var(--leaf);
  outline-offset: -4px;
}

.article-card-media {
  display: grid;
  place-items: center;
  padding: clamp(1.15rem, 3vw, 1.75rem);
  background:
    radial-gradient(circle at 22% 18%, rgba(251, 235, 196, 0.24), transparent 25%),
    radial-gradient(circle at 78% 72%, rgba(95, 164, 99, 0.34), transparent 30%),
    #29442e;
}

.article-phone {
  width: min(100%, 160px);
  transition: transform 220ms ease;
}

.article-tablet {
  transform: scale(1.2);
}

.article-card:hover .article-phone {
  transform: translateY(-4px) rotate(1deg);
}

.article-card:hover .article-tablet {
  transform: translateY(-4px) rotate(1deg) scale(1.2);
}

.article-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 4vw, 2rem);
}

.article-card-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.article-card-copy p {
  color: var(--ink-soft);
}

.text-link {
  align-self: flex-start;
  margin-top: 0.35rem;
  color: var(--leaf-deep);
  font-weight: 700;
  text-decoration: underline;
}

.article-header {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 2rem;
}

.article-header .intro {
  max-width: 66ch;
}

.article-header h1 {
  max-width: 24ch;
  font-size: clamp(2.35rem, 4.6vw, 3.55rem);
}

.article-header-sound {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.article-lead-copy {
  min-width: 0;
}

.sound-path {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid #cbd9c3;
  border-radius: 26px 26px 26px 8px;
  background:
    radial-gradient(circle at 90% 8%, rgba(251, 235, 196, 0.9), transparent 30%),
    var(--paper-card);
  box-shadow: var(--shadow);
}

.sound-path::after {
  position: absolute;
  right: -22px;
  bottom: -26px;
  width: 110px;
  height: 110px;
  border: 18px solid rgba(95, 164, 99, 0.12);
  border-radius: 50%;
  content: "";
}

.sound-path-kicker {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--leaf-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sound-path-row {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.38rem;
}

.sound-path-row-names {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sound-path-row-sounds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sound-path-row span {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0.5rem 0.22rem;
  border-radius: 10px;
  font-family: var(--display);
  line-height: 1;
}

.sound-path-row-names span {
  border: 1px dashed #c7c9be;
  color: #797e73;
  background: #f0efe9;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.sound-path-row-sounds span {
  position: relative;
  color: #fffef9;
  background: var(--leaf-deep);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
}

.sound-path-row-sounds span:not(:last-child)::after {
  position: absolute;
  left: calc(100% - 1px);
  z-index: 2;
  width: calc(0.38rem + 2px);
  height: 3px;
  background: var(--leaf);
  content: "";
}

.sound-path-divider {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.65rem 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
}

.sound-path-divider::before,
.sound-path-divider::after {
  flex: 1;
  height: 1px;
  background: var(--border);
  content: "";
}

.sound-path-word {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0.85rem 0 0.2rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.sound-path figcaption {
  position: relative;
  z-index: 1;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.article-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  max-width: 66ch;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.35;
}

.article-details strong {
  color: var(--ink);
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 68ch) minmax(260px, 290px);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  padding-bottom: 5rem;
}

.article-body {
  min-width: 0;
}

.app-view {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.25rem);
  align-items: center;
  overflow: hidden;
  margin: 2.5rem 0;
  padding: clamp(1.2rem, 4vw, 2rem);
  border-radius: 24px;
  color: #fffef9;
  background:
    radial-gradient(circle at 18% 12%, rgba(243, 185, 63, 0.22), transparent 26%),
    radial-gradient(circle at 92% 86%, rgba(95, 164, 99, 0.45), transparent 30%),
    #29442e;
  text-align: left;
}

.app-view .phone {
  z-index: 1;
  width: min(100%, 230px);
  margin-inline: auto;
  box-shadow: 0 28px 58px -24px rgba(0, 0, 0, 0.72);
}

.app-view video {
  aspect-ratio: auto;
}

.app-view video:focus-visible {
  outline: 4px solid #f3b93f;
  outline-offset: 4px;
}

.app-view figcaption {
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  max-width: 48ch;
  margin: 0;
  color: rgba(255, 254, 249, 0.82);
  font-size: 1rem;
}

.app-view figcaption strong {
  color: #fffef9;
  font-family: var(--display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.08;
}

.app-view-kicker {
  color: #c8e4c4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-aside {
  position: sticky;
  top: 6.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--paper-card);
  box-shadow: var(--shadow);
}

.article-aside h2 {
  margin-top: 1.35rem;
}

.growth-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.growth-strip div {
  min-width: 0;
  text-align: center;
}

.growth-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.growth-strip span {
  color: var(--leaf-deep);
  font-size: 0.68rem;
  font-weight: 700;
}

.article-body h2 {
  display: inline;
  background: linear-gradient(transparent 70%, var(--sun-soft) 70%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.article-body h2 + p {
  margin-top: 0.8rem;
}

.article-sources {
  margin-top: 3rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--paper-card);
  font-size: 0.92rem;
}

.article-sources h2 {
  font-size: 1.35rem;
}

.article-sources ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.article-sources p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.article-aside p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  color: #fff;
  background: var(--leaf-deep);
  font-family: var(--display);
  text-align: center;
  text-decoration: none;
}

.more-guides {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.site-footer {
  padding: 2.5rem 0;
  color: #cfdbc8;
  background: var(--ink);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 760px) {
  body {
    font-size: 1rem;
  }

  .hero-grid,
  .article-layout,
  .article-header-sound {
    grid-template-columns: 1fr;
  }

  .article-header-sound {
    gap: 1.4rem;
  }

  .sound-path {
    padding: 1.1rem;
  }

  .hero-path {
    height: 85px;
    margin-top: 0;
  }

  .hero-path img {
    top: 10px;
    left: 0.5rem;
    width: 66px;
    height: 66px;
  }

  .article-list {
    gap: 1rem;
  }

  .article-card-link {
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: stretch;
  }

  .article-card-media {
    padding: 0.65rem;
  }

  .article-phone {
    width: 92px;
  }

  .article-tablet {
    transform: scale(1.12);
  }

  .article-card:hover .article-tablet {
    transform: translateY(-4px) rotate(1deg) scale(1.12);
  }

  .article-card-copy {
    padding: 1rem;
  }

  .article-card-copy h2 {
    margin-bottom: 0.55rem;
    font-size: 1.25rem;
  }

  .article-card-copy p {
    display: none;
  }

  .text-link {
    margin-top: 0;
    font-size: 0.88rem;
  }

  .article-header h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .app-view {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-view .phone {
    width: min(100%, 220px);
  }

  .app-view figcaption {
    margin-inline: auto;
  }

  .article-aside {
    position: static;
    order: -1;
  }
}

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

  .article-card,
  .article-phone {
    transition: none;
  }

}
