/* Tchakshack site. Color tokens stay in the BHQ account/admin family. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/newsreader-latin-600-normal.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: "Newsreader";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/newsreader-latin-700-normal.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: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-latin-400-italic.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: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-400-normal.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: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-600-normal.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,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101418;
  --bg-soft: #141a22;
  --card: #1a212b;
  --chrome: #151b24;
  --text: #f2f4f7;
  --muted: #c5ced8;
  --line: #5A6F86;
  --line-soft: #3a4a5c;
  --accent: #4DA3FF;
  --accent-hover: #7CBCFF;
  --accent-text: #04111F;
  --focus: #7CBCFF;
  --link: #9CCBFF;
  --glow: rgba(77, 163, 255, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 16px 40px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.28), 0 22px 50px rgba(0, 0, 0, 0.38);
  --header-bg: color-mix(in srgb, #101418 78%, transparent);
  --mark: #4DA3FF;
  --mark-ink: #04111F;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f6f8;
    --bg-soft: #eef2f6;
    --card: #ffffff;
    --chrome: #f0f3f6;
    --text: #1a1d21;
    --muted: #3e4752;
    --line: #71849A;
    --line-soft: #c5ced8;
    --accent: #145FC8;
    --accent-hover: #0F4FA8;
    --accent-text: #FFFFFF;
    --focus: #0F4FA8;
    --link: #0F4FA8;
    --glow: rgba(20, 95, 200, 0.12);
    --shadow: 0 1px 2px rgba(16, 20, 24, 0.06), 0 16px 40px rgba(16, 20, 24, 0.08);
    --shadow-lift: 0 4px 10px rgba(16, 20, 24, 0.08), 0 22px 50px rgba(16, 20, 24, 0.12);
    --header-bg: color-mix(in srgb, #f4f6f8 78%, transparent);
    --mark: #145FC8;
    --mark-ink: #FFFFFF;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --bg-soft: #eef2f6;
  --card: #ffffff;
  --chrome: #f0f3f6;
  --text: #1a1d21;
  --muted: #3e4752;
  --line: #71849A;
  --line-soft: #c5ced8;
  --accent: #145FC8;
  --accent-hover: #0F4FA8;
  --accent-text: #FFFFFF;
  --focus: #0F4FA8;
  --link: #0F4FA8;
  --glow: rgba(20, 95, 200, 0.12);
  --shadow: 0 1px 2px rgba(16, 20, 24, 0.06), 0 16px 40px rgba(16, 20, 24, 0.08);
  --shadow-lift: 0 4px 10px rgba(16, 20, 24, 0.08), 0 22px 50px rgba(16, 20, 24, 0.12);
  --header-bg: color-mix(in srgb, #f4f6f8 78%, transparent);
  --mark: #145FC8;
  --mark-ink: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Source Sans 3", system-ui, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background:
    radial-gradient(1000px 520px at 12% -10%, var(--glow), transparent 62%),
    radial-gradient(800px 420px at 100% 0%, color-mix(in srgb, var(--glow) 70%, transparent), transparent 58%),
    var(--bg);
  color: var(--text);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(68rem, calc(100% - 3rem));
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: "Newsreader", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; margin: 0 0 1rem; line-height: 1.05; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
p { margin: 0.55rem 0; }

.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: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus,
.skip-link:focus-visible { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Newsreader", "Palatino Linotype", Palatino, serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--mark);
}
.brand-mark .mark-bg { fill: currentColor; }
.brand-mark .mark-t { fill: var(--mark-ink); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.15rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.4rem 0.7rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a:hover { text-decoration: none; background: color-mix(in srgb, var(--text) 7%, transparent); }
.site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.theme-toggle {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin-inline-start: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover { border-color: var(--text); background: var(--card); }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
  text-decoration: none;
}
.btn-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
  font-weight: 600;
}
.btn-quiet:hover {
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--text);
  border-color: var(--text);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-block-start: 1.5rem;
}
.text-link {
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }

main { flex: 1 0 auto; padding-block: 0 4.5rem; }

.hero {
  padding-block: clamp(3rem, 8vw, 6.25rem) clamp(2.5rem, 6vw, 4.5rem);
}
.hero-inner { max-width: 40rem; }
.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede {
  font-family: "Newsreader", "Palatino Linotype", Palatino, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  max-width: 34rem;
  color: var(--text);
  letter-spacing: 0;
}
.hero .lede { margin-bottom: 0; }

.section { margin-block: 1rem 4.25rem; }
.section > .section-intro,
.section > p:first-of-type { max-width: 40rem; }

.muted { color: var(--muted); }

.product-card {
  max-width: 38rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.product-card a {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.4rem 1.5rem 1.45rem;
  color: inherit;
  text-decoration: none;
  border-radius: 20px;
}
.product-card img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.product-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-width: 0;
}
.product-name { margin: 0; }
.product-card p {
  margin: 0;
  color: var(--muted);
}
.more {
  margin-block-start: 0.35rem;
  font-weight: 600;
  color: var(--link);
}
.product-card a:hover { text-decoration: none; }
.product-card a:hover .more,
.product-card a:focus-visible .more { text-decoration: underline; text-decoration-thickness: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .product-card a,
  .feature,
  .media-frame,
  .card,
  .btn {
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
  }
  .product-card a:hover,
  .product-card a:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
  }
  .media-frame:hover { box-shadow: var(--shadow-lift); }
}

.feature-grid {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}
.feature {
  margin: 0;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
}
.feature h3 { margin-bottom: 0.45rem; }
.feature p { margin: 0; color: var(--muted); }

.about-copy { max-width: 42rem; }
.about-copy p { font-size: 1.08rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  max-width: 44rem;
}

.media-grid {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.media-grid figure { margin: 0; }
.media-frame {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--chrome);
}
.media-chrome .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--line);
}
.media-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg-soft)), var(--bg-soft));
}
.media-icon {
  color: var(--muted);
  opacity: 0.85;
}
.media-grid figcaption {
  margin: 0.65rem 0.15rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}


.not-found {
  padding-block: clamp(3rem, 8vw, 6.25rem) clamp(2.5rem, 6vw, 4.5rem);
}
.not-found-inner { max-width: 40rem; }
.not-found-code {
  margin: 0 0 0.35rem;
  font-family: "Newsreader", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--accent) 55%, var(--muted));
}
.not-found .lede { margin-bottom: 0; }

.site-footer {
  margin-block-start: auto;
  border-top: 1px solid var(--line-soft);
  padding-block: 1.75rem 2.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  background: color-mix(in srgb, var(--bg) 80%, var(--card));
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.site-footer p { margin: 0; }

@media (max-width: 48rem) {
  .wrap { width: min(68rem, calc(100% - 1.5rem)); }
  .feature-grid,
  .media-grid { grid-template-columns: 1fr; }
  .product-card a { flex-direction: column; }
}

@media (max-width: 40rem) {
  h1 { font-size: clamp(2.15rem, 11vw, 2.8rem); }
  .hero { padding-block: 2.4rem 2rem; }
  .section { margin-block-end: 3.25rem; }
  .site-nav a { padding-inline: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
