/* Brimbley design tokens, shared by every page. Dark only: the work is video, so the page stays out of its way. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

:root {
  --bg: #0a0a0b;
  --bg-2: #141416;
  --card: #141416;
  --card-2: #1c1c1f;
  --ink: #f4f3ef;
  --ink-2: #a9a8ad;
  --ink-3: #6f6e75;
  --line: #26262a;
  --accent: #ff4d1c;
  --accent-2: #ff8a3d;
  --accent-ink: #0a0a0b;
  --accent-soft: rgba(255, 77, 28, .14);
  --ok: #3ddc84;
  --warn: #ffb020;
  --err: #ff5470;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px rgba(0, 0, 0, .45);
  --display: "Archivo", "Arial Black", sans-serif;
  --serif: var(--display); /* older pages still ask for --serif */
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* every page title speaks the display face, whatever weight the page asked for */
h1, h2 { font-family: var(--display) !important; font-weight: 850 !important; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.015em; }

/* shared header */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 26px;
  padding: 12px max(16px, calc((100vw - 1320px) / 2));
  background: rgba(10, 10, 11, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 900 18px/1 var(--display); font-stretch: 125%; letter-spacing: .02em; text-transform: uppercase; }
/* the mark: a B cut from two lens bowls, on the accent tile */
.logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.logo svg rect { fill: var(--accent); }
.logo svg path { fill: var(--accent-ink); }
.nav .links { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.nav .links a { text-decoration: none; transition: color .15s; white-space: nowrap; }
.nav .links a:hover, .nav .links a.on { color: var(--ink); }
.nav .links a.hot::after { content: "NEW"; margin-left: 6px; font: 600 9px var(--mono); padding: 2px 5px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); vertical-align: 2px; }
.nav .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.alltools button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0; white-space: nowrap; }
.alltools button:hover, .alltools button[aria-expanded="true"] { color: var(--ink); }
.alltools button i { font-style: normal; font-size: 11px; margin-left: 2px; }
/* fixed, so the scrolling link row on phones doesn't clip it; the nav's backdrop-filter makes the nav its frame */
.alltools-panel { position: fixed; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(1060px, calc(100vw - 24px));
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 18px; padding: 18px; border-radius: 20px; background: #121214;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.55); max-height: calc(100vh - 120px); overflow: auto; }
.alltools-panel[hidden] { display: none; }
.alltools-panel b { display: block; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 2px 8px 8px; }
.alltools-panel a { display: block; text-decoration: none; padding: 8px; border-radius: 10px; }
.alltools-panel a:hover { background: var(--card-2); }
.alltools-panel a span { display: block; font-weight: 600; font-size: 14px; color: var(--ink); }
.alltools-panel a small { display: block; font-size: 12px; color: var(--ink-3); }
@media (max-width: 860px) { .alltools-panel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) {
  .nav { flex-wrap: wrap; row-gap: 10px; }
  .nav .links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav .links::-webkit-scrollbar { display: none; }
}
@media (max-width: 600px) { .nav { gap: 12px; } .nav .right .btn { padding: 8px 12px; font-size: 13px; } .logo { font-size: 16px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card-2); text-decoration: none; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: #3a3a40; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 6px 24px rgba(255, 77, 28, .35); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.ghost { background: transparent; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.serif { font-family: var(--display); font-weight: 800; text-transform: uppercase; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }

.field {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--card-2); outline: none;
}
.field:focus { border-color: var(--accent); }
select.field option { background: var(--card-2); }

.footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 16px; color: var(--ink-3); font-size: 14px; }
.footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.footer a { text-decoration: none; }

/* mega footer in the accent colour, like a closing credits card */
footer.mega { margin-top: 100px; background: var(--accent); color: var(--accent-ink); }
.mega-top { max-width: 1320px; margin: 0 auto; padding: 56px 16px 72px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.mega-top h2 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: .9; max-width: 7ch; }
.mega-col { display: flex; flex-direction: column; gap: 10px; }
.mega-col b { font-size: 14px; font-weight: 600; opacity: .55; margin-bottom: 4px; }
.mega-col a { text-decoration: none; font-size: 16px; font-weight: 500; }
.mega-col a:hover { text-decoration: underline; }
.mega-col .gap { height: 22px; }
.mega-bottom { background: var(--bg); color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px max(16px, calc((100vw - 1320px) / 2)); font-size: 14px; }
.flag { width: 21px; height: 14px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.lang { position: relative; color: var(--ink); }
.lang button { display: inline-flex; align-items: center; gap: 9px; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.lang button:hover { border-color: #3a3a40; }
.lang button i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.lang ul { position: absolute; right: 0; bottom: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 190px; z-index: 40;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.lang li { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; cursor: pointer; }
.lang li:hover { background: rgba(255, 255, 255, .06); }
.lang li[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-2); }
@media (max-width: 900px) { .mega-top { grid-template-columns: 1fr 1fr; } .mega-top h2 { grid-column: 1 / -1; } }

[hidden] { display: none !important; }
