@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  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 {
  --page: oklch(0.9898 0.0028 128.5);
  --surface: oklch(1 0 0);
  --soft: oklch(0.9679 0.0163 133.8);
  --ink: oklch(0.2035 0.0125 129.2);
  --muted: oklch(0.4779 0.03 134.5);
  --line: oklch(0.901 0.0228 135);
  --accent: oklch(0.619 0.1734 141.3);
  --accent-dark: oklch(0.4485 0.1256 141.3);
  --accent-ink: oklch(0.985 0 0);
  --focus: oklch(0.48 0.16 250);
  --dt-shell: min(1200px, calc(100% - 88px));
  --radius: 12px;
  --control-radius: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body.dt-home-page {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.dt-home-page :where(.dt-site-header, main, .dt-site-footer, button, input) {
  font-family: "Onest", system-ui, sans-serif;
}

body.dt-menu-open { overflow: hidden; }
a { color: inherit; text-underline-offset: .18em; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

/* Reboot sets a global violet link hover. Keep every homepage state in this palette. */
body.dt-home-page :where(a:hover, a:focus, a:active) { color: var(--ink); }

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

.dt-shell { width: var(--dt-shell); margin-inline: auto; }
.dt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.dt-skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; border-radius: var(--control-radius); background: var(--ink); color: var(--surface); transform: translateY(-160%); }
.dt-skip-link:focus { color: var(--surface); transform: translateY(0); }

.dt-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  padding-inline: max(44px, calc((100% - 1200px) / 2));
  border-bottom: 1px solid var(--line);
  background: oklch(1 0 0 / .96);
  backdrop-filter: blur(10px);
}

.dt-wordmark,
.dt-footer-brand {
  display: inline-flex;
  align-items: baseline;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}

.dt-wordmark small,
.dt-footer-brand small { font-size: 12px; font-weight: 500; letter-spacing: 0; }

.dt-wordmark:hover,
.dt-wordmark:focus-visible { color: var(--accent-dark); text-decoration: none; }

.dt-main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 34px);
  padding-inline: 26px;
}

