/* The publisher's standalone pages: contact, terms, returns, privacy. Separate
   from site/draw32/style.css on purpose — that one belongs to a product, and a
   page one level above it should not reach down into one. The tokens are the
   same values, copied deliberately; the day there is a second product and a
   genuinely shared stylesheet, this is the file that becomes it. */

:root {
  --bg: #ffffff;
  --fg: #14171a;
  --muted: #5e6468;
  --rule: #e4e6e1;
  --panel: #f5f4ef;
  --accent: #e8650d;
  --accent-ink: #a9440a;
  --display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --prose: "Spectral", ui-serif, Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1012;
    --fg: #e9ebe8;
    --muted: #9aa09f;
    --rule: #262a2d;
    --panel: #15181a;
    --accent: #ff8338;
    --accent-ink: #ffa972;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--prose);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 9vw, 5rem) 1rem 4rem;
}

.mark {
  display: block;
  width: min(13rem, 56vw);
  aspect-ratio: 651 / 106;
  background: url("/brand/logo.svg") left center/contain no-repeat;
  margin-bottom: clamp(2rem, 7vw, 3.25rem);
}

@media (prefers-color-scheme: dark) {
  .mark { background-image: url("/brand/logo-dark.svg"); }
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 92%;
  letter-spacing: -.028em;
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 1.75rem;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 96%;
  letter-spacing: -.012em;
  font-size: 1.0625rem;
  margin: 2.5rem 0 .6rem;
}

p { margin: 0 0 1.1rem; }

/* The address is the page. Everything else is a footnote to it. */
.addr {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -.02em;
  font-size: clamp(1.25rem, 5.2vw, 1.75rem);
  color: var(--fg);
  text-decoration: none;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: var(--panel);
  word-break: break-all;
  transition: border-color .15s ease;
}

.addr::before {
  content: "";
  display: inline-block;
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: var(--accent);
  margin-right: .6rem;
  vertical-align: .12em;
}

.addr:hover { border-color: var(--accent); }

/* Only drawn when the shop sent an invoice reference along. */
.ref {
  margin-top: 1rem;
  padding: .9rem 1.25rem;
  border: 1px dashed var(--rule);
  border-radius: .75rem;
}

.ref .lbl {
  display: block;
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
  font-size: .95rem;
  word-break: break-all;
}

.small { font-size: .875rem; color: var(--muted); margin: .35rem 0 0; }

ul { margin: 0 0 1.1rem; padding-left: 1.1rem; }
li { margin-bottom: .5rem; }
b { font-weight: 600; }

a {
  color: inherit;
  text-underline-offset: .16em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

a:hover { text-decoration-color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }



/* ---------- the legal pages ---------- */

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: .95rem;
  margin: 1.75rem 0 .4rem;
}

ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
ol li { margin-bottom: .5rem; }

/* The identity block. Required disclosure, so it is set like a fact rather than
   like prose: mono, close-set, nothing to misread. */
.who {
  font-family: var(--mono);
  font-size: .9rem;
  line-height: 1.75;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: var(--panel);
  margin: 0 0 1.75rem;
}

.who b { font-weight: 600; }

.lede {
  color: var(--muted);
  margin-bottom: 2rem;
}

.updated {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .5rem;
}

.note p:last-child { margin-bottom: 0; }

.note {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 .5rem .5rem 0;
  margin: 0 0 1.1rem;
}

nav.pages {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: .875rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.1rem;
}

/* The withdrawal form works without JavaScript, including validation errors. */
.action {
  display: inline-block;
  padding: .85rem 1.1rem;
  border: 1px solid var(--fg);
  border-radius: .4rem;
  background: var(--fg);
  color: var(--bg);
  font: 700 1rem/1.4 var(--display);
  text-decoration: none;
  cursor: pointer;
}

.action:hover { border-color: var(--accent); }
.withdrawal-form { margin: 1.75rem 0; }
.withdrawal-form label {
  display: block;
  margin: 1.4rem 0 .4rem;
  font: 700 1rem/1.4 var(--display);
}
.withdrawal-form input:not([type="hidden"]), .withdrawal-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--muted);
  border-radius: .3rem;
  padding: .7rem;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.5 var(--display);
}
.withdrawal-form textarea { resize: vertical; }
.withdrawal-form p { margin: .4rem 0 .7rem; }
.withdrawal-form textarea + p { margin-top: 1.25rem; }
.withdrawal-form .form-trap { display: none; }
.withdrawal-details { margin: 1.5rem 0; }
.withdrawal-details dt { font-family: var(--display); font-weight: 700; }
.withdrawal-details dd { margin: 0 0 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
