/* auditthis.ai site stylesheet. Served from site/ and allowed by the Content-Security-Policy's
   style-src 'self'. Pages carry no inline style. CC0 1.0. */
:root { color-scheme: light dark; --accent: #b45309; --accent-2: #0f766e; --ink: #1e1b4b; --pad: clamp(1.25rem, 4vw, 3rem); }
@media (prefers-color-scheme: dark) { :root { --accent: #fbbf24; --accent-2: #2dd4bf; --ink: #a5b4fc; } }
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: Canvas; color: CanvasText;
}
a { color: var(--accent); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: Canvas; color: CanvasText; border: 2px solid var(--accent);
  padding: .5rem 1rem; border-radius: 6px;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* Gradient band: brand row and navigation on every page; the home page adds the hero below it. */
.band {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 38%, #0f766e 78%, #14b8a6 100%);
  color: #fff;
  --hpad: 1.4rem;
  padding: var(--hpad) var(--pad);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.band a { color: #fff; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; flex: none; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.brand span { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.brand .tld { color: #fbbf24; }
.topnav { display: flex; flex-wrap: wrap; gap: .45rem .5rem; font-size: .9rem; }
.topnav a {
  text-decoration: none; padding: .3rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.topnav a:hover { background: rgba(255, 255, 255, .24); border-color: #fff; }
.topnav a[aria-current="page"] { background: #fbbf24; border-color: #fbbf24; color: #1e1b4b; font-weight: 600; }

/* Home page hero, inside the band under the top bar. */
/* The home hero sits under the top bar. The text column is as tall as the illustration plus the band's
   vertical padding, and its 2 sections are spaced evenly, so the gap from the top bar to the first line, between
   the 2 sections, and from the last line to the bottom of the band are equal; the illustration is centred in
   that column, hence --hpad from the top bar, the bottom, and the right edge. */
.band:has(.hero-inner) { padding-bottom: 0; }
.hero-inner { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); --art-w: clamp(110px, 10vw, 128px); }
.hero-text { flex: 1 1 auto; min-width: 0; min-height: calc(var(--art-w) * 1.3 + 2 * var(--hpad)); display: flex; flex-direction: column; justify-content: space-evenly; }
.hero-art { flex: 0 0 auto; width: var(--art-w); height: auto; display: block; margin-right: calc(var(--hpad) - var(--pad)); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); }
.hero-promise { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; line-height: 1.3; }
.hero-sub { margin: 0; font-size: clamp(.95rem, 1.5vw, 1.05rem); line-height: 1.5; color: rgba(255, 255, 255, .92); }

/* Page body. */
main { padding: 1.6rem var(--pad) 1.5rem; min-width: 0; }
main a, main code { overflow-wrap: anywhere; }
h1.page-title { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 .4rem; color: var(--ink); line-height: 1.2; }
.page-lead { font-size: 1.08rem; margin: 0 0 1.6rem; opacity: .9; }
h2 { font-size: 1.35rem; margin-top: 2.4rem; color: var(--ink); }
main > h2:first-child { margin-top: 0; }
h3 { font-size: 1.1rem; margin-top: 1.8rem; color: var(--accent-2); }
.lead { font-size: 1.1rem; }
ol li, ul li { margin: .35rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
pre {
  padding: .8rem 1rem; border: 1px solid #8884; border-radius: 6px;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: .8rem 0 1.4rem; }
th, td { border: 1px solid #8884; padding: .4rem .55rem; text-align: left; vertical-align: top; }
th { background: #88888812; color: var(--ink); }
details { margin: 1rem 0; }
summary { cursor: pointer; font-weight: 600; }
.note {
  margin: 1.4rem 0; padding: .85rem 1.1rem;
  border: 1px solid #8884; border-left: 3px solid var(--accent-2); border-radius: 8px;
  background: #88888812;
}
.due { display: inline-block; font-size: .78rem; font-weight: 600; padding: .05rem .45rem; border-radius: 999px; background: var(--accent); color: Canvas; margin-left: .4rem; white-space: nowrap; }

/* Cards on the home page. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin: 1.2rem 0 .4rem; }
.card {
  border: 1px solid #8884; border-top: 4px solid var(--accent-2); border-radius: 10px;
  padding: 1.1rem 1.25rem 1.2rem; background: #88888812;
  display: flex; flex-direction: column; gap: .5rem;
}
.card h3 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.card p { margin: 0; }
.card .cta { margin-top: auto; padding-top: .6rem; font-weight: 600; }

/* Prompt pages. */
.copywrap { position: relative; }
.copywrap pre { padding-right: 4.6rem; }
.copy-btn {
  position: absolute; top: .5rem; right: .5rem;
  font: 600 .8rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: .38rem .7rem; border-radius: 6px;
  border: 1px solid var(--accent); background: Canvas; color: var(--accent);
  cursor: pointer;
}
.copy-btn:hover { background: var(--accent); color: Canvas; }
.prompt-links { font-size: .9rem; margin: .4rem 0 0; }

/* Footer on every page. */
footer { margin-top: 1rem; padding: 1rem var(--pad) 1.5rem; font-size: .9rem; border-top: 1px solid #8884; text-align: center; }
footer p { margin: .5rem 0; }
footer h2 { font-size: 1.1rem; margin-top: 0; }

@media (max-width: 700px) {
  .band:has(.hero-inner) { padding-bottom: var(--hpad); }
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: .8rem; margin-top: var(--hpad); }
  .hero-text { min-height: 0; gap: .6rem; }
  .hero-art { width: 110px; margin-right: 0; }
  table { display: block; overflow-x: auto; }
}
