:root {
  --paper: #f3eee7;
  --ink: #1f1b17;
  --soft: #6f665d;
  --tile: #fffdf9;
  --rule: #e2d9cd;
  --clay: #b0563d;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink);
  font: 400 15.5px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.sheet {
  width: min(100%, 440px); margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px max(48px, env(safe-area-inset-bottom));
}
.intro { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; }
.portrait {
  width: 92px; height: 92px; border-radius: 24px; object-fit: cover; margin-bottom: 12px;
  border: 1px solid var(--rule); box-shadow: 0 14px 34px -18px rgba(60, 40, 20, .55);
}
.mono {
  display: flex; align-items: center; justify-content: center; background: #e7ddd0;
  font: 500 34px/1 ui-serif, "New York", Georgia, serif; color: var(--soft);
}
.who { margin: 0; font: 600 26px/1.15 ui-serif, "New York", Georgia, "Times New Roman", serif; letter-spacing: -.015em; }
.about { margin: 8px 0 0; max-width: 32ch; color: var(--soft); white-space: pre-line; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.none { text-align: center; color: var(--soft); }
.tile {
  position: relative; display: flex; align-items: center; gap: 14px;
  color: var(--ink); text-decoration: none; background: var(--tile);
  border: 1px solid var(--rule); border-radius: 14px; padding: 13px 16px;
  -webkit-tap-highlight-color: transparent; transition: border-color .15s, transform .15s;
}
.tile:active { transform: translateY(1px); }
@media (hover: hover) { .tile:hover { border-color: var(--ink); } }
.cap { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cap b { font-weight: 600; font-size: 16.5px; }
.cap small { color: var(--soft); font-size: 13.5px; }
.glyph { width: 22px; height: 22px; flex: none; color: var(--ink); --card: var(--tile); }
.arrow { color: var(--soft); font-size: 18px; }
.age {
  font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--clay); border: 1.5px solid var(--clay); border-radius: 6px; padding: 2px 6px;
}
.tile--photo { flex-direction: column; align-items: stretch; padding: 7px 7px 12px; gap: 10px; }
/* 3:2 so the whole page (photo card + the links below) fits on one iPhone screen */
.tile--photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 9px; display: block; }
.tile--photo .cap { padding: 0 8px; }
.tile--photo .age { position: absolute; top: 18px; right: 18px; background: var(--tile); }
.sheet--preview .tile { cursor: default; }

.check { text-align: center; padding-top: max(16vh, 64px); }
.seal {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 600 24px/1 ui-serif, "New York", Georgia, serif; color: var(--paper); background: var(--clay);
}
.check .about { margin: 12px auto 30px; }
.check form { margin: 0; }
.go {
  width: 100%; padding: 16px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 16.5px; color: var(--paper); background: var(--ink);
}
.go:active { transform: translateY(1px); }
.back { display: inline-block; margin-top: 16px; padding: 8px; color: var(--soft); }
