/* The look shared by the front page, the editor, the gift card and the info pages.
   (The recipient's calendar, k.html, has its own three Christmas themes.) */
:root {
  --bg: #fbf8f4; --bg-2: #f4ede5; --surface: #ffffff; --surface-2: #faf6f1;
  --ink: #1f1714; --ink-2: #5d514b; --ink-3: #8a7c75;
  --line: #ebe2d8; --line-2: #dccfc3;
  --brand: #c2362b; --brand-hover: #a92c22; --brand-text: #b3261e; --brand-soft: #fcebe7;
  --pine: #1d5a42; --pine-soft: #e2f1e9; --gold: #e5a93c; --gold-soft: #fdf3dc; --gold-ink: #845400;
  --focus: #2f6fde;
  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --sh-1: 0 1px 2px rgb(60 30 15 / .06);
  --sh-2: 0 1px 2px rgb(60 30 15 / .05), 0 10px 30px rgb(60 30 15 / .08);
  --sh-3: 0 2px 6px rgb(60 30 15 / .06), 0 24px 60px rgb(60 30 15 / .16);
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141012; --bg-2: #1c1719; --surface: #211b1d; --surface-2: #1a1517;
    --ink: #f6efe9; --ink-2: #c7b9b1; --ink-3: #978981;
    --line: #33292b; --line-2: #463a3c;
    --brand: #c93a2e; --brand-hover: #db4a3d; --brand-text: #ff8b7f; --brand-soft: #3a1e1b;
    --pine: #5fcf9c; --pine-soft: #16302a; --gold-soft: #3a2f17; --gold-ink: #f1c46b;
    --focus: #7aa7f5;
    --sh-1: none;
    --sh-2: 0 1px 0 rgb(255 255 255 / .03), 0 10px 30px rgb(0 0 0 / .35);
    --sh-3: 0 24px 60px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--brand-text); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.015em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; color: var(--ink-3); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons */
.btn { --b: var(--surface); --c: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--b); color: var(--c); font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { --b: var(--brand); --c: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 6px 18px rgb(194 54 43 / .28); }
.btn-primary:hover { --b: var(--brand-hover); border-color: transparent; }
.btn-dark { --b: var(--ink); --c: var(--bg); border-color: transparent; }
.btn-ghost { --b: transparent; border-color: transparent; }
.btn-ghost:hover { --b: var(--bg-2); border-color: transparent; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-danger { --c: var(--brand-text); border-color: color-mix(in srgb, var(--brand-text) 40%, transparent); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.card h2 { font-size: 22px; }

/* Fields */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.input { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 11px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--ink-3); opacity: .8; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 20%, transparent); }
.input.invalid { border-color: var(--brand-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-text) 15%, transparent); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.5; }
.input-lg { font-size: 19px; min-height: 58px; }
.hint { font-size: 13px; color: var(--ink-3); margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.check.attention { animation: nudge .4s; }
.check.attention span { color: var(--brand-text); }
@keyframes nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.switch { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background-color .2s; flex: none; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s var(--ease); }
.switch:checked { background: var(--pine); }
.switch:checked::after { transform: translateX(20px); }

/* Small things */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.badge.ok { background: var(--pine-soft); color: var(--pine); }
.badge.warn { background: var(--gold-soft); color: var(--gold-ink); }
.badge.err { background: var(--brand-soft); color: var(--brand-text); }
.progress { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pine), #3aa577); border-radius: inherit; transition: width .5s var(--ease); }

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--r-md); box-shadow: var(--sh-3); font-size: 15px; font-weight: 500; animation: toast-in .25s var(--ease); pointer-events: auto; }
.toast.err { background: var(--brand); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* The logo: a little door with 24 on it */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 650 19px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(160deg, #d6463a, #a3241b); color: #fff; display: grid; place-items: center; font: 700 14px/1 var(--sans); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .18), 0 2px 6px rgb(163 36 27 / .3); }

/* Header and footer of the front page and the info pages */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.site-header nav { display: flex; gap: 4px; margin-left: auto; }
.site-header nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.site-header nav a:hover { color: var(--ink); background: var(--bg-2); }
@media (max-width: 820px) { .site-header nav { display: none; } .site-header .btn { margin-left: auto; } }
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 36px 0 56px; color: var(--ink-3); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: inherit; }

/* Info pages */
.prose { padding: 40px 0 0; }
.prose h1 { font-size: clamp(32px, 6vw, 46px); margin-bottom: 10px; }
.prose h2 { font-size: 21px; margin: 34px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin: 6px 0; }
.prose b { color: var(--ink); }
.fill { background: var(--gold-soft); color: var(--gold-ink); padding: 0 4px; border-radius: 4px; }

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