/*
 * Curator Quiz site styles. One stylesheet for the whole marketing site.
 *
 * THE BRAND, not Polaris. Palette comes from brand/README.md, which is the widget's
 * "Classic" preset: emerald #1f6f5c, ink #14231f, sage #dfe6e3. The earlier iteration
 * dressed these in Shopify-admin neutrals and read like a settings page; this one uses
 * them the way the icon does: ink surfaces, sage tints, emerald spent with intent.
 */

:root {
  /* Espresso / cream / terracotta. Deliberately nowhere near Shopify's green so the
     site reads as Curator Quiz, not as an extension of the admin. */
  --accent: #c34a26;
  --accent-deep: #9e3a1c;
  --ink: #211a15;
  --sand: #f0e7db;

  --bg: #faf5ee;            /* warm cream paper */
  --panel: #ffffff;
  --text: #241c16;
  --text-soft: #6b5d52;
  --line: #e0d4c4;

  --on-ink: #f3eae2;
  --on-ink-soft: #b3a191;

  --brand: var(--accent);
  --emerald: var(--accent);          /* legacy aliases so older variants keep rendering */
  --emerald-deep: var(--accent-deep);
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --measure: 66ch;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---- header: the mark, the wordmark, two links ---------------------------------- */
header.site { padding: 18px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }
nav a { color: var(--text-soft); text-decoration: none; margin-left: 22px; font-size: 15px; font-weight: 500; }
nav a:hover, nav a:focus-visible { color: var(--text); text-decoration: underline; }

main { padding: 0 0 72px; }
main .wrap > :first-child { margin-top: 0; }

h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.15; }
h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 16px; font-weight: 750; }
h2 { font-size: 24px; margin: 44px 0 10px; font-weight: 700; }
h3 { font-size: 17px; margin: 24px 0 6px; font-weight: 650; }
p, li { color: var(--text-soft); }
p { margin: 0 0 14px; }
main a { color: var(--accent); }

.lede { font-size: 18px; color: var(--text-soft); margin-bottom: 28px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 24px 0;
}

.meta { font-size: 14px; color: var(--text-soft); }
/* Content pages (privacy, support) read best at prose width. */
.prose-page { max-width: 760px; margin: 0 auto; padding: 40px 24px 0; }

table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text); font-weight: 600; }
.scroll { overflow-x: auto; }

/* ---- footer: ink, like the icon's alternate tile -------------------------------- */
footer.site { background: var(--ink); color: var(--on-ink-soft); padding: 36px 0 44px;
  font-size: 14px; margin-top: 72px; }
footer.site .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
footer.site a { color: var(--on-ink); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site img { width: 20px; height: 20px; border-radius: 5px; margin-right: 6px; }

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