:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: #202123;
  background: #f6f6f5;
  --ink: #202123;
  --soft-ink: #55575b;
  --line: #dcdcd9;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; object-fit: cover; }
h1, h2, h3, p, figure, ol { margin: 0; }

.wrap { width: min(calc(100% - 5rem), var(--wrap)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  z-index: 1;
  inset: .75rem auto auto .75rem;
  padding: .65rem 1rem;
  background: #fff;
}

:focus-visible { outline: 2px solid #456686; outline-offset: 4px; }

.header {
  min-height: 5.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.05em;
  text-decoration: none;
}

.brand img { border-radius: .6rem; }
.header nav { display: flex; align-items: center; gap: clamp(.9rem, 4vw, 2rem); }
.header nav a, .footer a {
  padding-block: .75rem;
  font-size: .9375rem;
  color: var(--soft-ink);
  text-decoration: none;
}

.header nav a:hover, .footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .22em; }

.hero {
  min-height: 40rem;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding-block: clamp(3.8rem, 7vw, 6rem);
}

.kicker {
  margin-bottom: 1.4rem;
  color: var(--soft-ink);
  font-size: .9375rem;
  font-weight: 700;
}

h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }
.hero h1 {
  font-size: clamp(2.5rem, 4.35vw, 4.3rem);
  line-height: 1.16;
  letter-spacing: -.075em;
  font-weight: 800;
}

.hero h1 span { display: block; color: #606368; }
.lede, .section-copy p, .features p, .release-panel p {
  color: var(--soft-ink);
  font-size: 1.06rem;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.lede { max-width: 26rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 1.9rem;
  padding: .7rem 1.15rem;
  border-radius: .7rem;
  background: #252629;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: #414348; }

.preview {
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 2.35rem);
  border: 1px solid #2d2f33;
  border-radius: 1.5rem;
  background: radial-gradient(ellipse at 86% -5%, #4a4d53, #2a2c30 70%);
  color: #f4f4f4;
}

.preview figcaption { margin-bottom: .9rem; color: #d9dadc; font-size: .875rem; font-weight: 650; }
.chat {
  overflow: hidden;
  border: 1px solid #dbdbdd;
  border-radius: 1rem;
  background: #f3f3f3;
  color: var(--ink);
  box-shadow: 0 1.1rem 2.4rem #09090a40;
}

.chat-heading {
  display: flex;
  min-height: 4.1rem;
  align-items: center;
  gap: .65rem;
  padding-inline: 1rem;
  border-bottom: 1px solid #dededf;
  background: #fff;
}

.avatar-pair { display: flex; align-items: center; }
.avatar-pair img {
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #dadbdd;
}

.avatar-pair img + img { margin-left: -.6rem; }
.messages {
  display: grid;
  gap: .95rem;
  padding: 1.35rem 1rem 1.45rem;
  list-style: none;
}

.message { min-width: 0; display: flex; align-items: flex-start; gap: .48rem; }
.message.friend img { flex: none; border-radius: 50%; background: #dadbdd; }
.message.friend div { max-width: min(17rem, calc(100% - 2.5rem)); }
.message.friend span { display: block; margin: 0 0 .26rem .12rem; color: var(--soft-ink); font-size: .875rem; }
.message p {
  padding: .58rem .73rem;
  border-radius: .85rem;
  font-size: .9375rem;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.message.friend p { border: 1px solid #e0e0e1; border-top-left-radius: .34rem; background: #fff; }
.message.own { justify-content: flex-end; }
.message.own p { max-width: 85%; border-top-right-radius: .34rem; background: #383b40; color: #fff; }

.about {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding-block: clamp(3.8rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.about h2, .release h2 { font-size: clamp(2rem, 3.4vw, 3.05rem); line-height: 1.2; letter-spacing: -.06em; }
.section-copy p { margin-top: 1.1rem; max-width: 23rem; }
.features article { padding-bottom: 1.4rem; }
.features article + article { padding: 1.4rem 0 0; border-top: 1px solid var(--line); }
.features h3 { margin-bottom: .55rem; font-size: 1.28rem; letter-spacing: -.035em; }

.release { margin-bottom: clamp(3rem, 6vw, 5rem); }
.release-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.7rem, 5vw, 3.5rem);
  border-radius: 1.25rem;
  background: #303236;
  color: #fff;
}

.release-panel p { margin-top: .8rem; color: #e0e1e2; }
.release-panel img { flex: none; border-radius: 1.3rem; }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .9rem;
  border-top: 1px solid var(--line);
  color: var(--soft-ink);
}

.footer span { color: var(--ink); font-weight: 750; }

@media (max-width: 54rem) {
  .wrap { width: min(calc(100% - 3rem), 40rem); }
  .hero, .about { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero h1 { font-size: clamp(2.5rem, 8.4vw, 4rem); }
}

@media (max-width: 26rem) {
  .wrap { width: calc(100% - 2rem); }
  .header { min-height: 4.2rem; }
  .release-panel img { display: none; }
  .messages { padding-inline: .75rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
