:root {
  --paper: #F2EFE5;
  --paper-warm: #ECE7D9;
  --stone: #E7E2D4;
  --navy: #25304D;
  --navy-deep: #1A2238;
  --terracotta: #B05A3F;
  --terracotta-deep: #944A33;
  --ochre: #D89A4E;
  --cream: #F4EDD8;
  --ink: #15171C;
  --ink-soft: #3A3E48;
  --ink-mute: #6D6F77;
  --rule: #D7D3C6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

body { position: relative; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0.05 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

.stage {
  position: relative;
  z-index: 2;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Nav */
.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0 0;
}
.wordmark {
  font-family: 'Newsreader', serif;
  font-variation-settings: 'opsz' 14;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}
.nav-meta {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
}

/* CTA button — sharp-corner, all-caps tracked Inter */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 16px 24px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.cta:hover { background: var(--terracotta); }
.cta .arrow { display: inline-block; transition: transform 0.2s ease; font-size: 14px; }
.cta:hover .arrow { transform: translateX(3px); }

/* Default page footer (used by order, pay, generating, legal — landing has its own) */
.foot {
  margin: 64px 0 0;
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--rule);
}
.foot a { color: var(--ink-soft); text-decoration: none; margin-left: 14px; }

/* Form fields */
.field { margin-top: 22px; }
.field-label {
  display: block;
  font-family: 'Newsreader', serif;
  font-variation-settings: 'opsz' 36;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.012em;
}
.field-label em {
  font-style: italic;
  font-weight: 400;
}

.input, .textarea, .select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--paper-warm);
}
.textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.textarea::placeholder { color: var(--ink-mute); font-style: italic; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-name-age { display: grid; grid-template-columns: 1fr 80px; gap: 10px; }

/* Tile selectors */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile {
  background: var(--stone);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
  text-align: center;
  user-select: none;
}
.tile:hover { transform: translateY(-2px); }
.tile.on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}
.tile .em { font-size: 30px; line-height: 1; }
.tile .em img { width: 1em; height: 1em; display: block; }
.tile .t {
  font-family: 'Newsreader', serif;
  font-variation-settings: 'opsz' 14;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.moods, .occasions { grid-template-columns: repeat(4, 1fr); }
.moods .tile, .occasions .tile { padding: 10px 4px 8px; }
.moods .tile .em, .occasions .tile .em { font-size: 24px; }
.moods .tile .t, .occasions .tile .t { font-size: 12px; }

/* Submit button — full-width terracotta, sharp corners, tracked */
.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 32px;
  background: var(--terracotta);
  color: var(--cream);
  border: 0;
  padding: 18px 24px;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.submit:hover { background: var(--terracotta-deep); }
.submit .arrow { display: inline-block; transition: transform 0.2s ease; font-size: 14px; }
.submit:hover .arrow { transform: translateX(3px); }

@media (min-width: 520px) { .stage { max-width: 480px; } }
