@font-face {
  font-family: "Outfit";
  src: url("assets/Outfit-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/AtkinsonHyperlegibleNext-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sky: #7ee1fe;
  --sky-soft: #c9efff;
  --mint: #e0fff9;
  --green: #7dd94e;
  --green-light: #c1ffa3;
  --pink: #f5afd8;
  --pink-light: #ffd4e9;
  --purple: #d6b9ff;
  --purple-light: #d5d4ff;
  --teal: #005873;
  --teal-strong: #006185;
  --white: #ffffff;
  --ink: #003f52;
  --title-ink: #000000;
  --frog-paper: #f5afd8;
  --paper-mode: color;
  --button-stroke: #56c4e4;
  --button-ink:var(--ink);
  --toggle-ink:var(--mint);
  --card-2: var(--purple-light);
  --card-3: var(--mint);
  --primary-button-fill: #c1ffa3;
  --primary-button-hover: #c1ffa3;
  --ripple-outer: rgba(140, 207, 245, 0.34);
  --ripple-middle: rgba(140, 207, 245, 0.52);
  --ripple-inner: rgba(140, 207, 245, 0.72);
  --step-negative-1: 0.707rem;
  --step-0: 1rem;
  --step-1: 1.414rem;
  --step-2: 2rem;
  --step-3: 2.827rem;
  --step-4: 4rem;
  --step-5: 5.653rem;
  --border: 0.3rem solid var(--purple);
  --shadow: 0.2rem 0.2rem 0 rgba(0, 88, 115, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: var(--step-0);
  line-height: 1.5;
}

.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.wordmark,
.button,
.header-link,
.eyebrow,
.step-number {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: var(--step-1);
  line-height: 1.1;
}

.site-header,
.hero,
.gameplay,
.tip-section,
.final-cta,
footer {
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-switcher {
  align-items: center;
  gap: 0.35rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
}

.language-option {
  padding: 0.15rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  opacity: 0.55;
  text-underline-offset: 0.2rem;
}

.language-option[aria-pressed="true"] {
  text-decoration: underline;
  opacity: 1;
}

.language-option:hover {
  opacity: 1;
}

.language-switcher-header {
  display: none;
}

.language-switcher-footer {
  display: flex;
  justify-content: left;
  width: 100%;
}

:lang(ko) [data-i18n] {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.wordmark {
  font-size: var(--step-1);
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.035em;
}

.header-link {
  font-size: var(--step-0);
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 0.125rem;
}

.theme-toggle {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 3.75rem;
  height: 2rem;
  padding: 0.1875rem;
  border: 0.125rem solid var(--teal);
  border-radius: 999px;
  background: var(--sky-soft);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.theme-toggle:hover .theme-toggle-track {
  background: var(--mint);
}

.theme-toggle:focus-visible {
  outline: 0.1875rem solid var(--ink);
  outline-offset: 0.1875rem;
}

.theme-icon {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 1rem;
  height: 1rem;
  transition: color 200ms ease;
}

.theme-icon-sun {
  color: var(--toggle-ink);
}

.theme-icon-moon {
  color: var(--teal-strong);
}

.theme-toggle-thumb {
  position: absolute;
  inset: 0.1875rem auto auto 0.1875rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 200ms ease;
}

.hero-scene {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0.5rem solid var(--purple);
  background: var(--sky-soft);
}

.scene-art {
  position: relative;
  flex: none;
  aspect-ratio: 63 / 50;
}

.art-pad,
.theme-art,
.paper-frog,
.ripple-group,
.ripple-ring {
  position: absolute;
  display: block;
}

.art-pad {
  aspect-ratio: 1;
}

.theme-art {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.theme-art-dark {
  display: none;
}

.pad-large {
  z-index: 1;
  top: 3%;
  left: 13%;
  width: 42%;
}

.pad-flower-left {
  z-index: 2;
  top: 43%;
  left: -5%;
  width: 24%;
}

.pad-main {
  z-index: 2;
  bottom: 2%;
  left: 20%;
  width: 25%;
}

.pad-flower-small {
  z-index: 2;
  top: 49%;
  left: 50%;
  width: 14%;
}

.paper-frog {
  z-index: 4;
  aspect-ratio: 394 / 421;
  color: var(--frog-paper);
  overflow: visible;
}

.cls-1 {
  fill: #c2c2c2;
}

.cls-2 {
  fill: #424242;
}

.cls-3 {
  fill: #e5e5e5;
}

.cls-4 {
  isolation: isolate;
}

.cls-5 {
  fill: currentColor;
}

.cls-6 {
  mix-blend-mode: var(--paper-mode);
}

.cls-7 {
  fill: #cfcfcf;
}

.cls-8 {
  fill: #b3b3b3;
}

.cls-9 {
  fill: #a9a9a9;
}

.cls-10 {
  clip-path: url(#clippath);
}

.cls-11 {
  fill: #d9d9d9;
}

.cls-12 {
  fill: none;
  stroke: #a9a9a9;
  stroke-miterlimit: 10;
  stroke-width: .9553px;
}

.frog-main {
  bottom: 3%;
  left: 22%;
  width: 21%;
  transform: rotate(-4deg);
}

.ripple-group {
  z-index: 1;
  top: 7%;
  right: 7%;
  width: 25%;
  aspect-ratio: 1;
  display:none;
}

.ripple-ring {
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ripple-ring-outer {
  width: 80%;
  border: 2rem solid var(--ripple-outer);
}

.ripple-ring-middle {
  width: 49%;
  border: 1rem solid var(--ripple-outer);
}

.ripple-ring-inner {
  width: 8%;
  border: 0px solid var(--ripple-outer);
}

.frog-small {
  top: 50%;
  left: 50%;
  width: 37%;
  transform: translate(-50%, -50%) rotate(10deg);
}

.scene-copy {
  position: relative;
  z-index: 5;
  padding: 1.5rem 1.5rem 1.5rem 1.8rem;
  color: var(--ink);
}

.scene-copy h1 {
  max-width: 14ch;
  margin-bottom: 0.75rem;
  font-size: var(--step-1);
  line-height: 1;
}

.scene-copy p {
  max-width: 27ch;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: var(--step-0);
  line-height: 1.35;
}

.scene-copy .hero-actions {
  gap: 0.75rem;
}

.scene-copy .button {
  padding-inline: 1rem;
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: var(--step-0);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.75rem 1.5rem;
  border: 0.375rem solid var(--button-stroke);
  border-radius: 999px;
  font-size: var(--step-0);
  line-height: 1;
  text-decoration: none;
  transform: scale(1);
  transform-origin: center;
  transition: background 150ms ease;
  will-change: transform;
  color:var(--button-ink);
}

.button:hover {
  animation: lily-pad-bounce 680ms cubic-bezier(0.45, 0, 0.55, 1) both;
}

.button:active {
  animation: none;
  transform: scale(1);
}

@keyframes lily-pad-bounce {
  0% {
    transform: scale(1);
  }

  24% {
    transform: scale(0.975);
  }

  56% {
    transform: scale(1.015);
  }

  82% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(0.985);
  }
}

.button.is-returning {
  animation: button-return-bounce 460ms cubic-bezier(0.45, 0, 0.55, 1) both;
}

.button.is-returned {
  animation: none;
  transform: scale(1);
}

@keyframes button-return-bounce {
  0% {
    transform: scale(0.985);
  }

  36% {
    transform: scale(1.025);
  }

  68% {
    transform: scale(0.992);
  }

  100% {
    transform: scale(1);
  }
}

.button-primary {
  background: var(--primary-button-fill);
}

.button-primary:hover {
  background: var(--primary-button-hover);
}

.button-secondary {
  background: var(--mint);
}

.gameplay {
  padding-block: 5rem;
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.steps {
  display: grid;
  gap: 1.25rem;
}

.step-card {
  min-height: 15rem;
  padding: 2rem;
  border: var(--border);
  border-radius: 1rem;
  background: var(--green-light);
  /*box-shadow: var(--shadow);*/
}

.step-card-2 {
  background: var(--card-2);
}

.step-card-3 {
  background: var(--card-3);
}

.step-number {
  display: block;
  margin-bottom: 2rem;
  font-size: var(--step-0);
}

.step-card p {
  margin-bottom: 0;
}

.tip-section {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  padding: 2rem;
  border: var(--border);
  border-radius: 1.5rem;
  background: var(--pink-light);
  /*box-shadow: var(--shadow);*/
}

.tip-lily {
  position: relative;
  display: block;
  aspect-ratio: 1;
  width: min(100%, 22rem);
  margin-inline: auto;
  filter: drop-shadow(0.3rem 0.3rem 0 rgba(0, 0, 0, 0.16));
  transform: rotate(-8deg);
}

.tip-copy p:last-child {
  max-width: 40rem;
  margin-bottom: 0;
  font-size: var(--step-1);
  line-height: 1.4;
}

.final-cta {
  display: grid;
  justify-items: start;
  padding-block: 6rem;
}

.final-cta h2 {
  max-width: 16ch;
}

footer {
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 0.5rem;
  padding-block: 2rem;
  border-top: 0.1875rem solid var(--button-stroke);
}

footer p {
  margin: 0;
}

.social-icon {
  filter: var(--social-icon);
}

:focus-visible {
  outline: 0.25rem solid var(--white);
  outline-offset: 0.25rem;
}

@media (max-width: 47.999rem) {
  .scene-art {
    transform: translateX(20.5%);
  }

  .scene-copy {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }
}

@media (min-width: 48rem) {
  .site-header,
  .hero,
  .gameplay,
  .tip-section,
  .final-cta,
  footer {
    width: min(100% - 4rem, 74rem);
  }

  .wordmark {
    font-size: var(--step-2);
  }

  .language-switcher-header {
    display: flex;
  }

  .language-switcher-footer {
    display: none;
  }

  h1 {
    font-size: var(--step-4);
  }

  h2 {
    font-size: var(--step-3);
  }

  .hero-scene {
    display: block;
    aspect-ratio: 63 / 50;
  }

  .scene-art {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .pad-large {
    top: 3%;
    left: 13%;
    width: 42%;
  }

  .pad-flower-left {
    top: 43%;
    left: -5%;
    width: 24%;
  }

  .pad-main {
    top: auto;
    bottom: 2%;
    left: 20%;
    width: 25%;
  }

  .pad-flower-small {
    top: 49%;
    left: 50%;
    width: 14%;
  }

  .frog-main {
    top: auto;
    bottom: 3%;
    left: 22%;
    width: 21%;
  }

  .ripple-group {
    top: 7%;
    right: 7%;
    width: 25%;
  }

  .scene-copy {
    position: absolute;
    right: 4%;
    bottom: 5%;
    left: auto;
    width: 28%;
    padding: 0;
  }

  .scene-copy h1 {
    margin-bottom: 1rem;
    font-size: var(--step-2);
  }

  .scene-copy p {
    margin-bottom: 1.5rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .tip-section {
    grid-template-columns: minmax(16rem, 0.65fr) minmax(0, 1.35fr);
    padding: 3rem;
  }

  footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 48rem) and (orientation: landscape) {
  .hero {
    width: min(100% - 4rem, 74rem, calc(126svh - 11.34rem));
  }
}

@media (min-width: 72rem) {
  h1 {
    font-size: var(--step-5);
  }

  .hero {
    padding-top: 1.5rem;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --sky: #001018;
  --sky-soft: #001c24;
  --mint: #002b37;
  --mint-dark: #001727;
  --green: #1a725a;
  --green-light: #052a2e;
  --pink: #b3436e;
  --pink-light: #251722;
  --purple: #3d3658;
  --purple-dark:#0c0b18;
  --teal: #0082aa;
  --teal-strong: #006986;
  --white: #f9faff;
  --ink: #006986;
  --title-ink: #45d3ff;
  --button-ink: #45d3ff;
  --toggle-ink: #45d3ff;
  --frog-paper: #bd6b8b;
  --paper-mode: multiply;
  --button-stroke: #003b4d;
  --card-2: var(--purple-dark);
  --card-3: var(--mint-dark);
  --primary-button-fill: #0c5b58;
  --primary-button-hover: #0c5b58;
  --ripple-outer: rgba(0, 105, 134, 0.28);
  --ripple-middle: rgba(0, 130, 170, 0.34);
  --ripple-inner: rgba(69, 211, 255, 0.32);
  --border: 0.1875rem solid #002734;
  --shadow: 0.3rem 0.3rem 0 rgba(0, 0, 0, 0.2);
  --social-icon: brightness(270%);
}

:root[data-theme="dark"] .theme-art-light {
  display: none;
}

:root[data-theme="dark"] .theme-art-dark {
  display: block;
}

:root[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(1.75rem);
}

:root[data-theme="dark"] .theme-icon-sun {
  color: var(--teal-strong);
}

:root[data-theme="dark"] .theme-icon-moon {
  color: var(--toggle-ink);
}

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

  .button {
    animation: none !important;
    transition: none;
  }

  .button:hover {
    transform: scale(0.985);
  }

  .button:active {
    transform: none;
  }

  .theme-toggle-track,
  .theme-icon,
  .theme-toggle-thumb {
    transition: none;
  }
}
