/* Shotcast Looks catalog, generated by src/seo/looksCatalog.ts. Tokens mirror
   src/ui/styles/tokens.css and must stay in step with it, including the fill/ink
   role split (--accent fills, --accent-text inks, --accent-ink rides on a fill).
   Static pages: theme follows the OS via prefers-color-scheme. */

:root {
  --wrap: 720px;

  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface2: #f1f1f5;
  --hair: rgba(60, 60, 67, 0.13);
  --hair-strong: rgba(60, 60, 67, 0.22);
  --t1: #1c1c1e;
  --t2: #55555c;
  --t3: #65656c;
  /* Fill role vs ink role, same split as the app: --accent fills, --accent-text inks.
     The old single #b26a12 was 4.23:1 as link text and 4.23:1 under white ink, so it
     failed both ways at once. */
  --accent: #e08a1f;
  --accent-text: #9c5a08;
  --accent-ink: #1c1c1e;
  --tier-prime: #e07c0e;
  --tier-strong: #c5882a;
  --tier-fair: #9c8e62;
  --tier-quiet: #7e8a99;
  --watch: var(--accent-text);
  --ok: #2f9e6f;
  --card-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.07);
  --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.06), 0 18px 44px rgba(0, 0, 0, 0.12);
  --font-display: -apple-system, "SF Pro Display", system-ui, sans-serif;
  --font-text: -apple-system, "SF Pro Text", system-ui, sans-serif;

  /* Per-category art palette. Two wash stops (--cat-a top glow, --cat-b diagonal
     wash) plus --cat-ink for the decorative motif. One recipe, eight tunings. */
  --cat-a: rgba(120, 130, 145, 0.22);
  --cat-b: rgba(120, 130, 145, 0.1);
  --cat-ink: #6b7688;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface2: #262629;
    --hair: rgba(120, 120, 128, 0.28);
    --hair-strong: rgba(120, 120, 128, 0.42);
    --t1: #ffffff;
    --t2: #c7c7d1;
    --t3: #a8a8b2;
    --accent: #f0a23c;
    --accent-text: var(--accent);
    --accent-ink: #1c1c1e;
    --tier-prime: #ffb23e;
    --tier-strong: #e3b051;
    --tier-fair: #b7a878;
    --tier-quiet: #93a1b4;
    --watch: var(--accent-text);
    --ok: #54c79a;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-text); }
a:focus-visible,
.cta:focus-visible,
.card-link:focus-visible,
.related-list a:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--t1);
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  box-shadow: var(--card-shadow);
  z-index: 10;
}
.skip:focus { left: 0; }

/* Site chrome */
.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 20px 8px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.014em;
  color: var(--t1);
  text-decoration: none;
}
.site-looks {
  font-size: 15px;
  font-weight: 500;
  color: var(--t2);
  text-decoration: none;
}
.site-looks:hover { color: var(--accent-text); }

main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 20px 40px;
}

/* Breadcrumb */
.crumbs { font-size: 14px; margin: 4px 0 24px; }
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  color: var(--t3);
}
.crumbs li { display: flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--t3); }
.crumbs a { color: var(--t2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs [aria-current="page"] { color: var(--t2); }

/* Type */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t2);
  margin: 0 0 8px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 6.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.024em;
  margin: 0 0 16px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.016em;
  margin: 40px 0 12px;
}
.lede {
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--t1);
  margin: 0 0 22px;
}
p { margin: 0 0 16px; color: var(--t1); }

/* Hero + category art. One background recipe driven by the --cat-* variables each
   .cat-<x> sets: a soft top-centre glow over a diagonal wash, on surface2. */
.hero,
.card-art {
  background-color: var(--surface2);
  background-image:
    radial-gradient(115% 125% at 50% -12%, var(--cat-a) 0%, transparent 58%),
    linear-gradient(158deg, var(--cat-b) 0%, transparent 72%);
  color: var(--cat-ink);
}

.hero {
  aspect-ratio: 16 / 8;
  width: 100%;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin: 4px 0 24px;
  box-shadow: inset 0 0 0 1px var(--hair), var(--card-shadow);
  overflow: hidden;
}
.hero svg {
  width: 42%;
  max-width: 200px;
  opacity: 0.95;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.06));
}

