/* wahe.world — the apps page. One sheet, no web fonts (no third-party request),
   light by default and dark when the device asks. Sizes are rem so the page
   follows the reader's own font size. */
:root {
  --bg: #f7f4ec;
  --card: #fffdf8;
  --line: #e4dccb;
  --ink: #24221f;
  --muted: #615c52;
  --gold: #87560f;
  --gold-soft: #c8a24a;
  --wash: #f1eadb;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14131b;
    --card: #1c1b25;
    --line: #2f2d3a;
    --ink: #eeeae0;
    --muted: #aaa497;
    --gold: #e2b65c;
    --gold-soft: #b8913f;
    --wash: #201e29;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
}
a { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1rem; }

.head { padding: 3.5rem 0 1.5rem; }
.mark { display: block; width: 2.75rem; height: 2.75rem; }
.word {
  margin: 1rem 0 0;
  font: 400 clamp(2.5rem, 7vw, 3.5rem)/1.05 var(--serif);
  letter-spacing: 0.08em;
}
.tag {
  margin: 0.5rem 0 0;
  font: 400 1.25rem/1.4 var(--serif);
  color: var(--gold);
}
.intro { margin: 0.75rem 0 0; color: var(--muted); max-width: 34rem; }

.moved {
  margin: 1rem 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-soft);
  border-radius: 0.75rem;
}
.moved p { margin: 0; }
.moved-go {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}
.moved-go:hover { text-decoration: underline; }

.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}
.app {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.app:hover { border-color: var(--gold-soft); transform: translateY(-1px); }
.app--soon { opacity: 0.7; }
.app--soon:hover { transform: none; border-color: var(--line); }
.app-icon {
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  object-fit: cover;
}
.app-body { min-width: 0; }
.app-name { margin: 0; font: 600 1.25rem/1.3 var(--serif); }
.app-go { color: var(--ink); text-decoration: none; }
/* One app is one destination: the whole card is the tap target. */
a.app-go::after { content: ""; position: absolute; inset: 0; border-radius: 1rem; }
.app-line { margin: 0.375rem 0 0; }
.app-meta { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted); }
.app-host { display: block; color: var(--gold); font-weight: 600; }
.app-soon { display: block; font-weight: 600; }

.foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.foot p { margin: 0.25rem 0; }

@media (prefers-reduced-motion: reduce) {
  .app { transition: none; }
  .app:hover { transform: none; }
}
