/*
 * ViewersCut: shared brand for both sites (see the "Shared brand" board on the
 * design canvas). Site-specific styles are in viewers.css (.com) and
 * project.css (.org). Every stylesheet in this folder is linked on every page.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage-grotesque-latin-b86257e5.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans-latin-570a9648.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/jetbrains-mono-latin-8a992d39.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --ink: #14161B;
  --ink-2: #3B404A;
  --ink-3: #565C67;
  --ink-4: #6A707B;
  --line: #E3E5EA;
  --line-2: #EEF0F3;
  --line-strong: #C9CDD4;
  --ground: #F3F4F6;
  --page: #FBFBFC;
  --card: #FFFFFF;
  --player: #0E1015;
  --player-2: #14161B;
  --player-line: #262A32;
  --player-edge: #3A3F48;
  --on-dark: #ECEDEF;
  --on-dark-2: #C4C8CF;
  --on-dark-3: #9BA0AA;
  --accent: #F2A93B;
  --on-accent: #1A1204;
  --link: #7A4F00;

  --ok-bg: #E6F6F3;  --ok-fg: #14594F;
  --warn-bg: #FFF3DC; --warn-fg: #6B4500; --warn-line: #F5D9A3;
  --review-bg: #FFE8D6; --review-fg: #7A3410; --review-tint: #FFFAF0;
  --bad-bg: #FDE7E7; --bad-fg: #8A1C1C;

  --cat-language: #6FA8FF;
  --cat-sex-nudity: #E77FB3;
  --cat-violence: #F07A3A;
  --cat-substances: #3FBFAE;
  --cat-frightening: #A58BFF;
  --cat-other: #9BA0AA;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
a:hover { color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; }
code, kbd, pre, .mono { font-family: var(--font-mono); }
kbd { font-size: 0.85em; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Layout ---------------------------------------------------------------- */

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 14px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.row--baseline { align-items: baseline; }
.row--between { justify-content: space-between; }
.section { padding-block: 72px; }
.section--tight { padding-block: 48px; }
.section--white { background: var(--card); border-block: 1px solid var(--line); }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }

/* Type ------------------------------------------------------------------ */

.display, .h1, .h2 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
.display { font-size: clamp(38px, 4.4vw, 56px); line-height: 1.02; font-weight: 750; letter-spacing: -0.025em; }
.h1 { font-size: clamp(32px, 3.4vw, 42px); line-height: 1.05; font-weight: 750; }
.h2 { font-size: 28px; font-weight: 720; letter-spacing: -0.015em; }
.lede { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 44em; }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }

/* Brand ----------------------------------------------------------------- */

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand__tag {
  font-family: var(--font-mono); font-size: 12px; padding: 2px 7px;
  border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink-2);
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #FFFFFF; }
.btn--primary:hover { background: #2A2E37; color: #FFFFFF; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: #E79B28; color: var(--on-accent); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #FFFFFF; }
.btn--quiet { border-color: var(--line-strong); color: var(--ink-2); background: var(--card); }
.btn--danger { border-color: var(--bad-fg); color: var(--bad-fg); background: transparent; }
.btn--lg { min-height: 52px; padding: 0 22px; border-radius: 12px; font-size: 17px; }
.btn--sm { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 14px; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
form.button_to { display: inline; }

/* Badges and dots ------------------------------------------------------- */

.badge {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.badge--ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge--warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge--review { background: var(--review-bg); color: var(--review-fg); }
.badge--bad { background: var(--bad-bg); color: var(--bad-fg); }
.badge--outline { background: var(--card); border: 1px solid var(--line); color: var(--ink); }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--dot, var(--cat-other)); }
.dot--sm { width: 8px; height: 8px; }
.dot--empty { background: transparent; border: 1.5px solid #B9BEC7; }
[data-category="language"] { --dot: var(--cat-language); }
[data-category="sex-nudity"] { --dot: var(--cat-sex-nudity); }
[data-category="violence"] { --dot: var(--cat-violence); }
[data-category="substances"] { --dot: var(--cat-substances); }
[data-category="frightening"] { --dot: var(--cat-frightening); }
[data-category="other"] { --dot: var(--cat-other); }

/* A stacked bar of how a list's moments split by category. */
.catbar { display: flex; height: 8px; width: 160px; border-radius: 4px; overflow: hidden; background: var(--line-2); }
.catbar > span { background: var(--dot); }
.catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.catlist li { display: flex; align-items: center; gap: 6px; }

/* Forms ----------------------------------------------------------------- */

.search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; }
.search input[type="search"] {
  flex: 1 1 320px; min-width: 0; min-height: 56px; padding: 0 18px; border-radius: 12px;
  border: 1.5px solid var(--ink); background: var(--card); font: inherit; font-size: 17px; color: var(--ink);
}
.search .btn { min-height: 56px; padding: 0 24px; border-radius: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea {
  font: inherit; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--card);
}

/* Cards and tables ------------------------------------------------------ */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card--pad { padding: 20px; }
.card--dashed { border-style: dashed; border-color: var(--line-strong); }

.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; color: var(--ink-3); font-size: 13px; font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table__title { color: var(--ink); font-weight: 600; text-decoration: none; }
.table__title:hover { text-decoration: underline; }
.table__sub { font-size: 13px; color: var(--ink-3); }

/* Flash ----------------------------------------------------------------- */

.flash { padding: 12px 16px; border-radius: 10px; background: var(--ok-bg); color: var(--ok-fg); font-weight: 500; }
.flash--alert { background: var(--bad-bg); color: var(--bad-fg); }

/* Header and footer (both sites) ---------------------------------------- */

.crossbar { background: var(--ink); color: var(--on-dark); font-size: 14px; }
.crossbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: center; padding-block: 9px; }
.crossbar a { color: var(--accent); font-weight: 600; }

.site-header { border-bottom: 1px solid var(--line); background: var(--card); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 14px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; flex: 1 1 auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-header__end { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.site-header__end a:not(.btn) { color: var(--ink-2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--line-2); vertical-align: middle; }

.site-footer { border-top: 1px solid var(--line); background: var(--card); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-block: 44px 52px; }
.site-footer__about { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav span { font-weight: 600; }
.site-footer nav a { color: var(--ink-2); }
