/* links.vonlind.com · Craft & Lore design system, Ledger layout */
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink-900: #0f0d0a; --ink-800: #1a1612; --ink-700: #252018; --ink-600: #342b20; --ink-500: #4a3f32; --ink-400: #6b5c4a;
  --hide-100: #f5f0ea; --hide-200: #e8ddd1; --hide-300: #d4c4b0; --fog: #c8bfb0; --cream: #f7f2eb;
  --copper: #c2745a; --copper-light: #d48a70; --copper-dark: #a85e45; --gold: #c89867; --gold-light: #dbb07f;
  --danger: #b45454; --success: #6ea06e;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "Courier New", ui-monospace, monospace;
  --ease: cubic-bezier(.2, 0, .1, 1);
  --inset-top: inset 0 1px 0 rgba(255, 245, 235, .04);
  --shadow-sm: 0 1px 3px rgba(15, 13, 10, .15), 0 1px 2px rgba(15, 13, 10, .10);
  --ring: 0 0 0 3px rgba(194, 116, 90, .30);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink-900); color: var(--hide-200); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--copper-light); }
a:hover { color: var(--hide-100); }
:focus-visible { outline: none; box-shadow: var(--ring); }
img { display: block; max-width: 100%; }
button { font: inherit; }

.page { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }

/* hero */
.hero { position: relative; height: min(540px, 82vh); min-height: 440px; overflow: hidden; background: var(--ink-700); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: linear-gradient(rgba(15,13,10,.55), rgba(15,13,10,0)); z-index: 1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 290px; background: linear-gradient(rgba(15,13,10,0), rgba(15,13,10,.78) 45%, var(--ink-900)); }
.hero__top { position: absolute; z-index: 2; top: calc(20px + env(safe-area-inset-top)); left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; }
.hero__text { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 4px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hero__name { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 46px; line-height: 1.05; letter-spacing: -.03em; color: var(--hide-100); }
.hero__tagline { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--hide-200); }
.hero__tagline em { color: var(--gold); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--fog); }

.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--copper); }
.eyebrow--light { font-size: 11px; color: var(--hide-100); }

.content { display: flex; flex-direction: column; gap: 28px; padding: 24px 20px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 2px; border: 1.5px solid transparent; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--copper); color: var(--cream); }
.btn--primary:hover { background: var(--copper-light); color: var(--cream); box-shadow: 0 4px 20px rgba(194,116,90,.25); }
.btn--secondary { background: transparent; color: var(--copper-light); border-color: var(--copper); }
.btn--secondary:hover { background: rgba(194,116,90,.10); color: var(--hide-100); }
.btn--ghost { background: transparent; color: var(--hide-200); border-color: var(--ink-500); }
.btn--ghost:hover { background: var(--ink-700); color: var(--hide-100); }
.actions { display: flex; gap: 10px; }
.actions .btn { flex: 1 1 0; }

.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; border: 1px solid var(--ink-600); background: transparent; color: var(--hide-200); cursor: pointer; }
.icon-btn:hover { background: var(--ink-700); color: var(--hide-100); }
.icon-btn--glass { background: rgba(15,13,10,.55); border-color: rgba(245,240,234,.25); color: var(--hide-100); }

/* groups */
.group { display: flex; flex-direction: column; gap: 12px; }
.group--rows { gap: 4px; }
.group--rows .eyebrow { margin-bottom: 8px; }

.card { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--ink-800); border: 1px solid var(--ink-700); border-radius: 4px; box-shadow: var(--inset-top), var(--shadow-sm); text-decoration: none; color: inherit; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.card:hover { background: var(--ink-700); border-color: var(--ink-600); color: inherit; }
.card:hover .card__title { color: var(--copper-light); }
.card:active { transform: translateY(1px); }
.thumb { width: 60px; height: 60px; flex-shrink: 0; border-radius: 2px; overflow: hidden; background: var(--ink-700); border: 1px solid var(--ink-600); display: flex; align-items: center; justify-content: center; color: var(--fog); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--mark { background: var(--ink-900); border-color: transparent; }
.thumb--mark img { width: 48px; height: 48px; object-fit: contain; }
.thumb--mono { font-family: var(--serif); font-size: 30px; color: var(--gold); }
.card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card__title { font-size: 15px; font-weight: 500; color: var(--hide-100); transition: color .15s var(--ease); }
.card__sub { font-size: 13px; line-height: 1.4; color: var(--fog); }
.card__arrow { color: var(--copper); display: flex; }

.row { display: flex; align-items: center; gap: 14px; min-height: 48px; border-bottom: 1px dotted var(--ink-600); text-decoration: none; color: var(--hide-200); }
.row:hover { color: var(--copper-light); }
.row__icon { display: flex; }
.row__title { flex: 1; font-size: 14px; font-weight: 500; }
.row__handle { font-family: var(--mono); font-size: 12px; color: var(--fog); display: flex; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }

.foot { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--ink-700); font-size: 11px; letter-spacing: .1em; color: var(--fog); }
.foot__lock { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink-400); }
.foot__lock:hover { color: var(--fog); }

/* share sheet */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 480px; background: transparent; color: inherit; }
.sheet::backdrop { background: rgba(15,13,10,.72); }
.sheet__inner { background: var(--ink-800); border: 1px solid var(--ink-600); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: 0 24px 56px rgba(15,13,10,.28); }
.sheet__head { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.sheet__title { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--hide-100); }
.qr { width: 232px; height: 232px; padding: 14px; background: var(--cream); border-radius: 2px; }
.qr svg { width: 100%; height: 100%; display: block; }
.sheet__hint { margin: 0; font-size: 13px; color: var(--fog); }
.sheet__actions { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.sheet__actions [hidden] { display: none; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--hide-100); color: var(--ink-900); padding: 10px 16px; border-radius: 2px; font-size: 13px; font-weight: 500; z-index: 10; }

@media (min-width: 481px) {
  .page { padding-top: 24px; }
  .hero { border-radius: 8px 8px 0 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
