* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Pretendard, "Noto Sans KR", "Noto Sans JP", "Noto Sans Thai", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--green);
  transform: translateY(-150%);
}

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

.site-header,
footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 3rem, var(--content));
  margin: auto;
  padding: 1.4rem 0;
}

.wordmark {
  width: fit-content;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.language-switcher {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
}

.language-switcher select {
  width: 10rem;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #d89c21;
  outline-offset: 4px;
}

.hero {
  display: grid;
  align-content: center;
  min-height: 34rem;
  padding: 7rem max(1.5rem, calc((100% - var(--content)) / 2));
  color: var(--white);
  background: var(--green);
}

.eyebrow,
.section-label {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 35rem;
  margin: 2rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.section,
.philosophy {
  width: min(100% - 3rem, var(--content));
  margin: auto;
  padding: 8rem 0;
}

.section {
  padding-top: 2rem;
}

.section > h2,
.philosophy h2 {
  margin: 0 0 3rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.product-card__heading {
  display: flex;
  min-height: 2rem;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.product-card h3 {
  margin: 0;
  color: var(--green);
  font-size: 1.5rem;
  line-height: 1.3;
}

.badge {
  flex: 0 0 auto;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}

.product-tagline {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-description {
  margin: 1.5rem 0 2.5rem;
}

.product-actions {
  min-height: 2.8rem;
  margin-top: auto;
}

.product-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.product-actions a:hover {
  color: var(--green);
  background: var(--white);
}

.philosophy {
  width: auto;
  max-width: none;
  padding-inline: max(1.5rem, calc((100% - var(--content)) / 2));
  color: var(--white);
  background: var(--green);
}

.philosophy h2 {
  max-width: 30ch;
}

.philosophy > p:last-child {
  max-width: 48rem;
  margin: 0;
  font-size: 1.15rem;
}

footer {
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

@media (max-width: 48rem) {
  .site-header {
    grid-template-columns: 1fr auto;
    row-gap: 1rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 1rem;
  }

  .site-nav a {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
  }

  .language-switcher select {
    width: clamp(7.5rem, 39vw, 9rem);
  }

  .hero {
    min-height: 30rem;
  }

  .section,
  .philosophy {
    padding-block: 5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

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

