:root {
  --ink: #0F1115;
  --gold: #C9A96E;
  --cream: #F4EFE6;
  --stone: #A8A196;
  --rule: rgba(201, 169, 110, 0.22);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 18vh 24px 48px;
}

.hero {
  text-align: center;
}

.mark {
  display: block;
  margin: 0 auto 36px;
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-indent: 0.32em;
  color: var(--cream);
}

.apps {
  margin-top: 14vh;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.app {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}

.app:hover .app-status,
.app:focus-visible .app-status {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

.app-icon {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

.app-text { display: block; min-width: 0; }

.app-name {
  display: block;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  color: var(--cream);
}

.app-line {
  display: block;
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--stone);
}

.app-status {
  font-size: 14px;
  color: var(--gold);
  white-space: nowrap;
}

.foot {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--stone);
}

.foot p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 420px) {
  main { padding-top: 14vh; }
  .wordmark { font-size: 24px; }
  .app { grid-template-columns: 48px 1fr; gap: 16px; }
  .app-icon { width: 48px; height: 48px; border-radius: 11px; }
  .app-name { font-size: 22px; }
  .app-status { grid-column: 2; font-size: 13px; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .mark { animation: emerge 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .js .bead { animation: spark 1.6s ease-out both; }
  @keyframes emerge {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes spark {
    0%, 55% { opacity: 0; }
    100% { opacity: 1; }
  }
}