/* Light-mode category tunings */
.cat-light      { --cat-a: rgba(255, 197, 92, 0.55); --cat-b: rgba(255, 214, 138, 0.4); --cat-ink: #a06a0c; }
.cat-sunset     { --cat-a: rgba(255, 168, 92, 0.62); --cat-b: rgba(255, 150, 96, 0.34); --cat-ink: #bd5c0f; }
.cat-storm      { --cat-a: rgba(168, 140, 224, 0.5);  --cat-b: rgba(150, 120, 210, 0.28); --cat-ink: #6a4bb0; }
.cat-atmospheric{ --cat-a: rgba(150, 172, 205, 0.5);  --cat-b: rgba(130, 155, 190, 0.28); --cat-ink: #5b7089; }
.cat-wind       { --cat-a: rgba(120, 205, 186, 0.5);  --cat-b: rgba(96, 185, 168, 0.28);  --cat-ink: #3d8676; }
.cat-coastal    { --cat-a: rgba(126, 188, 232, 0.52); --cat-b: rgba(96, 160, 214, 0.28);  --cat-ink: #36699c; }
.cat-precip     { --cat-a: rgba(150, 168, 195, 0.5);  --cat-b: rgba(126, 146, 178, 0.28); --cat-ink: #566579; }
.cat-night      { --cat-a: rgba(140, 154, 195, 0.52); --cat-b: rgba(110, 126, 170, 0.3);  --cat-ink: #4b5878; }

@media (prefers-color-scheme: dark) {
  .cat-light      { --cat-a: rgba(240, 162, 60, 0.34); --cat-b: rgba(240, 162, 60, 0.12); --cat-ink: #f0c274; }
  .cat-sunset     { --cat-a: rgba(244, 138, 58, 0.42); --cat-b: rgba(240, 110, 66, 0.16); --cat-ink: #ffb23e; }
  .cat-storm      { --cat-a: rgba(158, 122, 224, 0.4);  --cat-b: rgba(150, 116, 214, 0.15); --cat-ink: #c3aef0; }
  .cat-atmospheric{ --cat-a: rgba(126, 148, 182, 0.4);  --cat-b: rgba(120, 142, 176, 0.15); --cat-ink: #aebfd6; }
  .cat-wind       { --cat-a: rgba(84, 176, 158, 0.4);   --cat-b: rgba(80, 168, 150, 0.15);  --cat-ink: #82d3c3; }
  .cat-coastal    { --cat-a: rgba(74, 138, 198, 0.42);  --cat-b: rgba(70, 130, 188, 0.16);  --cat-ink: #86b7e6; }
  .cat-precip     { --cat-a: rgba(112, 132, 158, 0.4);  --cat-b: rgba(105, 124, 148, 0.15); --cat-ink: #a7b6cc; }
  .cat-night      { --cat-a: rgba(104, 120, 158, 0.46); --cat-b: rgba(96, 112, 148, 0.18);  --cat-ink: #bcc5dc; }
}

/* Tags + badges */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; }
.badge, .tag {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  color: var(--t2);
}
/* Confidence badge mirrors the app's Solid = filled dot / Watch = hollow ring
   language. The dot carries the meaning so it is never signalled by colour
   alone; text stays --t1 on a neutral tint for AA contrast. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--t1);
  background: var(--surface2);
  border-color: var(--hair-strong);
}
.badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.badge-solid::before { background: var(--ok); }
.badge-watch::before { background: transparent; border: 2px solid var(--watch); }

.watch p { border-left: 3px solid var(--watch); padding-left: 16px; margin-top: 0; }

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 12px;
  margin-top: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.cta:hover { filter: brightness(1.06); }
.cta:active { transform: scale(0.98); }
.cta-block {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 24px;
  margin-top: 36px;
  box-shadow: var(--card-shadow);
}
.cta-block > :first-child { margin-top: 0; }
.cta-block p { color: var(--t2); }

/* Related */
.related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  text-decoration: none;
  color: var(--t1);
  font-weight: 500;
  font-size: 15px;
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.related-list a:hover { border-color: var(--accent); transform: translateY(-1px); }

/* Index */
.intro { margin-bottom: 8px; }
.intro .lede { max-width: 34em; }
.jump-nav { margin: 18px 0 8px; }
.jump-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  text-decoration: none;
  color: var(--t1);
  font-size: 14px;
  font-weight: 500;
  background: var(--surface);
}
.jump-nav a:hover { border-color: var(--accent); }
.cat-section { margin-top: 44px; }
.cat-section > h2 {
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.cat-desc { color: var(--t2); font-size: 15px; margin: 8px 0 0; max-width: 44em; }
.card-grid {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.card { margin: 0; }
.card-link {
  display: flex;
  gap: 14px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 12px;
  text-decoration: none;
  color: var(--t1);
  height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card-link:hover {
  border-color: var(--hair-strong);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}
.card-art {
  flex: 0 0 auto;
  align-self: stretch;
  width: 76px;
  min-height: 64px;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px var(--hair);
  display: grid;
  place-items: center;
}
.card-art svg { width: 56px; height: 34px; opacity: 0.95; }
.card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 2px 2px 2px 0; }
.card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-sub {
  font-size: 13px;
  line-height: 1.45;
  color: var(--t2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.site-footer {
  max-width: var(--wrap);
  margin: 48px auto 0;
  padding: 24px 20px 48px;
  border-top: 1px solid var(--hair);
  color: var(--t2);
  font-size: 14px;
}
.site-footer p { color: var(--t2); }
.site-footer a { color: var(--accent-text); }
.site-footer .fine { color: var(--t3); margin-top: 6px; }

/* Legal pages (Privacy / Terms) — a plain reading column; h1/h2/p/.lede/.eyebrow
   inherit the shared type scale. */
.legal { max-width: 42rem; }
.legal h1 { font-size: clamp(30px, 5.6vw, 40px); }
.legal h2 { font-size: 20px; margin-top: 34px; }
.legal .lede { font-size: 19px; }
.legal-updated {
  font-size: 14px;
  color: var(--t3);
  margin: -8px 0 22px;
}
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 560px) { .look .hero { aspect-ratio: 16 / 6.5; } }

@media (prefers-reduced-motion: reduce) {
  .card-link,
  .related-list a,
  .cta { transition: none; }
  .card-link:hover,
  .related-list a:hover { transform: none; }
  .cta:active { transform: none; }
}
