@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/schibsted-grotesk.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }
/* tanvirchowdhury.com — Tanvir Chowdhury Design System v2 (final 2026-10-08)
   tokens → base → layout → components. Raw colour values live in :root only. */

/* ---------- Tokens ---------- */
:root {
  --paper: #FAFAF8;
  --surface: #FFFFFF;
  --wash: #F1F0EC;
  --line: #E6E5E1;
  --ink: #111111;
  --ink-2: #4A4A48;
  --ink-3: #686864;
  --signal: #E5482D;
  --error: #B42318;
  --success: #1E7A46;


  --font-sans: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;

  --container-read: 640px;
  --container-page: 1200px;
  --margin: 20px;
  --header-height: 72px;
  --button-height: 48px;
  --target-min: 44px;
  --section-gap: var(--space-24);
  --duration: 200ms;
  color-scheme: light;
}


@media (max-width: 767px) {
  :root {
    --header-height: 64px;
    --section-gap: var(--space-16);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--space-4); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--margin); top: -100px; z-index: 10;
  padding: var(--space-3) var(--space-4); background: var(--ink); color: var(--paper);
  border-radius: var(--radius-md); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: var(--space-2); }

/* The grey heading note: same font, same size, ink-3 */
.note { color: var(--ink-3); }

/* ---------- Header ---------- */
.site-header {
  max-width: var(--container-page);
  margin: 0 auto;
  padding: 0 var(--margin);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  min-height: var(--target-min);
  padding: 10px 0;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.05em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .square {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  background: var(--signal);
}
.site-nav { display: flex; align-items: center; gap: var(--space-1); }
.site-nav a { font-size: 15px; font-weight: 500; }
.nav-link {
  display: inline-flex; align-items: center;
  min-height: var(--target-min);
  padding: 0 10px;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background-color var(--duration);
}
.nav-link:hover { background: var(--wash); }
.site-nav .btn { margin-left: var(--space-2); height: var(--target-min); }

@media (max-width: 559px) {
  .site-header { flex-wrap: wrap; padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .wordmark { font-size: 20px; }
  .site-nav { display: contents; }
  .site-nav .btn { order: 1; margin-left: 0; }
  .nav-links { order: 2; width: 100%; display: flex; flex-wrap: wrap; gap: 0 var(--space-1); margin-left: -10px; }
}
.nav-links { display: flex; gap: var(--space-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--button-height);
  padding: 0 20px;
  border-radius: var(--radius-md);
  font: 500 15px/1.2 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration), color var(--duration), border-color var(--duration);
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--wash); }

/* ---------- Layout ---------- */
.read {
  max-width: calc(var(--container-read) + 2 * var(--margin));
  margin: 0 auto;
  padding: 0 var(--margin);
}
.section { padding-bottom: var(--section-gap); }

