:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --ink: #18251f;
  --muted: #6e7770;
  --line: #d7dcd4;
  --green: #507965;
  --copper: #c47751;
  --green-soft: #dfe9df;
  --card: #ecf0e9;
}

* { box-sizing: border-box; }
html { min-width: 320px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans CJK SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin-top: 0; }

.page-shell {
  width: min(100% - 96px, 1320px);
  min-height: 100vh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 40px, 540px); }
}

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

.brand { display: inline-flex; align-items: center; gap: 13px; }

.brand-mark { display: block; width: 38px; height: 38px; flex: none; }

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -1.8px;
  line-height: 1;
}

.brand-dot { color: var(--copper); }
.header-note { color: var(--muted); font-size: 12px; letter-spacing: .17em; }

@media (max-width: 760px) {
  .site-header { height: 76px; }
  .brand-name { font-size: 26px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-note { font-size: 10px; letter-spacing: .04em; }
}

@media (max-width: 400px) {
  .header-note { display: none; }
}

.hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.hero-copy { padding-block: 92px 100px; }
.hero h1 {
  margin: 0 0 31px;
  font-size: clamp(62px, 7vw, 112px);
  font-weight: 550;
  letter-spacing: -.09em;
  line-height: 1.14;
}

.hero h1 em { color: var(--green); font-style: normal; }

.hero-description {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.hero-art { width: min(100%, 480px); justify-self: center; }
.hero-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 570px;
}
.hero-launch, .hero-game {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 320 / 570;
  border: 0;
}
.hero-art.wide .hero-launch,
.hero-art.wide .hero-game { width: min(100%, 480px); aspect-ratio: 1; }
.hero-game[hidden] { display: none; }

.hero-launch {
  position: relative;
  overflow: hidden;
  background: #0b202b;
  color: #fff;
  cursor: pointer;
}

.hero-launch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-launch-prompt {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 9px;
  border: 1px solid #a8c8aa;
  border-radius: 999px;
  background: #102d2eeb;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

.hero-launch-play {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #a8c8aa;
}

.hero-launch-play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #102d2e;
}

.hero-launch:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

.hero-game-nav {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
}
.hero-game-nav button {
  width: 40px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: transparent;
  color: var(--green);
  font-size: 17px;
  cursor: pointer;
}
.hero-game-nav button:hover { background: var(--green-soft); }
.hero-game-nav button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.hero-game-position { font-size: 12px; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .hero { min-height: 0; display: block; }
  .hero-copy { padding-block: 84px 25px; }
  .hero h1 { margin: 0 0 24px; font-size: clamp(62px, 13vw, 86px); }
  .hero-description { font-size: 14px; }
  .desktop-break { display: none; }
  .hero-art { margin: 6px auto 58px; }
}

@media (max-width: 400px) {
  .hero-copy { padding-top: 68px; }
  .hero h1 { font-size: 55px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-art { animation: reveal .6s both; }
  .hero-art { animation-delay: .08s; }
}

.apps { padding-block: 74px 100px; }
.section-heading { margin-bottom: 29px; }
.apps h2 { margin-bottom: 0; font-size: 30px; font-weight: 600; letter-spacing: -.055em; }

.app-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr);
  min-height: 300px;
  border: 1px solid var(--line);
  background: var(--card);
}

.app-card-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 37px 48px 34px; }
.app-card h3 { margin-bottom: 0; font-size: clamp(27px, 3vw, 39px); font-weight: 550; letter-spacing: -.065em; }
.app-description { margin: 30px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.app-card-art { position: relative; display: grid; place-items: center; overflow: hidden; border-left: 1px solid var(--line); }
.app-card-art::before {
  position: absolute;
  content: "";
  width: 330px;
  height: 330px;
  border: 1px solid #d3ddd3;
  border-radius: 50%;
  transform: translate(70px, 36px);
}

.ledger-symbol {
  position: relative;
  width: 120px;
  height: 148px;
  border: 2px solid var(--green);
  border-radius: 4px 12px 12px 4px;
  background: #e4ece1;
  transform: rotate(9deg);
  box-shadow: 16px 15px 0 #d1dfd0;
}

.ledger-binding { position: absolute; top: -2px; bottom: -2px; left: 11px; width: 2px; background: var(--green); }
.ledger-line { position: absolute; left: 30px; height: 2px; background: #a2baa6; }
.ledger-line-one { top: 43px; width: 64px; }
.ledger-line-two { top: 67px; width: 46px; }
.ledger-line-three { top: 91px; width: 64px; }
.ledger-accent { position: absolute; bottom: 19px; right: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); }

@media (max-width: 760px) {
  .apps { padding-block: 55px 70px; }
  .app-card { grid-template-columns: 1fr; }
  .app-card-content { min-height: 250px; padding: 28px; }
  .app-description { margin-top: 22px; }
  .app-card-art { min-height: 210px; border-left: 0; border-top: 1px solid var(--line); }
  .ledger-symbol { transform: rotate(9deg) scale(.78); }
}

@media (prefers-reduced-motion: no-preference) {
  .app-card { animation: reveal .6s .14s both; }
}

.site-footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #89948b;
  font-size: 12px;
}

@media (max-width: 760px) {
  .site-footer { min-height: 85px; font-size: 10px; }
}

@media (max-width: 400px) {
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
}
