/* YouCanOwnIt landing concept. Plain on purpose: no brand has been chosen yet. */

:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #1b1d21;
  --muted: #565b63;
  --line: #e3e0d8;
  --accent: #0b6b5d;
  --accent-ink: #ffffff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.55 var(--font);
}

/* The header's border runs the full width; its content lines up with the page's column (42rem, 1rem of padding) at any width. */
.site-header { border-bottom: 1px solid var(--line); padding: 0.5rem max(1rem, calc((100% - 42rem) / 2 + 1rem)); }

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.accent { color: var(--accent); }

main { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; overflow-wrap: anywhere; }

h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.01em; }

h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }

p, ul { margin: 0 0 1rem; }

ul { padding-left: 1.25rem; }

li { margin-bottom: 0.4rem; }

a { color: var(--accent); text-underline-offset: 0.15em; }

a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.lead { font-size: 1.2rem; }

.notice { padding: 0.75rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: #fff; }

.muted { color: var(--muted); }

.small { font-size: 0.9rem; }

.waitlist { display: grid; gap: 0.5rem; max-width: 24rem; margin-bottom: 0.75rem; }

.waitlist label { font-weight: 600; }

.waitlist input,
.waitlist select {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--muted);
  border-radius: 6px;
  font: inherit;
}

.waitlist button,
main form button {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 30rem) { h1 { font-size: 1.6rem; } }

.site-footer { max-width: 42rem; margin: 0 auto; padding: 0 1rem 2rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; }

a.button {
  display: inline-block;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

/* A store's theme (docs/STORE_BRANDING_DESIGN.md): the six palettes a merchant may choose from, each a pair of colours on the page body.
   test/branding-themes.test.ts requires every pair to reach 4.5 to 1 against the paper and the button text. forest is the default and
   equals the :root pair above, so a store with no branding looks as it always has. */
.theme-forest { --accent: #0b6b5d; --accent-ink: #ffffff; }
.theme-ocean { --accent: #1d4f91; --accent-ink: #ffffff; }
.theme-plum { --accent: #7a2e6e; --accent-ink: #ffffff; }
.theme-clay { --accent: #9a3d1f; --accent-ink: #ffffff; }
.theme-slate { --accent: #3b4a5a; --accent-ink: #ffffff; }
.theme-ink { --accent: #1b1d21; --accent-ink: #ffffff; }

.tagline { margin: 0; padding: 0 0 0.5rem; color: var(--muted); font-size: 0.95rem; }

/* The owner's theme choice: a swatch drawn from the same class, so no inline style is needed. */
.swatch { display: inline-block; width: 1.25rem; height: 1.25rem; border-radius: 50%; vertical-align: -0.2em; margin-right: 0.4rem; background: var(--accent); border: 1px solid var(--line); }
.picker { border: 0; padding: 0; margin: 0 0 1rem; }
.picker label { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.3rem 0; }
.picker input[type="radio"] { flex: none; width: 1.25rem; min-height: 0; margin: 0; padding: 0; }
.agree { display: flex; align-items: flex-start; gap: 0.6rem; min-height: 44px; padding: 0.3rem 0; margin: 0.5rem 0; }
.agree input[type="checkbox"] { flex: none; width: 1.5rem; height: 1.5rem; min-height: 0; margin: 0.1rem 0 0; padding: 0; }
.picker legend { font-weight: 600; padding: 0; margin-bottom: 0.25rem; }
.waitlist textarea { padding: 0.5rem 0.75rem; border: 1px solid var(--muted); border-radius: 6px; font: inherit; min-height: 8rem; resize: vertical; }

/* Report tables scroll sideways inside their own box on a narrow screen, so the page itself never does. */
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; min-width: 100%; font-size: 0.95rem; }
caption { text-align: left; font-weight: 700; padding: 0.25rem 0; }
th, td { border-bottom: 1px solid var(--line); padding: 0.4rem 0.6rem; text-align: right; white-space: nowrap; }
th[scope="row"], th[scope="col"]:first-child { text-align: left; }
thead th { background: #fff; }

/* Photos on the public store pages cannot be dragged out, long-pressed to save or selected. A screenshot still works; this only stops the casual save.
   pointer-events: none makes a click on a photo go to the link around it, so a photo in a link still opens the product. */
.store-photo { -webkit-touch-callout: none; -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; pointer-events: none; }
.photo-link { display: inline-block; }
/* A photo never runs wider than the page. */
.store-photo, .own-photo { max-width: 100%; height: auto; display: block; margin: 0.5rem 0; }
.photo-list { list-style: none; padding: 0; }

/* Buttons that sit together (the admin pages): one row with a gap, wrapping on a narrow screen. The first is the primary action, the rest are outlined. */
.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem; margin: 0.75rem 0; }
.actions form { margin: 0; }

main form button.secondary,
main button.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

/* The permanent action lives alone at the bottom of a page, after a rule, in red. The button is dimmed and does not take a click until its box is ticked (the page may run no script, so this is the
   style's own gate; the box is also required, so the browser refuses a submit without it, and the server refuses it too). */
.danger-zone hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0 0; }
.danger-zone h2 { margin-top: 1.5rem; }
main form button.danger,
main button.danger {
  background: #b00020;
  color: #ffffff;
}
.danger-zone form:has(input[name="confirm"]:not(:checked)) button.danger { opacity: 0.45; cursor: not-allowed; }
