/* tobakolt.eu — the free programs page (design: design_handoff_tobakolt_downloads). Square corners, no shadows. */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/jbmono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/jbmono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a0a0a;
  --fg: #f5f3f2;
  --red: #e1251b;
  --link: #ff3b2f;
  --link-hover: #ff6a60;
  --dim1: #c9c4c1;
  --dim2: #a8a3a0;
  --dim3: #8a8582;
  --line1: #3a3735;
  --line2: #2a2726;
  --panel-text: #2a2726;
  --panel-label: #6b6663;
  --panel-line: #d9d4d1;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); min-height: 100vh; }
body.locked { overflow: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
::selection { background: var(--red); color: #fff; }
html { scrollbar-color: var(--line1) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.mono { font-family: var(--mono); }

.page { max-width: 1160px; margin: 0 auto; padding: 24px 24px 56px; display: flex; flex-direction: column; gap: 64px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 2px solid var(--fg); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand svg { display: block; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-name i { font-style: normal; color: var(--red); }
.count { font-family: var(--mono); font-size: 12px; color: var(--dim2); }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { margin: 0; font-size: clamp(36px, 5.5vw, 64px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 900;
  text-transform: uppercase; }
.hero p { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.55; color: var(--dim1); text-wrap: pretty; }

/* Filter */
.filters { display: flex; flex-wrap: wrap; margin-bottom: 24px; }
.filters[hidden] { display: none; }
.filters button { font-family: var(--mono); font-size: 13px; padding: 10px 16px; cursor: pointer; border: 1px solid var(--line1);
  margin-right: -1px; background: transparent; color: var(--dim1); border-radius: 0; transition: background .12s, color .12s; }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* List */
.list { border-top: 1px solid var(--line1); }
.row { width: 100%; text-align: left; font: inherit; color: var(--fg); cursor: pointer; background: transparent; border: none;
  border-bottom: 1px solid var(--line2); border-radius: 0; padding: 22px 12px; display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 20px; row-gap: 8px; transition: background .12s; }
.row[hidden] { display: none; }
@media (hover: hover) { .row:hover { background: var(--red); } }
.row-icon { flex: 0 0 52px; width: 52px; height: 52px; display: flex; }
.row-icon img { width: 52px; height: 52px; object-fit: cover; display: block; }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 500; }
.row-icon .ph { border: 1px solid var(--line1); background: repeating-linear-gradient(45deg, #141312 0 4px, #1c1b1a 4px 8px);
  font-size: 13px; color: var(--dim2); }
.row-name { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-name b { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.row-name span { font-family: var(--mono); font-size: 12px; opacity: 0.65; }
.row-short { flex: 2 1 280px; min-width: 0; font-size: 15px; line-height: 1.45; opacity: 0.85; text-wrap: pretty; }
.row-arrow { flex: 0 0 24px; margin-left: auto; text-align: right; font-size: 22px; font-weight: 600; }
.empty { margin: 0; padding: 22px 12px; border-bottom: 1px solid var(--line2); font-family: var(--mono); font-size: 13px; color: var(--dim2); }

/* Footer */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px;
  color: var(--dim3); padding-top: 20px; border-top: 2px solid var(--fg); }

/* Detail (centred dialog) */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(10, 10, 10, 0.78); display: flex; justify-content: center;
  align-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.panel { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto;
  background: var(--fg); color: var(--bg); display: flex; flex-direction: column; transform: translateY(16px);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1); scrollbar-color: #b9b4b1 var(--fg); }
.panel:focus { outline: none; }
.overlay.open .panel { transform: none; }
.panel-head { background: var(--red); color: #fff; padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 28px; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; }
.close { width: 36px; height: 36px; border: 1.5px solid #fff; background: transparent; color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; border-radius: 0; padding: 0; font-family: var(--sans); }
.close:hover { background: #fff; color: var(--red); }
.close:focus-visible { outline-color: #fff; }
.panel-id { display: flex; align-items: center; gap: 18px; }
.panel-icon { flex: 0 0 72px; width: 72px; height: 72px; display: flex; }
.panel-icon img { width: 72px; height: 72px; object-fit: cover; display: block; background: #fff; }
.panel-icon .ph { border: 1.5px solid rgba(255, 255, 255, 0.7); font-size: 16px; color: #fff;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 4px, rgba(255, 255, 255, 0.16) 4px 8px); }
.panel-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.panel-title h2 { margin: 0; font-size: 40px; font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; overflow-wrap: anywhere; }
.panel-title span { font-family: var(--mono); font-size: 13px; opacity: 0.9; }
.panel-body { padding: 28px; display: flex; flex-direction: column; gap: 26px; flex: 1; }
.panel-body p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--panel-text); text-wrap: pretty; }
.features { margin: 0; padding: 0; list-style: none; }
.features li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.5; padding: 10px 0;
  border-top: 1px solid var(--panel-line); }
.features li::before { content: '+'; color: var(--red); font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--bg); border-bottom: 2px solid var(--bg); }
.facts div { padding: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.facts div + div { padding-left: 14px; border-left: 1px solid var(--panel-line); }
.facts dt { font-family: var(--mono); font-size: 11px; color: var(--panel-label); }
.facts dd { margin: 0; font-size: 15px; font-weight: 600; }
.dl { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px; height: 60px;
  background: var(--bg); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; transition: background .12s; }
.dl:hover { background: var(--red); color: #fff; }
.extras { margin: -12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--mono); font-size: 12px; }
.extras[hidden], .extras a[hidden] { display: none; }
.extras a { color: var(--panel-label); text-decoration: underline; text-underline-offset: 3px; }
.extras a:hover { color: var(--red); }
.dl .mono { font-size: 12px; font-weight: 400; opacity: 0.8; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
