/* lumerance store styles. paper surfaces override --fg etc so text works on light + dark */

:root {
  --night: #121517;
  --night-2: #181c1f;
  --dusk: #232a2e;
  --bone: #ddd6c8;
  --ash: #a9a498;
  --dust: #8b867c;
  --rain: #c9d2d6;
  --rust: #a8513d;
  --rust-dim: rgba(168, 81, 61, .7);

  --paper: #c7bfaf;
  --paper-2: #b8b09f;
  --paper-3: #d2cbbc;
  --tape: rgba(214, 206, 188, .78);
  --ink: #15130f;
  --ink-2: #39332b;
  --ink-3: #5c554a;
  --ok: #46593f;

  --fg: var(--bone);
  --fg-2: var(--ash);
  --fg-3: var(--dust);
  --btn-bg: var(--bone);
  --btn-fg: var(--night);
  --line: rgba(221, 214, 200, .55);

  --max: 1120px;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "EB Garamond", Georgia, serif;
  --type: "Courier Prime", "Courier New", ui-monospace, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .07 0 0 0 0 .05 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .87 0 0 0 0 .88 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --dots: radial-gradient(circle, #07090a 1.3px, transparent 1.6px);
}

/* paper surfaces */
.card, .feature, .buybox, .summary, .cart-item, .dl, .licence, .empty, .toast, .preset {
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --btn-bg: var(--ink);
  --btn-fg: var(--paper-3);
  --line: rgba(21, 19, 15, .6);
  color: var(--fg);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; background: var(--night); }
body {
  margin: 0;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--night);
  /* flat night + grain. no gradients: depth comes from the halftone focal points */
  background-image: var(--grain-light);
}
/* vignette */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 220px rgba(0, 0, 0, .65), inset 0 0 60px rgba(0, 0, 0, .4);
}
main, header, footer { position: relative; z-index: 1; }
main { flex: 1; min-width: 0; animation: surface 1.6s ease-out both; }
@keyframes surface { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: var(--type); font-size: .85em; }
::selection { background: var(--bone); color: var(--night); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- weather: rain and fog, behind everything ---------- */
.weather { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.weather .rain {
  position: absolute; left: 0; right: 0; top: -540px; height: calc(100% + 540px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='360'%3E%3Cpath d='M12 20l-2 26M47 140l-1.5 18M83 60l-2.5 30M121 250l-2 22M160 10l-2 24M30 300l-2 20M98 190l-2.5 28M140 110l-1.5 16M66 330l-2 22M170 200l-2 26M5 180l-1 14M110 20l-1.5 18' stroke='%23c9d2d6' stroke-width='1' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  animation: fall 2.4s linear infinite;
  will-change: transform;
}
/* r1 = far rain, r2 = near. each moves one tile per loop */
.weather .r1 { top: -360px; height: calc(100% + 360px); background-size: 180px 360px; opacity: .07; animation-name: fall-far; animation-duration: 2.4s; }
.weather .r2 { background-size: 270px 540px; background-position: 70px 0; opacity: .11; animation-duration: 1.5s; }
@keyframes fall { from { transform: translateY(0); } to { transform: translateY(540px); } }
@keyframes fall-far { from { transform: translateY(0); } to { transform: translateY(360px); } }
.weather .fog {
  position: absolute; left: -50%; width: 200%; height: 55vh;
  background:
    radial-gradient(ellipse 18% 50% at 20% 50%, rgba(170, 182, 188, .07), transparent 70%),
    radial-gradient(ellipse 22% 45% at 55% 60%, rgba(170, 182, 188, .06), transparent 70%),
    radial-gradient(ellipse 16% 40% at 85% 45%, rgba(170, 182, 188, .07), transparent 70%);
  animation: drift 70s ease-in-out infinite alternate;
  will-change: transform;
}
.weather .f1 { bottom: -8vh; }
.weather .f2 { top: 22vh; opacity: .7; animation-duration: 95s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-12%); } to { transform: translateX(12%); } }

/* ink blob, top left */
.ink-mass { position: absolute; top: -130px; left: -150px; width: min(440px, 75vw); pointer-events: none; z-index: 0; transform: rotate(-8deg); color: #07090a; opacity: .9; filter: drop-shadow(0 0 30px rgba(0, 0, 0, .6)); }
@media (max-width: 720px) { .ink-mass { top: -110px; left: -140px; width: 300px; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; }
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -10px;
  background: rgba(20, 24, 27, .92) var(--grain-light);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask: linear-gradient(#000 calc(100% - 10px), transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v4l-6 3-9-2-7 4-10-3-8 2-11-3-7 4-9-3-10 3-8-2-9 3-8-4-9 3-9-2z'/%3E%3C/svg%3E") bottom / 100% 10px no-repeat;
  mask: linear-gradient(#000 calc(100% - 10px), transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v4l-6 3-9-2-7 4-10-3-8 2-11-3-7 4-9-3-10 3-8-2-9 3-8-4-9 3-9-2z'/%3E%3C/svg%3E") bottom / 100% 10px no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5));
}
.site-header .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 400; letter-spacing: .01em; white-space: nowrap; color: var(--bone); }
.brand .mark {
  width: 20px; height: 20px; flex: none; position: relative;
  background: var(--bone);
  border-radius: 46% 54% 42% 58% / 55% 44% 56% 45%;
  box-shadow: 0 0 14px rgba(221, 214, 200, .18);
}
.brand .mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--night); }
.brand small {
  font-family: var(--type); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: lowercase;
  background: var(--tape) var(--grain); color: var(--ink-2); padding: 3px 9px; margin-left: 2px;
  transform: rotate(-2deg); box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  clip-path: polygon(2% 8%, 98% 0, 100% 90%, 1% 100%);
}
@media (max-width: 420px) { .brand small { display: none; } }
.nav { display: flex; align-items: center; gap: 22px; font-size: 16px; font-style: italic; color: var(--ash); }
.nav a { transition: color .4s; }
.nav a:hover { color: var(--bone); text-decoration: underline wavy rgba(221, 214, 200, .3) 1px; text-underline-offset: 5px; }
.nav .hide-sm { display: none; }
@media (min-width: 640px) { .nav .hide-sm { display: inline; } }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; font-style: normal;
  background: var(--bone); color: var(--night); padding: 7px 16px;
  border-radius: 48% 52% 46% 54% / 60% 55% 45% 40%;
}
.nav .cart-btn:hover { background: #ece6da; color: var(--night); text-decoration: none; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--rust); color: #f1e8dc; font-family: var(--type); font-size: 12px; font-weight: 700;
  display: inline-grid; place-items: center; box-shadow: 0 0 10px rgba(168, 81, 61, .55);
}
.cart-count[data-n="0"] { background: #4a4741; color: var(--bone); box-shadow: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 0; font-family: var(--serif); font-size: 17px; font-weight: 700;
  border-radius: 46% 54% 48% 52% / 62% 58% 42% 38%;
  transition: transform .15s, background .4s, box-shadow .4s, color .4s;
}
.btn:active { transform: translateY(1px) rotate(-.5deg); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 2px 3px 0 rgba(0, 0, 0, .3); }
.btn-primary:hover { box-shadow: 3px 5px 0 rgba(0, 0, 0, .35), 0 0 18px rgba(221, 214, 200, .12); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg); background: rgba(127, 127, 127, .08); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.added { background: var(--ok); color: #e6e0d2; }
.btn-wide { width: 100%; border-radius: 26px 20px 28px 18px / 22px 26px 18px 24px; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 56px; text-align: center; position: relative; }
.eyebrow { font-family: var(--type); font-size: 13px; letter-spacing: .18em; text-transform: lowercase; color: var(--fg-3); }
.hero h1 {
  font-weight: 400; font-size: clamp(46px, 8.4vw, 98px); line-height: .98; margin: 18px 0 26px; letter-spacing: -.02em;
  color: var(--bone);
  /* soft halo */
  text-shadow: 0 0 1px rgba(221, 214, 200, .5), 0 0 24px rgba(180, 195, 202, .16), 0 0 70px rgba(150, 168, 178, .1);
}
.hero h1 em { color: var(--ash); display: inline-block; transform: rotate(-1.5deg) translateY(4px); }
.hero .lamp { position: absolute; top: -50px; right: 0; width: min(440px, 60vw); color: var(--bone); opacity: .2; pointer-events: none; z-index: -1; }
@media (max-width: 720px) { .hero .lamp { right: -30%; top: -10px; opacity: .1; } }
.hero p { color: var(--ash); max-width: 560px; margin: 0 auto; font-size: 19px; font-style: italic; }
.hero .scrawl { display: block; margin-top: 14px; font-family: var(--type); font-size: 12.5px; color: var(--fg-3); }
.hero .stamp {
  display: inline-block; margin-top: 30px; font-family: var(--type); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--rust-dim); border: 2px solid rgba(168, 81, 61, .5); padding: 5px 12px; transform: rotate(-4deg); border-radius: 3px;
}