.dt-main-nav a,
.dt-header-search {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.dt-main-nav a { padding-block: 24px; }
.dt-main-nav a:hover,
.dt-main-nav a:focus-visible,
.dt-header-search:hover,
.dt-header-search:focus-visible { color: var(--accent-dark); text-decoration: underline; }

.dt-header-search {
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.dt-menu-button { display: none; }

.dt-hero { background: var(--surface); }
.dt-hero-copy { width: var(--dt-shell); margin-inline: auto; padding-block: clamp(62px, 9vw, 112px) clamp(52px, 7vw, 82px); }
.dt-hero h1 { max-width: 900px; margin: 0; font-size: clamp(3.8rem, 7.2vw, 6rem); line-height: .96; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.dt-hero h1 em { color: var(--accent); font-style: normal; }
.dt-hero-copy > p { max-width: 600px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.45; }

.dt-search-band { background: var(--accent); color: var(--accent-ink); }
.dt-search-band-inner { min-height: 92px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.dt-hero-search { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 6px; border-radius: var(--control-radius); background: var(--surface); }
.dt-hero-search input { min-width: 0; height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); outline: 0; }
.dt-hero-search input::placeholder { color: var(--muted); opacity: 1; }
.dt-hero-search button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 7px; background: var(--ink); color: var(--surface); font-weight: 750; cursor: pointer; }
.dt-hero-search button:active { transform: translateY(1px); }

.dt-fresh { padding-block: clamp(64px, 8vw, 104px); }
.dt-section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.dt-section-title-row h2,
.dt-directory-heading h2 { margin: 0; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: .96; letter-spacing: -.04em; font-weight: 800; }
.dt-section-title-row > a { color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.dt-section-title-row > a:hover,
.dt-section-title-row > a:focus-visible { color: var(--ink); text-decoration-thickness: 2px; }

.dt-editorial-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr); gap: 48px; align-items: stretch; }
.dt-generated-cover { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); color: var(--ink); text-decoration: none; }
.dt-generated-cover.dt-has-image { padding: 0; overflow: hidden; border: 0; }
.dt-generated-cover.dt-has-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.dt-generated-cover span { font-size: 13px; font-weight: 700; }
.dt-generated-cover-title { max-width: 80%; margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.dt-generated-cover:hover,
.dt-generated-cover:focus-visible,
.dt-generated-cover:active { color: var(--ink); }
.dt-generated-cover:hover .dt-generated-cover-title,
.dt-generated-cover:focus-visible .dt-generated-cover-title { color: var(--accent-dark); }
.dt-story-meta { margin: 18px 0 8px; color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.dt-lead-story h3 { max-width: 720px; margin: 0; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.2; letter-spacing: -.025em; }
.dt-lead-story h3 a { text-decoration: none; }
.dt-lead-story h3 a:hover,
.dt-lead-story h3 a:focus-visible { color: var(--accent-dark); text-decoration: underline; }

.dt-fresh-feed { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.dt-fresh-feed article { min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dt-fresh-feed article:first-child { padding-top: 13px; }
.dt-fresh-feed span { display: block; margin-bottom: 7px; color: var(--accent-dark); font-size: 12px; font-weight: 750; }
.dt-fresh-feed h3 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.015em; }
.dt-fresh-feed h3 a { text-decoration: none; }
.dt-fresh-feed h3 a:hover,
.dt-fresh-feed h3 a:focus-visible { color: var(--accent-dark); text-decoration: underline; }

.dt-directory { width: 100%; padding-block: clamp(60px, 8vw, 96px); background: var(--soft); }
.dt-directory > * { width: var(--dt-shell); margin-inline: auto; }
.dt-directory-heading { margin-bottom: 34px; }

.dt-directory-group { border-top: 1px solid var(--line); }
.dt-directory-group:last-child { border-bottom: 1px solid var(--line); }
.dt-directory-group summary { min-height: 84px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; cursor: pointer; list-style: none; }
.dt-directory-group summary::-webkit-details-marker { display: none; }
.dt-directory-group summary > span { display: flex; align-items: baseline; gap: 18px; }
.dt-directory-group summary h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
.dt-directory-group summary small { color: var(--muted); font-size: 13px; }
.dt-directory-group summary > b { color: var(--muted); font-size: 13px; }
.dt-directory-group summary::after { content: "+"; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: oklch(0.91 0.012 145); font-size: 22px; font-weight: 500; }
.dt-directory-group[open] summary::after { content: "−"; background: var(--accent); color: var(--accent-ink); }
.dt-directory-links { padding: 3px 0 34px; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 28px; row-gap: 0; }
.dt-directory-link { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; text-decoration: none; }
.dt-directory-link i { color: var(--accent-dark); font-style: normal; opacity: 0; transform: translateX(-4px); transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
.dt-directory-link:hover,
.dt-directory-link:focus-visible { color: var(--accent-dark); }
.dt-directory-link:hover i,
.dt-directory-link:focus-visible i { opacity: 1; transform: translateX(0); }
.dt-directory-link[hidden] { display: none; }

.dt-site-footer { padding-block: 44px; background: var(--ink); color: var(--surface); }
.dt-footer-brand { color: var(--surface); background: transparent; }
.dt-footer-brand .dt-footer-word,
.dt-footer-brand small { display: inline-block; color: var(--surface) !important; -webkit-text-fill-color: var(--surface); }
.dt-footer-inner { display: grid; grid-template-columns: 1fr 1.7fr auto; gap: 40px; align-items: start; }
.dt-footer-intro p { max-width: 280px; margin: 14px 0 0; color: oklch(0.76 0.012 145); font-size: 13px; line-height: 1.55; }
.dt-footer-intro p + p { margin-top: 7px; }
.dt-footer-intro p a { color: var(--surface); font-weight: 650; }
.dt-footer-inner nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.dt-footer-inner nav a { color: oklch(0.81 0.01 145); font-size: 13px; }
.dt-footer-inner > span { color: oklch(0.67 0.01 145); font-size: 12px; }
.dt-footer-brand:hover,
.dt-footer-brand:focus-visible,
.dt-footer-brand:active { color: var(--surface); background: transparent; text-decoration: none; opacity: .78; }
.dt-footer-intro p a:hover,
.dt-footer-intro p a:focus-visible,
.dt-footer-intro p a:active,
.dt-footer-inner nav a:hover,
.dt-footer-inner nav a:focus-visible,
.dt-footer-inner nav a:active { color: var(--surface); text-decoration: underline; }

/* Social links are already present in the footer on this page. */
.dt-home-page #qltgm { display: none !important; }

@media (max-width: 1080px) {
  .dt-site-header { padding-inline: 28px; }
  .dt-main-nav { gap: 18px; padding-inline: 20px; }
  .dt-main-nav a { font-size: 12px; }
  .dt-editorial-grid { gap: 32px; }
  .dt-directory-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  :root { --dt-shell: calc(100% - 32px); }
  .dt-site-header { min-height: 60px; grid-template-columns: 48px 1fr 48px; padding: 0 16px; }
  .dt-wordmark { grid-column: 2; justify-self: center; font-size: 20px; }
  .dt-main-nav { position: fixed; inset: 60px 0 auto; z-index: 30; display: none; padding: 20px 16px 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .dt-main-nav.is-open { display: grid; }
  .dt-main-nav a { min-height: 48px; display: flex; align-items: center; padding: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .dt-header-search { grid-column: 3; grid-row: 1; justify-self: end; min-height: 48px; width: 48px; justify-content: center; padding: 0; border: 0; font-size: 0; }
  .dt-header-search::before { content: "⌕"; font-size: 26px; line-height: 1; }
  .dt-menu-button { grid-column: 1; grid-row: 1; width: 48px; height: 48px; padding: 12px; display: grid; align-content: center; gap: 7px; border: 0; background: transparent; cursor: pointer; }
  .dt-menu-button span { height: 1px; background: currentColor; transition: transform 180ms var(--ease); }
  .dt-menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .dt-menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .dt-hero-copy { padding-block: 48px 38px; }
  .dt-hero h1 { max-width: 630px; font-size: clamp(2.8rem, 11vw, 4.8rem); }
  .dt-hero-copy > p { max-width: 520px; margin-top: 18px; font-size: 1rem; }
  .dt-search-band-inner { min-height: 0; grid-template-columns: 1fr; padding-block: 18px; }
  .dt-hero-search input { font-size: 16px; }

  .dt-fresh { padding-block: 58px; }
  .dt-editorial-grid { grid-template-columns: 1fr; gap: 38px; }
  .dt-generated-cover-title { font-size: clamp(2rem, 8vw, 3.5rem); }
  .dt-fresh-feed { display: block; }
  .dt-fresh-feed article { min-height: 0; display: block; padding: 20px 0; }
  .dt-fresh-feed article:first-child { padding-top: 17px; }

  .dt-directory-group summary > span { display: block; }
  .dt-directory-group summary small { display: block; margin-top: 5px; }
  .dt-directory-links { grid-template-columns: repeat(2, 1fr); }
  .dt-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (min-width: 783px) {
  .admin-bar .dt-site-header { top: 32px; }
}

@media (max-width: 782px) {
  .admin-bar .dt-site-header { top: 46px; }
}

@media (max-width: 520px) {
  html { scroll-padding-top: 68px; }
  .dt-hero-copy { padding-block: 42px 31px; }
  .dt-hero h1 { font-size: clamp(2.65rem, 13vw, 3.75rem); line-height: .95; }
  .dt-hero-copy > p { max-width: 34ch; font-size: .95rem; }
  .dt-search-band-inner { padding-block: 14px; }
  .dt-hero-search { gap: 4px; padding: 5px; }
  .dt-hero-search button { padding-inline: 15px; }

  .dt-fresh { padding-block: 46px; }
  .dt-section-title-row { margin-bottom: 22px; }
  .dt-section-title-row h2,
  .dt-directory-heading h2 { font-size: 2.25rem; }
  .dt-section-title-row > a { font-size: 12px; }
  .dt-generated-cover { padding: 20px; }
  .dt-generated-cover span { font-size: 11px; }
  .dt-generated-cover-title { max-width: 92%; font-size: clamp(1.9rem, 9vw, 2.7rem); }
  .dt-story-meta { margin-top: 14px; }
  .dt-lead-story h3 { font-size: 1.25rem; }
  .dt-fresh-feed { border-top-width: 2px; }
  .dt-fresh-feed article { padding: 17px 0; }
  .dt-fresh-feed span { font-size: 11px; }
  .dt-fresh-feed h3 { font-size: 15px; }

  .dt-directory { padding-block: 46px; }
  .dt-directory-heading { margin-bottom: 22px; }
  .dt-directory-group summary { min-height: 64px; gap: 10px; }
  .dt-directory-group summary h3 { font-size: 17px; }
  .dt-directory-group summary small { display: none; }
  .dt-directory-group summary > b { font-size: 12px; }
  .dt-directory-group summary::after { width: 32px; height: 32px; }
  .dt-directory-links { grid-template-columns: 1fr 1fr; column-gap: 16px; padding-bottom: 24px; }
  .dt-directory-link { min-height: 46px; font-size: 13px; }
  .dt-directory-link i { display: none; }

  .dt-site-footer { padding-block: 34px; }
  .dt-footer-inner nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }

}

@media (max-width: 360px) {
  :root { --dt-shell: calc(100% - 24px); }
  .dt-site-header { padding-inline: 12px; }
  .dt-directory-links { grid-template-columns: 1fr; }
  .dt-footer-inner nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
