:root {
  color-scheme: light;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: #201c28;
  background: #f9f8f4;
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #6343b3; outline-offset: 5px; }
.shell { width: min(100% - 48px, 1120px); margin-inline: auto; }

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 23px;
  border-bottom: 1px solid #ded9d1;
}

.brand, .nav-link { text-decoration: none; font-weight: 700; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; }
.nav-link { font-size: 14px; }
.nav-link:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  padding-block: clamp(64px, 10vw, 125px);
}

h1, h2, p, figure { margin: 0; }
h1 { font-size: clamp(45px, 7.1vw, 92px); letter-spacing: -.085em; line-height: 1.12; }
.intro p { max-width: 29em; margin-top: 26px; color: #514858; font-size: 17px; word-break: keep-all; }
.primary {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding: 11px 16px;
  border-radius: 6px;
  background: #272030;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.primary:hover { background: #4a356f; }

.rule {
  padding: clamp(18px, 4vw, 38px);
  border: 1px solid #d3c4ef;
  border-radius: 20px;
  background: #eae1fa;
}
.rule figcaption { margin-bottom: 25px; color: #4c3b65; font-size: 14px; }
.keys { display: flex; align-items: center; gap: clamp(6px, 1.2vw, 12px); color: #5a4778; }
kbd {
  display: grid;
  place-items: center;
  min-width: 2.2em;
  min-height: 2.4em;
  padding-inline: .48em;
  border: 1px solid #b49bd4;
  border-bottom-width: 4px;
  border-radius: 8px;
  background: #fcf9ff;
  color: #251b34;
  font: 700 clamp(16px, 2.2vw, 26px)/1 Consolas, "Courier New", monospace;
}
.result { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.arrow { font-size: 25px; line-height: 1; color: #5a4778; }
.result strong { font-size: clamp(16px, 2.3vw, 23px); letter-spacing: -.04em; }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 68px;
  padding-block: 34px 52px;
  border-top: 1px solid #ded9d1;
}
h2 { font-size: 23px; letter-spacing: -.045em; }
.features p, .download p { margin-top: 8px; color: #514858; word-break: keep-all; }
.download { padding: 24px 26px; border: 1px solid #ded9d1; border-radius: 10px; }
.footer { padding-block: 24px 34px; color: #514858; font-size: 13px; }

@media (max-width: 690px) {
  .shell { width: calc(100% - 36px); }
  .hero, .features { grid-template-columns: 1fr; }
  .hero { gap: 35px; padding-block: 54px; }
  .hero h1 { letter-spacing: -.075em; }
  .keys { gap: 10px; }
  kbd { font-size: clamp(17px, 5vw, 23px); }
}
