: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); }

/* Photo card with its own button area below the photo (main button of the page). */
.tip { display: block; text-align: center; color: var(--soft); font-size: 13px; line-height: 1.2; }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 8px 0;
  padding: 15px 16px; border-radius: 10px; color: var(--paper); background: var(--ink);
  animation: cta-pulse 2s ease-in-out infinite;
}
.cta b { font-weight: 600; font-size: 16.5px; }
.cta .arrow { color: inherit; font-size: 15px; line-height: 1; opacity: .8; }
.tile--cta { padding-bottom: 8px; }
@keyframes cta-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(176, 86, 61, .8); }
  30% { transform: scale(1.04); box-shadow: 0 0 0 7px rgba(176, 86, 61, .35); }
  60% { transform: scale(1); box-shadow: 0 0 0 12px rgba(176, 86, 61, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(176, 86, 61, 0); }
}
@media (prefers-reduced-motion: reduce) { .cta { animation: none; } }

/* Small, quiet links below the photo card. */
.minis { display: flex; gap: 8px; margin-top: 2px; }
.mini {
  flex: 1; min-width: 0; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px;
  color: var(--soft); text-decoration: none; font-size: 13px; line-height: 1.2;
  border: 1px solid var(--rule); border-radius: 10px; -webkit-tap-highlight-color: transparent;
}
.mini .glyph { width: 15px; height: 15px; color: var(--soft); --card: var(--paper); }
@media (hover: hover) { .mini:hover { color: var(--ink); border-color: var(--soft); } }

/* Age check on the light page (go.js): covers the page until confirmed or cancelled. */
.veil { position: fixed; inset: 0; z-index: 10; overflow-y: auto; background: var(--paper); }
.veil[hidden] { display: none; }
button.back { border: 0; background: none; font: inherit; cursor: pointer; }