/* Section marker: 8 px signal square + mono label */
.marker {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.marker::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--signal);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.portrait {
  width: 144px;
  height: 192px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--wash);
  margin-bottom: var(--space-2);
}
.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.support { color: var(--ink); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

@media (max-width: 767px) {
  .hero { padding-top: var(--space-8); }
  .portrait { width: 120px; height: 160px; }
  .lead { font-size: 18px; }
}
@media (max-width: 479px) {
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- Section opener ---------- */
.opener { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }
.opener h2 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
@media (max-width: 767px) {
  .opener h2 { font-size: 24px; }
}

/* ---------- Link list ---------- */
.link-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.link-list li { border-top: 1px solid var(--line); }
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--target-min);
  padding: 18px 0;
  text-decoration: none;
  transition: background-color var(--duration);
}
.link-list a:hover { background: var(--wash); }
.link-list .text { display: flex; flex-direction: column; gap: var(--space-1); }
.link-list .title { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.link-list .desc { font-size: 15px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.link-list svg { flex: none; width: 20px; height: 20px; }

.link-list .out, .rows .out { font: 400 12px/1.5 var(--font-mono); letter-spacing: 0.02em; color: var(--ink-2); margin-top: var(--space-1); }

/* ---------- Tags ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.tags-label {
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-right: var(--space-1);
}
.tag {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
  background: var(--wash);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
}

/* ---------- Newsletter (Wash panel: a quiet extra; the call stays the one primary) ---------- */
.panel {
  background: var(--wash);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.panel h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.panel p { color: var(--ink-2); }
/* Newsletter: Midnight panel, Mint accents */
.panel { background: #0E1B2E; color: #FFFFFF; }
.panel h2 { color: #FFFFFF; }
.panel p { color: #C5CFDC; }
.panel .marker { color: #86D99A; }
.panel .signup label { color: #FFFFFF; }
.panel .signup input { border-color: #FFFFFF; }
.panel .btn-secondary { background: #86D99A; color: #111111; border-color: #86D99A; }
.panel .btn-secondary:hover { background: #A3E4B2; }
.panel :focus-visible { outline-color: #86D99A; }
.signup { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.signup label { font-size: 14px; font-weight: 500; color: var(--ink); }
.signup-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.signup input {
  flex: 1 1 220px;
  min-width: 0;
  height: var(--button-height);
  padding: 0 14px;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: 400 16px var(--font-sans);
}
.signup input::placeholder { color: var(--ink-3); opacity: 1; }
.signup input[aria-invalid="true"] { border-color: var(--error); }
.form-msg { display: flex; gap: 6px; align-items: center; font-size: 14px; line-height: 1.4; }
.form-msg:empty { display: none; }
.form-msg svg { flex: none; width: 16px; height: 16px; }
.form-msg.is-error { color: var(--error); }
.form-msg.is-success { color: var(--success); }
@media (max-width: 767px) {
  .panel { padding: var(--space-6); }
  .panel h2 { font-size: 24px; }
}
@media (max-width: 479px) {
  .signup .btn { flex: 1 1 100%; }
}

/* ---------- /agents: static rows, body text, video, blocks ---------- */
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Rows: the link-list look without links (numbered steps, approval stages, agents) */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rows li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.rows .title { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.rows .desc { font-size: 15px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }

.body { color: var(--ink-2); max-width: 65ch; text-wrap: pretty; }
.aside { margin-top: var(--space-6); color: var(--ink-2); text-wrap: pretty; }
.inline-ext {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--target-min);
  font-weight: 500;
  color: var(--ink);
  text-underline-offset: 3px;
}
.inline-ext svg { flex: none; width: 14px; height: 14px; }

/* Demo video: 16:9 frame on Wash, mono caption */
.video { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--wash);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--ink-3);
}
.video-play { color: var(--ink); display: flex; }
.video-play svg { width: 32px; height: 32px; }
.video-label { font: 400 14px/1.4 var(--font-mono); }
.caption { font: 400 12px/1.5 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* Flow illustration in the demo frame (until the recorded video exists).
   Every step is visible by default; the loop only runs when motion is allowed. */
.flow-demo {
  aspect-ratio: auto;
  position: relative;
  align-items: stretch;
  padding: var(--space-12) var(--space-8) var(--space-8);
}
.flow-tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.flow {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.flow-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.flow-label {
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.flow-text { font-size: 15px; line-height: 1.45; color: var(--ink); }
.flow-actions { display: flex; gap: var(--space-2); margin-top: var(--space-1); }
.flow-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  color: var(--ink);
}
.flow-approve { background: var(--ink); color: var(--paper); }
@media (max-width: 479px) {
  .flow-demo { padding: var(--space-12) var(--space-4) var(--space-4); }
}
@media (prefers-reduced-motion: no-preference) {
  .flow-step { animation: flow-in 12s ease-out infinite both; }
  .flow-step.s2 { animation-name: flow-in-2; }
  .flow-step.s3 { animation-name: flow-in-3; }
  .flow-step.s4 { animation-name: flow-in-4; }
  .flow-approve { animation: flow-press 12s ease-out infinite both; }
}
@keyframes flow-in   { 0% { opacity: 0; transform: translateY(6px); } 4%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes flow-in-2 { 0%, 18% { opacity: 0; transform: translateY(6px); } 22%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes flow-in-3 { 0%, 40% { opacity: 0; transform: translateY(6px); } 44%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes flow-in-4 { 0%, 60% { opacity: 0; transform: translateY(6px); } 64%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes flow-press { 0%, 34% { opacity: 1; } 36% { opacity: 0.6; } 38%, 100% { opacity: 1; } }

/* Blocks: H3 + paragraph (ways to work, questions) */
.blocks { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.block { padding: var(--space-6) 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-2); }
.block h3 { font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.block p { color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 767px) {
  .block h3 { font-size: 18px; }
}

/* ---------- Writing ---------- */
.issues a {
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
}
.issues time { font: 400 12px/1.4 var(--font-mono); color: var(--ink-3); }

/* ---------- Call (closing section, in the reading column) ---------- */
.call { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.call h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
@media (max-width: 479px) {
  .call .btn { align-self: stretch; }
}

/* ---------- Footer 3 · Signature (chosen 2026-10-08): wordmark, links, mono © ---------- */
.site-footer {
  padding-top: var(--space-8);
  padding-bottom: var(--space-12);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-3);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.footer-links a {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: var(--target-min);
  color: var(--ink);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-links svg { flex: none; width: 14px; height: 14px; }
.handle { font: 400 12px/1.4 var(--font-mono); }
.copyright { font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.legal { font-size: 14px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Announcement bar: Midnight, Mint link */
.announce { background: #0E1B2E; color: #FFFFFF; }
.announce-inner { max-width: var(--container-page); margin: 0 auto; padding: 10px var(--space-6); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; font-size: 15px; line-height: 1.4; text-align: center; }
.announce-inner strong { font-weight: 600; }
.announce a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--target-min); color: #86D99A; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.announce a:hover { color: #A3E4B2; }
.announce a:focus-visible { outline-color: #86D99A; }

/* Phone fixes (Oct 20) */
@media (max-width:600px){
  header a, nav a{white-space:nowrap}
  header a[aria-label]{min-height:44px;align-items:center}
  [style*="grid-template-columns: 1fr auto"]{grid-template-columns:1fr !important}
  [style*="padding: 48px"],[style*="padding: 56px"]{padding:24px !important}
  [style*="font-size: 40px"]{font-size:28px !important}
  [style*="font-size: 60px"]{font-size:34px !important}
  [style*="font-size: 52px"]{font-size:32px !important}
  [style*="font-size: 44px"]{font-size:26px !important;overflow-wrap:anywhere}
  [style*="min-height: 300px"]{min-height:0 !important}
  [style*="padding: 112px 24px"],[style*="padding: 120px 24px"]{padding-top:72px !important;padding-bottom:72px !important}
  .four{grid-template-columns:1fr !important}
  .four>li{border-left:0 !important;padding-left:0 !important;padding-right:0 !important}
  .h1{font-size:40px !important}
  .h2{font-size:30px !important}
  a[style*="height: 56px"],a[style*="height: 52px"]{white-space:nowrap}
}

/* Consent line under the newsletter button (review 2026-10-19 #4) */
.signup-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.panel .signup-note { color: #C5CFDC; }
.panel .signup-note a { color: #FFFFFF; text-underline-offset: 3px; }
