:root {
  color-scheme: dark;
  --ink: #14170f;
  --moss: #243024;
  --paper: #f3efe4;
  --sand: #e7d7b1;
  --muted: #b7b1a3;
  --line: rgba(231, 215, 177, 0.28);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(231, 215, 177, 0.16), transparent 60%),
    var(--ink);
  color: var(--paper);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

main {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(280px, 520px);
  gap: 48px;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
}

.frame { text-align: center; }

.screen {
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 28px;
  background: var(--moss);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.screen img,
.placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.screen img { object-fit: cover; }

.placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(231, 215, 177, 0.2), transparent 42%),
    var(--moss);
  color: var(--sand);
  letter-spacing: 0.08em;
}

.badge {
  display: inline-block;
  margin: 16px 0 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sand);
  font-size: 13px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--sand);
  letter-spacing: 0.14em;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, "Songti SC", serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
}

.lead, .status, .hash, ol {
  color: var(--muted);
  line-height: 1.6;
}

.scene {
  min-height: 1.4em;
  margin: 8px 0;
  color: var(--paper);
  font-size: 20px;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 8px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.hash {
  font-size: 12px;
  word-break: break-all;
}

.themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}

.themes button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: inherit;
}

.themes button[aria-pressed="true"] {
  background: var(--sand);
  color: var(--ink);
  border-color: var(--sand);
}

ol {
  margin: 28px 0 0;
  padding-left: 18px;
}

li + li { margin-top: 8px; }

@media (max-width: 800px) {
  main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
  }

  h1 { font-size: 48px; }

  .screen { width: min(100%, 280px); }
}
