:root {
  color-scheme: light;
  --paper: #f5f5eb;
  --ink: #19291e;
  --muted: #515c50;
  --line: #c4caba;
  --accent: #28563a;
  --lime: #d9ec94;
  font-family: system-ui, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.frame { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { text-decoration: none; font-weight: 850; letter-spacing: -.035em; }
.brand span { color: var(--accent); }
nav a { text-underline-offset: 4px; font-size: .88rem; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .55fr); align-items: center; gap: 34px; padding-block: clamp(52px, 8vw, 105px); }
.intro h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.35rem, 10vw, 8rem); font-weight: 500; line-height: .86; letter-spacing: -.082em; }
.intro h1 em { color: var(--accent); font-weight: 400; }
.intro h1 span { color: #506723; }
.intro p { margin: 28px 0 0; color: var(--muted); line-height: 1.75; }

.hero-art { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #a5b775; background: var(--lime); }
.art-grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(#81905544 1px, transparent 1px), linear-gradient(90deg, #81905544 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom right, #000, transparent 96%); }
.key, .key-shadow { width: 42%; aspect-ratio: 1; border: 1px solid var(--ink); border-radius: 16%; transform: rotate(-12deg); }
.key-shadow { position: absolute; z-index: -1; background: #2b4930; translate: 8px 10px; }
.key { display: grid; place-items: center; background: #f7f8e4; font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1; }

.programs { border-top: 1px solid var(--ink); padding-top: 22px; padding-bottom: 64px; }
h2 { margin: 0 0 18px; font-size: 1.2rem; letter-spacing: -.03em; }
.program-list { display: grid; gap: 12px; }
.program { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 24px; border: 1px solid var(--line); background: #fcfcf5; }
.program-icon { width: 50px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #8da16c; border-radius: 12px; background: #e5edcd; font-size: 1.55rem; }
.program h3 { margin: 4px 0; font-size: clamp(1.15rem, 3vw, 1.45rem); letter-spacing: -.04em; }
.program-meta, .program-description, .program-status { margin: 0; color: var(--muted); }
.program-meta { font-size: .78rem; font-weight: 680; }
.program-description { font-size: .9rem; line-height: 1.6; word-break: keep-all; }
.program-actions { display: grid; gap: 8px; justify-items: end; }
.program-status, .download { border-radius: 5px; padding: 9px 12px; font-size: .82rem; font-weight: 700; }
.program-status { background: #eef0e7; }
.download { background: var(--accent); color: white; text-decoration: none; }
.download:hover { background: #173924; }
.release-notes { font-size: .78rem; text-underline-offset: 3px; }
.footer { border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: .8rem; }

@media (max-width: 700px) {
  .intro { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 3 / 1; }
  .key, .key-shadow { width: 20%; }
  .program { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px; }
  .program-actions { grid-column: 2; justify-items: start; }
}

@media (max-width: 360px) {
  .frame { width: calc(100% - 32px); }
  .intro h1 { font-size: 3rem; }
}
