/*
  TapYes product page. Self-contained. No kit.
  Paper, pine, and a single glow. Type is the layout.
*/

:root {
  color-scheme: light;
  --paper: #f3efe7;
  --ink: #161513;
  --pine: #14352c;
  --pine-soft: #1d4a3e;
  --muted: #5e584f;
  --line: rgba(22, 21, 19, 0.12);
  --gold: #8a7349;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(20, 53, 44, 0.08), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus { transform: none; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.25rem 0;
}

.word {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.play {
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
}

.play:hover,
.play:focus-visible { border-bottom-color: var(--ink); }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 8vh 0 6rem;
}

.glow {
  position: absolute;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  top: 18%;
  left: 50%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 53, 44, 0.16), rgba(196, 163, 106, 0.05) 42%, transparent 68%);
  filter: blur(8px);
  z-index: 0;
  animation: breathe 9s ease-in-out infinite;
}

.from,
.hero h1,
.deck,
.quiet,
.actions,
.face { position: relative; z-index: 1; }

.from {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.deck {
  margin: 1.25rem 0 0;
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.quiet {
  margin: 1rem 0 0;
  max-width: 36ch;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--pine);
  color: #f3efe7;
  text-decoration: none;
  font-size: 0.98rem;
}

.pill:hover,
.pill:focus-visible { background: var(--pine-soft); }

.textlink {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
}

.textlink:hover,
.textlink:focus-visible { border-bottom-color: var(--ink); }

.face {
  width: min(240px, 58vw);
  height: auto;
  margin-top: 3.5rem;
  border-radius: 28%;
  animation: lift 7s ease-in-out infinite;
}

.fold {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0 5rem;
}

.fold h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 16ch;
}

.levels {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.levels li {
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.levels li:last-child { border-bottom: 1px solid var(--line); }

.levels strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.levels span { color: var(--muted); }

.free,
.keep,
.safe {
  margin: 1.5rem 0 0;
  max-width: 46ch;
  color: var(--muted);
}

.keep a,
.foot a {
  color: var(--pine);
}

.site-foot {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 3rem;
}

.medical {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.love {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.links a { text-decoration: none; border-bottom: 1px solid var(--line); }

.links a:hover,
.links a:focus-visible { border-bottom-color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@keyframes breathe {
  0%, 100% { opacity: 0.75; scale: 1; }
  50% { opacity: 1; scale: 1.06; }
}

@keyframes lift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow,
  .face { animation: none; }
}
