/* SuzieQ Enterprise Briefs — shared styles
   Brand colors sampled from the SuzieQ owl logo. */

:root {
  --brand: #68279d;
  --brand-strong: #4e1d77;
  --brand-soft: #f2eafa;
  --accent: #e3c62b;

  --bg: #fbfafd;
  --surface: #ffffff;
  --text: #1d1726;
  --muted: #5c5468;
  --border: #e3dcec;
  --code-bg: #f1ecf7;
  --link: var(--brand);
  --shadow: 0 1px 2px rgba(40, 20, 60, .06), 0 6px 20px rgba(40, 20, 60, .06);

  --radius: 14px;
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

[data-theme="dark"] {
  --brand: #b48ae0;
  --brand-strong: #cfb2ef;
  --brand-soft: #2a1f38;
  --accent: #f0d64a;

  --bg: #120e18;
  --surface: #1b1524;
  --text: #ece6f3;
  --muted: #a99fb7;
  --border: #33293f;
  --code-bg: #2a2136;
  --link: #c9a6f0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);

  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color .2s ease, color .2s ease;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }

code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--code-bg);
  padding: .1em .35em;
  border-radius: 5px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .01em;
}
.brand img { height: 40px; width: auto; }
.brand span small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); line-height: 1.1; }

.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  height: 38px;
  padding: 0 .9rem;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    var(--bg);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}
.hero img { width: 170px; height: auto; filter: drop-shadow(0 8px 24px rgba(104, 39, 157, .3)); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; margin: 0; }

/* ---------- Brief cards ---------- */

.briefs { padding: 1rem 0 4rem; }
.briefs h2 { font-size: 1.4rem; margin: 0 0 1.25rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.card:has(a.stretched):hover { transform: translateY(-3px); border-color: var(--brand); }

.card .tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.card h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .6rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { margin: 0 0 1rem; color: var(--muted); font-size: .97rem; }
.card ul { margin: 0 0 1.25rem; padding-left: 1.1rem; font-size: .93rem; }
.card ul li { margin-bottom: .3rem; }

.card .cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--brand);
  font-size: .95rem;
}

.card.soon { border-top-color: var(--border); }
.card.soon .cta { color: var(--muted); }
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--accent);
  color: #2a2200;
  margin-left: .4rem;
  vertical-align: middle;
}

/* ---------- QR cards (fixed, below the briefs) ---------- */

.connect { padding: 0 0 4rem; }
.connect h2 { font-size: 1.4rem; margin: 0 0 1.25rem; }

.qr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* QR codes need dark-on-light to scan, so keep a white tile in dark mode too */
.qr-card img {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.qr-card .tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.qr-card h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .5rem; }
.qr-card p { margin: 0 0 .5rem; color: var(--muted); font-size: .97rem; }
.qr-card .qr-url { font-weight: 600; color: var(--brand); margin: 0; }

@media (max-width: 420px) {
  .qr-cards { grid-template-columns: 1fr; }
  .qr-card { flex-direction: column; text-align: center; }
}

/* ---------- Brief article ---------- */

.brief { padding: 2.5rem 0 4rem; }
.brief .wrap { max-width: 800px; }

.back { display: inline-block; margin-bottom: 1.5rem; font-size: .95rem; text-decoration: none; }
.back:hover { text-decoration: underline; }

.brief header { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.brief h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -.015em; }
.brief .subtitle { font-size: 1.2rem; color: var(--brand); font-weight: 600; margin: 0; }

.brief h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 .75rem;
  padding-left: .8rem;
  border-left: 4px solid var(--brand);
  line-height: 1.3;
}
.brief h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; color: var(--brand); }
.brief p { margin: 0 0 1rem; }
.brief > .wrap > ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.brief > .wrap > ul li { margin-bottom: .3rem; }
.brief strong { color: var(--brand-strong); }

.callout {
  background: var(--brand-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0 1.5rem;
}
.callout p:first-child { margin-top: 0; }
.callout ul, .callout ol { margin: .25rem 0 0; padding-left: 1.2rem; }
.callout li { margin-bottom: .35rem; }
.callout li:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero img { width: 110px; order: -1; }
  .brand span small { display: none; }
}

/* ---------- Print (briefs are meant to fit on 1–2 pages) ---------- */

@media print {
  :root, [data-theme="dark"] {
    --bg: #fff; --surface: #fff; --text: #000; --muted: #333;
    --brand: #68279d; --brand-strong: #4e1d77; --brand-soft: #f4eefa; --border: #ccc;
    color-scheme: light;
  }
  body { font-size: 11pt; }
  .site-header { position: static; }
  .theme-toggle, .back { display: none; }
  .brief { padding: 0; }
  .brief h2 { break-after: avoid; }
  a { color: inherit; }
}