/* ---------- product grid ---------- */
.grid { display: grid; gap: 44px 34px; grid-template-columns: minmax(0, 1fr); padding: 28px 0 70px; }
@media (min-width: 820px) { .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background-color: var(--paper-3);
  background-image:
    var(--grain);
  box-shadow: inset 0 0 40px rgba(60, 50, 35, .22), 0 2px 2px rgba(0, 0, 0, .5), 6px 14px 34px rgba(0, 0, 0, .55);
  transform: rotate(-.6deg); transition: transform .6s ease;
}
.grid > .card:nth-child(2n) { transform: rotate(.7deg); }
.card:hover { transform: rotate(0) translateY(-3px); }
.card::before, .card::after {
  content: ""; position: absolute; top: -12px; width: 96px; height: 26px; z-index: 2;
  background: var(--tape) var(--grain); box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  clip-path: polygon(3% 10%, 97% 0, 100% 88%, 0 100%);
}
.card::before { left: 18px; transform: rotate(-5deg); }
.card::after { right: 18px; transform: rotate(4deg); opacity: .7; }
.card .art { display: block; margin: 14px 14px 0; background: var(--paper-2); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(20, 18, 16, .2); }
/* screenshots desaturated until hover */
.card .art img, .cart-item .thumb img { width: 100%; height: auto; filter: saturate(.55) brightness(.9) contrast(1.02); transition: filter 1.4s ease; }
.card:hover .art img, .cart-item:hover .thumb img { filter: none; }
.card .body { padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .type { font-family: var(--type); font-size: 12.5px; letter-spacing: .06em; color: var(--fg-3); }
.card h2 { font-weight: 700; font-size: 44px; margin: 0; line-height: 1; letter-spacing: -.02em; }
.card .tagline { font-style: italic; font-size: 19px; margin: 0; color: var(--fg-2); }
.card .blurb { color: var(--fg-2); font-size: 16px; margin: 0; flex: 1; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.price { font-family: var(--type); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.card .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- quote ---------- */
.elegy { text-align: center; padding: 10px 0 70px; position: relative; z-index: 1; }
.elegy blockquote {
  margin: 0 auto; max-width: 620px; font-size: clamp(22px, 3.4vw, 30px); font-style: italic; line-height: 1.35; color: var(--ash);
  text-shadow: 0 0 22px rgba(180, 195, 202, .12);
}
.elegy blockquote::before, .elegy blockquote::after {
  content: ""; display: block; width: 120px; height: 8px; margin: 0 auto 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 4c20-2 34 1 56 0s40-2 60 1' stroke='%23ddd6c8' stroke-width='1.4' fill='none' stroke-linecap='round' opacity='.35'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.elegy blockquote::after { margin: 22px auto 0; transform: scaleX(-1); }

/* ---------- info strip ---------- */
.strip { position: relative; z-index: 1; margin: 0 0 40px; }
.strip .wrap { position: relative; display: grid; gap: 22px; grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 30px; max-width: calc(var(--max) - 40px); }
.strip .wrap::before {
  content: ""; position: absolute; inset: 0 8px; z-index: -1; background: #2a2723 var(--grain-light);
  clip-path: polygon(0 4%, 6% 0, 18% 3%, 31% 0, 47% 4%, 62% 1%, 78% 4%, 91% 0, 100% 3%, 100% 96%, 88% 100%, 72% 97%, 55% 100%, 39% 96%, 22% 100%, 9% 97%, 0 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
@media (min-width: 720px) { .strip .wrap { grid-template-columns: repeat(3, 1fr); } }
.strip h3 { margin: 0 0 4px; font-size: 19px; font-weight: 400; color: var(--bone); }
.strip p { margin: 0; font-size: 15px; color: var(--ash); }

/* ---------- product page ---------- */
.back { display: inline-flex; gap: 6px; color: var(--fg-3); font-style: italic; margin: 30px 0 0; position: relative; z-index: 1; transition: color .4s; }
.back:hover { color: var(--fg); }
.p-hero { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); padding: 26px 0 52px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .p-hero { grid-template-columns: 1.15fr 1fr; gap: 52px; } }
.p-hero .art { position: relative; background: var(--paper-3) var(--grain); padding: 12px; box-shadow: inset 0 0 40px rgba(60, 50, 35, .22), 6px 16px 40px rgba(0, 0, 0, .6); transform: rotate(-1deg); }
.p-hero .art::before { content: ""; position: absolute; top: -12px; left: 50%; width: 120px; height: 28px; margin-left: -60px; background: var(--tape) var(--grain); transform: rotate(-3deg); box-shadow: 0 1px 3px rgba(0, 0, 0, .45); clip-path: polygon(3% 10%, 97% 0, 100% 88%, 0 100%); }
.p-hero .art img { width: 100%; height: auto; filter: saturate(.8) brightness(.95); }
.p-hero h1 { font-weight: 400; font-size: clamp(56px, 9vw, 98px); line-height: .92; margin: 6px 0 14px; letter-spacing: -.025em; color: var(--bone); text-shadow: 0 0 1px rgba(221, 214, 200, .5), 0 0 26px rgba(180, 195, 202, .15); }
.p-hero .tagline { font-style: italic; font-size: 24px; margin: 0 0 14px; color: var(--ash); }
.p-hero .blurb { color: var(--ash); margin: 0 0 26px; }
.buybox { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--paper-3) var(--grain); box-shadow: inset 0 0 30px rgba(60, 50, 35, .2), 6px 10px 26px rgba(0, 0, 0, .5); border-radius: 3px; }
.buybox .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buybox .meta { font-family: var(--type); font-size: 13px; color: var(--fg-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--type); font-size: 12px; padding: 3px 10px; border: 1px dashed var(--fg-3); color: var(--fg-2); border-radius: 2px; }

.section { padding: 46px 0; position: relative; z-index: 1; }
.section::before {
  content: ""; display: block; height: 8px; margin-bottom: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'%3E%3Cpath d='M0 4c40-2 70 1 110 0s80-3 120 0 90 2 170-1' stroke='%23ddd6c8' stroke-width='1.4' fill='none' stroke-linecap='round' opacity='.28'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.section h2 { font-weight: 400; font-size: 38px; margin: 0 0 24px; letter-spacing: -.01em; color: var(--bone); }
.features { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { padding: 18px 20px; background: var(--paper-3) var(--grain); box-shadow: inset 0 0 26px rgba(60, 50, 35, .18), 3px 8px 18px rgba(0, 0, 0, .45); }
.feature:nth-child(3n+1) { transform: rotate(-.5deg); }
.feature:nth-child(3n+2) { transform: rotate(.4deg); }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; font-size: 15.5px; color: var(--fg-2); }
.presets { display: flex; flex-wrap: wrap; gap: 10px; }
.preset {
  font-style: italic; font-size: 17px; padding: 5px 14px; background: var(--tape) var(--grain);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45); clip-path: polygon(2% 8%, 98% 0, 100% 92%, 0 100%);
}
.preset:nth-child(odd) { transform: rotate(-1.2deg); }
.preset:nth-child(3n) { transform: rotate(1deg); }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 26px; }
.specs dt { color: var(--fg-3); font-style: italic; }
.specs dd { margin: 0; color: var(--fg); }

/* ---------- cart ---------- */
.page-title { font-weight: 400; font-size: clamp(44px, 7vw, 68px); margin: 44px 0 26px; letter-spacing: -.02em; position: relative; z-index: 1; color: var(--bone); text-shadow: 0 0 1px rgba(221, 214, 200, .5), 0 0 24px rgba(180, 195, 202, .14); }
.cart-layout { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); padding-bottom: 90px; align-items: start; position: relative; z-index: 1; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.5fr 1fr; } }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; background: var(--paper-3) var(--grain); box-shadow: inset 0 0 26px rgba(60, 50, 35, .18), 3px 8px 18px rgba(0, 0, 0, .45); }
.cart-item .thumb { width: 96px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(20, 18, 16, .2); }
.cart-item h3 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.05; }
.cart-item .sub { font-size: 14px; color: var(--fg-3); font-style: italic; }
.cart-item .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cart-item .right .price { font-size: 22px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--fg-3); font-size: 14px; font-style: italic; text-decoration: underline; }
.link-btn:hover { color: var(--rust); }
.summary { padding: 24px; background: var(--paper-3) var(--grain); box-shadow: inset 0 0 30px rgba(60, 50, 35, .2), 6px 10px 26px rgba(0, 0, 0, .5); border-radius: 3px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
.summary h2 { font-weight: 700; font-size: 30px; margin: 0; }
.sum-row { display: flex; justify-content: space-between; color: var(--fg-2); font-size: 16px; }
.sum-row span:last-child { font-family: var(--type); }
.sum-row.total { color: var(--fg); font-size: 19px; font-weight: 700; border-top: 1.5px dashed var(--fg-3); padding-top: 14px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-style: italic; color: var(--fg-2); }
.field input { background: rgba(255, 252, 245, .35); border: 0; border-bottom: 1.5px solid var(--ink); padding: 10px 4px; color: var(--ink); font-family: var(--type); font-size: 15px; font-style: normal; border-radius: 0; }
.field input:focus { outline: none; background: rgba(255, 252, 245, .6); }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pay-methods span { font-family: var(--type); font-size: 10.5px; letter-spacing: .04em; padding: 3px 7px; border: 1px solid var(--fg-3); color: var(--fg-2); border-radius: 2px; }
.secure { font-size: 13.5px; color: var(--fg-3); text-align: center; margin: 0; font-style: italic; }
.notice { padding: 12px 14px; font-size: 15px; color: var(--fg); background: rgba(150, 140, 120, .16); border-left: 3px solid var(--fg-2); }
.notice.error { background: rgba(168, 81, 61, .16); border-left-color: var(--rust); color: var(--fg); }
.empty { text-align: center; padding: 60px 20px; background: var(--paper-3) var(--grain); box-shadow: inset 0 0 40px rgba(60, 50, 35, .22), 6px 14px 34px rgba(0, 0, 0, .5); font-style: italic; }
.empty p { margin: 0 0 18px; font-size: 20px; color: var(--fg-2); }
.upsell { margin-top: 12px; }
.upsell > h3 { font-size: 15px; color: var(--fg-3); font-weight: 400; font-style: italic; margin: 14px 0 10px; }

/* ---------- success ---------- */
.success { max-width: 660px; margin: 0 auto; padding: 64px 0 100px; text-align: center; position: relative; z-index: 1; color: var(--ash); }
.success .glyph { width: 72px; height: 72px; margin: 0 auto 18px; background: var(--bone); color: var(--night); display: grid; place-items: center; font-size: 30px; border-radius: 46% 54% 42% 58% / 55% 44% 56% 45%; box-shadow: 0 0 30px rgba(221, 214, 200, .15); }
.downloads { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; text-align: left; }
.dl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--paper-3) var(--grain); box-shadow: inset 0 0 26px rgba(60, 50, 35, .18), 3px 8px 18px rgba(0, 0, 0, .45); flex-wrap: wrap; }
.dl strong { font-size: 24px; }
.dl span { color: var(--fg-3); font-size: 14px; font-style: italic; }
.licence { text-align: left; background: var(--paper-3) var(--grain); box-shadow: inset 0 0 26px rgba(60, 50, 35, .18), 3px 8px 18px rgba(0, 0, 0, .45); padding: 14px 16px; margin: 0 0 22px; border-radius: 3px; }
.licence-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.licence-head strong { font-size: 22px; }
.licence code { display: block; font-family: var(--type); font-size: 12px; line-height: 1.5; word-break: break-all; color: var(--ink); background: rgba(255, 252, 245, .4); padding: 10px 12px; user-select: all; }
.steps { text-align: left; color: var(--ash); font-size: 16px; padding-left: 22px; margin: 0 0 26px; }
.steps li { margin-bottom: 6px; }
.steps code { color: var(--bone); }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 1; margin-top: 40px; padding: 120px 0 30px; color: var(--dust); font-size: 14px; font-style: italic; }
.site-footer .tide { position: absolute; left: 0; right: 0; top: 0; height: 96px; background-repeat: repeat-x; pointer-events: none; }
.site-footer::after {
  content: ""; position: absolute; left: 0; right: 0; top: 88px; bottom: 0; z-index: -1;
  background: #07090a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10C40 2 70 16 110 9s75-9 115 1 85 8 115-2 45-6 60-2V20H0z'/%3E%3C/svg%3E") top / 100% 20px no-repeat, linear-gradient(#000, #000) 0 19px / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10C40 2 70 16 110 9s75-9 115 1 85 8 115-2 45-6 60-2V20H0z'/%3E%3C/svg%3E") top / 100% 20px no-repeat, linear-gradient(#000, #000) 0 19px / 100% 100% no-repeat;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; position: relative; }
.site-footer .waterline { font-family: var(--type); font-style: normal; font-size: 11px; letter-spacing: .14em; opacity: .8; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px) rotate(-1deg);
  background: var(--paper-3) var(--grain); padding: 12px 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, .6);
  font-size: 16px; font-weight: 700; opacity: 0; pointer-events: none; z-index: 50;
  transition: opacity .3s, transform .3s; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px);
  clip-path: polygon(1% 6%, 99% 0, 100% 94%, 0 100%);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); pointer-events: auto; }
.toast a { text-decoration: underline; font-style: italic; }
.muted { color: var(--fg-3); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  main, .weather .rain, .weather .fog { animation: none !important; }
  .weather .rain { opacity: .05; }
}
