/* ============================================================
   FROST — base
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.42;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  font-variant-numeric: tabular-nums;
}
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }

/* focus is ink, never red: red only ever means over */
:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
}

input[type='text'],
input[type='url'],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  background: var(--raised);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
textarea { padding: 12px 16px; min-height: 84px; resize: vertical; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E655F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
input::placeholder, textarea::placeholder { color: var(--ink-2); opacity: 1; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* Privacy blur: money figures and gift names */
.blurred .sensitive {
  filter: blur(7px);
  user-select: none;
  -webkit-user-select: none;
  transition: filter var(--mid) var(--ease);
}

* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .no-motion-hide { display: none !important; }
}
