/* Exposure — editorial restyle
   Warm paper, flat bold color, serif display. */

:root {
  --paper: #f0eee6;
  --paper-2: #e7e4d8;
  --ink: #16130f;
  --muted: #6f6a60;
  --pink: #ff2d55;
  --blue: #2f5bea;
  --marigold: #ffb12e;
  --green: #0e8a5f;
  --hotpink: #ff59a6;
  --line: #d8d4c6;

  --maxw: 760px;
  --serif: "Fraunces", "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
}

.display {
  font-size: clamp(3.2rem, 13vw, 7.5rem);
  font-weight: 600;
  font-style: normal;
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  margin-top: 2.6em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.25rem;
  margin-top: 2em;
  margin-bottom: 0.4em;
}

p {
  margin: 0 0 1.1em;
  max-width: 60ch;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--ink);
  max-width: 22ch;
}

a {
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.6;
}

strong {
  font-weight: 600;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.caption {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---- Top bar ---- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 0 0;
}

.topbar .mark {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 0;
}

/* ---- Decorative tile grid (masthead motif) ---- */

.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 40px 0 8px;
}

.tile {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tile svg {
  width: 64%;
  height: 64%;
  display: block;
}

.tile.empty {
  background: transparent;
}
.tile.paper {
  background: var(--paper-2);
}
.tile.pink {
  background: var(--pink);
}
.tile.blue {
  background: var(--blue);
}
.tile.marigold {
  background: var(--marigold);
}
.tile.green {
  background: var(--green);
}
.tile.hotpink {
  background: var(--hotpink);
}

@media (max-width: 560px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .tile.hide-sm {
    display: none;
  }
}

/* ---- Hero ---- */

.hero {
  padding: 26px 0 10px;
}

.hero .display {
  margin-bottom: 0.18em;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: end;
  justify-content: space-between;
}

/* ---- Generator card ---- */

.card {
  background: #fbfaf5;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 34px 30px;
  margin: 18px 0 8px;
  box-shadow: 8px 8px 0 var(--ink);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.field {
  margin: 0 0 22px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.field .hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 6px;
}

input[type="text"] {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line);
  padding: 6px 2px 8px;
  outline: none;
  transition: border-color 0.2s ease;
}

input[type="text"]::placeholder {
  color: #b7b2a4;
}

input[type="text"]:focus {
  border-bottom-color: var(--pink);
}

button,
.btn {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.08s ease, background 0.15s ease;
}

button:hover,
.btn:hover {
  background: var(--pink);
  opacity: 1;
}

button:active,
.btn:active {
  transform: translateY(1px);
}

.btn {
  border-bottom: 0;
}

/* ---- Link output ---- */

.result {
  margin-top: 26px;
  border-top: 1.5px dashed var(--line);
  padding-top: 20px;
}

.result .eyebrow {
  margin-bottom: 8px;
}

.link {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas,
    monospace;
  font-size: 1rem;
  color: var(--pink);
  background: var(--paper);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0;
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.45;
}

.link.placeholder {
  color: var(--muted);
}

/* ---- Sections / footer ---- */

.section {
  border-top: 1.5px solid var(--line);
  margin-top: 64px;
  padding-top: 8px;
}

.disclaimer {
  margin: 90px 0 60px;
  padding-top: 28px;
  border-top: 1.5px solid var(--ink);
}

.disclaimer p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 64ch;
}

.disclaimer .display {
  font-size: clamp(2rem, 7vw, 3.4rem);
}

/* ---- Pay page ---- */

.pay-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
}

.pay-amount {
  font-family: var(--serif);
  font-size: clamp(3rem, 14vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0.1em 0 0.05em;
}

.pay-to {
  color: var(--muted);
  font-size: 1.05rem;
}

.pay-actions {
  margin-top: 32px;
}

.pay-footer {
  margin-top: auto;
  padding-top: 48px;
  border-top: 1.5px solid var(--line);
}
