@font-face {
  font-family: "LINE Seed KR";
  src: url("./assets/LINESeedKR-Rg.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed KR";
  src: url("./assets/LINESeedKR-Bd.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #FAF8F7;
  --text: #392B26;
  --link: #5C524F;
  --border: #5C524F;
  --social: #E0AA9F;
  --section-highlight: #F0D8D5;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "LINE Seed KR";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

::selection {
  background: #F0D8D5;
  color: #111111;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-shell {
  width: min(calc(100% - 56px), 480px);
  margin: 0 auto;
}

.hero {
  min-height: 222px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero-brand,
.hero-url,
.footer-brand,
.featured-card,
.explore-row--linked,
.service-row--linked {
  text-decoration: none;
}

.hero-actions {
  position: absolute;
  top: 6px;
  left: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.hero-home,
.hero-share {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--social);
  cursor: pointer;
}

.hero-home img,
.hero-share img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.hero-home:hover,
.hero-share:hover,
.social-link:hover {
  background: #F3E7E5;
}

.hero-home:active,
.hero-share:active,
.social-link:active {
  background: #E0AA9F;
}

/* 키보드 Tab 이동 시: 모든 링크와 버튼에 동일한 포커스 표시 */
a:focus-visible,
button:focus-visible {
  outline: 1.5px solid #E0AA9F;
  outline-offset: 4px;
  box-shadow: none;
}

/* 마우스 또는 터치로 클릭한 뒤에는 포커스 테두리를 보이지 않게 함 */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.hero-brand img {
  display: block;
  width: 88px;
  height: 88px;
  margin: 48px auto 0;
  object-fit: contain;
}

.hero-tagline {
  margin: 18px 0 0;
  color: var(--link);
  font-size: 15px;
}

.hero-title {
  margin: 4px 0 26px;
  color: var(--link);
  font-size: 15px;
}

.hero-url {
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
}

.section {
  padding-top: 56px;
}

.section-heading {
  position: relative;
  border-bottom: 1.8px solid var(--border);
}

.section-heading h2 {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0;
  padding: 0 0 5px 0;
  left: 1px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.section-heading h2::after {
  position: absolute;
  right: 2px;
  bottom: 0;
  left: -1px;
  z-index: -1;
  height: 12px;
  background: var(--section-highlight);
  content: "";
}

.service-row,
.explore-row,
.featured-card {
  display: grid;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.service-row {
  position: relative;
  grid-template-columns: 0px minmax(0, 1fr);
  column-gap: 0px;
  align-items: start;
  min-height: 92px;
  padding: 20px 0;
}

.service-number {
  padding-top: 4px;
  color: var(--link);
  font-size: 16px;
  line-height: 1.2;
}

.service-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  grid-column: 2;
}

.service-name-line {
  display: flex;
  max-width: calc(100% - 48px);
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 8px;
  line-height: 1.1;
}

.service-english-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-korean-name {
  color: var(--link);
  font-size: 15px;
  letter-spacing: -0.03em;
}

.service-featured {
  padding: 2px 4px 1px;
  background: var(--section-highlight);
  color: var(--link);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.service-title,
.explore-description,
.featured-story {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.service-description,
.explore-detail,
.featured-description {
  color: var(--link);
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.service-url,
.service-status,
.explore-meta,
.featured-partner {
  color: var(--link);
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.service-url,
.service-status {
  position: absolute;
  top: 22px;
  right: 0;
}

.service-status {
  padding-top: 4px;
  font-size: 11px;
  text-transform: uppercase;
}

.service-row--linked,
.explore-row--linked,
.featured-card {
  transition: color 160ms ease;
}

.service-row--linked:hover,
.explore-row--linked:hover,
.featured-card:hover,
.locale-link:hover,
.hero-url:hover {
  color: var(--link);
}

.explore-row,
.featured-card {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-height: 92px;
  padding: 20px 0;
}

.explore-copy,
.featured-copy  {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.explore-label,
.featured-heading {
  display: block;
  max-width: calc(100% - 48px);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.explore-meta {
  position: absolute;
  top: 23px;
  right: 0;
}

.locale-link {
  color: var(--link);
  text-decoration: none;
  font-size: 14px;
}

.featured-partner {
  position: absolute;
  top: 20px;
  right: 0;
}

.site-footer {
  padding: 60px 0 30px;
}

.footer-brand {
  display: block;
  width: 56px;
}

.footer-brand img {
  display: block;
  width: 56px;
  height: auto;
}

.site-footer p {
  margin: 7px 0 0;
  color: var(--link);
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.site-footer .footer-copyright {
  margin-top: 24px;
  color: var(--link);
  font-size: 13px;
}

.social-list {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--social);
  border-radius: 8px;
}

.social-link svg {
  width: 28px;
  height: 28px;
  fill: none;
}

.noscript-message {
  width: min(calc(100% - 48px), 520px);
  margin: 24px auto;
  padding: 16px;
  border: 1px solid var(--border);
  color: var(--link);
}

@media (min-width: 700px) {
  .site-shell {
    width: min(calc(100% - 48px), 520px);
  }

}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
