/* Waxly web: same visual language as the app (cream paper, warm ink, petrol label). */
/* Self-hosted fonts. SIL OFL 1.1, see fonts/OFL-*.txt. No requests to third parties. */
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/JosefinSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/JosefinSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/JosefinSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/CourierPrime-Regular.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/CourierPrime-Bold.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/LibreCaslonText-Italic.woff2") format("woff2"); }
:root {
  --bg: #F1E7C9;
  --surface: #FAF4E2;
  --line: #DCCFA8;
  --accent: #2F7C8E;
  --accent-ink: #235F6D;
  --rust: #B5532B;
  --cream: #F1E7C9;
  --text: #2A211B;
  --muted: #6B4A33;
  --ink: #14100D;
  --focus: #2F7C8E;
  --radius: 14px;
  --head: "Josefin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Josefin Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: "Courier Prime", ui-monospace, Menlo, Consolas, monospace;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.i18n-wait body { visibility: hidden; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 50% -10%, rgba(255,255,255,.45), transparent 60%);
  color: var(--text);
  font: 400 18px/1.6 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
:lang(ar) body, :lang(ur) body, :lang(he) body { line-height: 1.8; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ink); font-weight: 700; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px;
  background: var(--accent); color: var(--cream); padding: 10px 14px; border-radius: 8px;
  font-weight: 700; z-index: 10; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: rgba(241,231,201,.92); }
.top .wrap { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font: 600 24px/1 var(--head); letter-spacing: .02em; padding-top: 4px; }
.nav { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 6px 2px; }
.nav a[aria-current="page"] { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); }
.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang label { font: 400 14px/1 var(--mono); color: var(--muted); }
select, input, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid #CDBD91; border-radius: 10px;
}
.lang select { padding: 6px 30px 6px 10px; font-size: 15px; max-width: 190px; }

/* Content */
main { flex: 1; padding: 40px 0 56px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 7.5vw, 60px); font-weight: 400; letter-spacing: -.01em; color: var(--accent); }
h2 { font-size: clamp(23px, 4vw, 29px); color: var(--ink); margin-top: 2em; }
h3 { font-size: 20px; color: var(--accent-ink); font-weight: 600; }
:lang(ar) h1, :lang(ur) h1, :lang(he) h1, :lang(hi) h1, :lang(bn) h1, :lang(gu) h1, :lang(kn) h1, :lang(ml) h1,
:lang(mr) h1, :lang(or) h1, :lang(pa) h1, :lang(ta) h1, :lang(te) h1, :lang(th) h1 { font-family: var(--body); font-weight: 700; line-height: 1.35; }
:lang(ar) h2, :lang(ur) h2, :lang(he) h2, :lang(th) h2, :lang(ta) h2, :lang(ml) h2 { font-family: var(--body); font-weight: 700; line-height: 1.4; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; }
li { margin-bottom: .45em; }
.muted { color: var(--muted); }
.kicker { font: 700 14px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lead { font: italic 400 19px/1.65 var(--serif); color: var(--muted); max-width: 60ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 0 rgba(42,33,27,.04), 0 8px 24px -16px rgba(42,33,27,.25); }
.short { border-inline-start: 4px solid var(--accent); margin: 28px 0; }
.short h2 { margin-top: 0; font-size: 20px; }
.short ul { margin: 0; }

/* Landing */
.hero { padding: 16px 0 12px; }
.badge {
  display: inline-block; margin: 12px 0 8px; padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: var(--cream); font: 700 15px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 36px 0 28px; padding: 0; list-style: none; }
.features li { margin: 0; }
.features h2 { font-size: 21px; margin: 0 0 6px; color: var(--accent-ink); }
.features p { margin: 0; color: var(--muted); }

/* Privacy */
.items h3 { margin-top: 1.4em; }
.procs { list-style: none; padding: 0; display: grid; gap: 12px; }
.procs li { margin: 0; }
.procs h3 { margin: 0 0 8px; color: var(--accent-ink); }
.procs dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.procs dt { color: var(--muted); font: 400 14px/1.7 var(--mono); }
.procs dd { margin: 0; }
@media (max-width: 560px) { .procs dl { grid-template-columns: 1fr; } .procs dd { margin-bottom: 6px; } }
.updated { color: var(--muted); }

/* Support */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-inline-end: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 20px; top: 12px; font: 500 24px/1 var(--head); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 20px 14px; }
form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 700; margin-bottom: 6px; }
input, textarea, form select { width: 100%; padding: 12px 14px; }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
button {
  font: 600 18px/1 var(--head); letter-spacing: .04em;
  background: var(--accent); color: var(--cream); border: 0; border-radius: 12px; padding: 16px 26px; cursor: pointer;
}
button:hover { background: var(--accent-ink); }
.formnote { font-size: 15px; color: var(--muted); margin-top: 14px; }
.sent { border-inline-start: 4px solid var(--accent); margin-bottom: 24px; }
.sent h2 { margin: 0 0 6px; font-size: 22px; }
.sent p { margin: 0; }
[hidden] { display: none !important; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 15px; color: var(--muted); }
.foot p { margin: 0 0 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.foot .discogs { font: 400 13px/1.5 var(--mono); margin-top: 10px; }
.sub { font-weight: 600; }
.features p { color: var(--text); }
/* The italic serif has Latin glyphs only; other scripts would get a fake slant. */
:lang(ja) .lead, :lang(ko) .lead, :lang(zh-Hans) .lead, :lang(zh-Hant) .lead, :lang(th) .lead, :lang(hi) .lead,
:lang(bn) .lead, :lang(gu) .lead, :lang(kn) .lead, :lang(ml) .lead, :lang(mr) .lead, :lang(or) .lead, :lang(pa) .lead,
:lang(ta) .lead, :lang(te) .lead, :lang(ar) .lead, :lang(he) .lead, :lang(ur) .lead { font-family: var(--body); font-style: normal; }
