/* blog.dinami.ai: this site's own look (dark, like dinami.ai). Inter Tight + Inter. */

/* ===================== 1. Fonts (SIL OFL; files in fonts/) ===================== */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/inter-tight-greek-ext.woff2) format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/inter-tight-greek.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/inter-tight-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: 'Inter Tight'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/inter-tight-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: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/inter-greek-ext.woff2) format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/inter-greek.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/inter-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: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/inter-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; }

/* ===================== 2. Variables (a dark site) ===================== */
:root {
  --dn-bg: #0D1520;
  --dn-surface: #131E2D;
  --dn-surface-2: #182536;
  --dn-border: #243348;
  --dn-border-soft: #1A2638;
  --dn-fg: #E8EDF4;
  --dn-muted: #93A1B4;
  --dn-coral: #ED6F5C;
  --dn-coral-soft: #F08E7C;
  --dn-mustard: #E9B94A;
  --dn-bone: #F7F1DE;
  --dn-bone-warm: #ECE4CF;
  --dn-ink: #15140F;
  --dn-ink-mute: #4F4A40;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: dark;
  --color-bg: var(--dn-bg);
  --color-surface: var(--dn-surface);
  --color-surface-2: var(--dn-surface-2);
  --color-text: var(--dn-fg);
  --color-ink: var(--dn-fg);
  --color-muted: var(--dn-muted);
  --color-border: var(--dn-border);
  --color-border-strong: #33465F;
  --color-accent: var(--dn-coral);
  --color-accent-hover: var(--dn-coral-soft);
  --color-accent-soft: var(--dn-surface-2);
  --color-accent-contrast: var(--dn-bg);
  --color-accent-text: var(--dn-coral-soft);
  --color-accent-text-hover: var(--dn-fg);

  --font-body: var(--font-sans);
  --font-heading: var(--font-display);
  --fs-base: 1.0625rem;
  --fs-h1: clamp(2.6rem, 3.6vw + 1.2rem, 4.6rem);
  --fs-h2: clamp(1.9rem, 1.6vw + 1.3rem, 2.8rem);
  --fs-h3: clamp(1.3rem, 0.5vw + 1.1rem, 1.55rem);

  --radius: 999px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --container: 1200px;
  --measure: 700px;
  --header-height: 72px;
}

body {
  background-color: var(--dn-bg);
  /* dinami.ai's drafting grid, faint. */
  background-image:
    linear-gradient(rgb(232 237 244 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(232 237 244 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--dn-fg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; color: var(--dn-fg); }
::selection { background: rgb(237 111 92 / 0.45); color: #fff; }

/* No underlines on links outside running text: colour says it. */
a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--dn-coral); outline-offset: 3px; }

/* ===================== 3. Shared pieces ===================== */
.dn-label { margin: 0; color: var(--dn-coral); font-size: 0.9375rem; font-weight: 600; }
.dn-dot { color: var(--dn-coral); }
.dn-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0; margin: 0; color: var(--dn-muted); font-size: 0.875rem; }
.dn-meta > * + *::before { content: "·"; margin: 0 0.6em; }

.dn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--dn-coral);
  color: var(--dn-bg);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.dn-button:hover { background: var(--dn-coral-soft); color: var(--dn-bg); }
.dn-button--small { min-height: 40px; padding: 0 1.1rem; font-size: 0.875rem; }

/* ===================== 4. Header (no menu) ===================== */
.site-header {
  background: rgb(13 21 32 / 0.9);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom-color: var(--dn-border);
}
.site-header__inner { justify-content: space-between; }
/* The logo in «Ρυθμίσεις site» is the dark-ink one (for light backgrounds, emails, Google): shown light here. */
.site-logo__img { max-height: 36px; filter: invert(1) brightness(1.05); }
.site-logo__text { color: var(--dn-fg); font-family: var(--font-display); font-weight: 800; }

.dn-header-actions { display: flex; align-items: center; gap: 1.25rem; }
.dn-header-actions__site { font-size: 0.9375rem; font-weight: 500; color: var(--dn-muted); transition: color 0.15s ease; }
.dn-header-actions__site:hover { color: var(--dn-fg); }
.dn-languages { display: flex; flex: none; align-items: center; white-space: nowrap; }
.dn-languages__item { display: inline-flex; align-items: center; padding: 0.35rem 0.45rem; color: var(--dn-muted); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; transition: color 0.15s ease; }
.dn-languages__item + .dn-languages__item::before { content: "/"; margin-right: 0.9rem; margin-left: -0.45rem; color: var(--dn-border); }
a.dn-languages__item:hover { color: var(--dn-fg); }
.dn-languages__item[aria-current="page"] { color: var(--dn-fg); font-weight: 700; }
@media (max-width: 720px) {
  .dn-header-actions { gap: 0.6rem; }
  .dn-header-actions__site { display: none; }
}

/* ===================== 5. Home ===================== */
.dn-hero__inner { display: grid; gap: 2.5rem 4rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 960px) { .dn-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; } }
.dn-hero__title { max-width: 14ch; margin: 1rem 0 0; font-size: var(--fs-h1); line-height: 1.0; text-wrap: balance; }
.dn-hero__intro { max-width: 48ch; margin: 1.5rem 0 0; color: var(--dn-muted); font-size: 1.1875rem; line-height: 1.6; }
.dn-hero__art { position: relative; margin: 0; }
/* Crosshair corners, like the plates on dinami.ai. */
.dn-hero__art::before, .dn-hero__art::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--dn-muted); border-style: solid; opacity: 0.6; z-index: 1; }
.dn-hero__art::before { top: -10px; left: -10px; border-width: 1px 0 0 1px; }
.dn-hero__art::after { right: -10px; bottom: -10px; border-width: 0 1px 1px 0; }
.dn-hero__art picture { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 1; }
.dn-hero__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 959px) { .dn-hero__art { max-width: 460px; margin-inline: 10px; } }

.dn-topics { margin-top: 2rem; }
.dn-topics ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.dn-topics a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--dn-border);
  background: var(--dn-surface);
  color: var(--dn-fg);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: box-shadow 0.15s ease;
}
.dn-topics a:hover { box-shadow: inset 0 0 0 1px var(--dn-coral); color: var(--dn-fg); }
.dn-topics__count { color: var(--dn-coral); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* The bento grid. */
.dn-posts { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 5rem); }
.dn-posts__title { margin: 0 0 1.5rem; font-size: var(--fs-h3); }
.dn-bento { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .dn-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dn-bento .dn-tile--lead { grid-column: span 2; }
  .dn-bento--solo .dn-tile--lead { grid-column: 1 / -1; }
}
.dn-bento-row { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.dn-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dn-surface);
  box-shadow: inset 0 0 0 1px var(--dn-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.dn-tile:hover { transform: translateY(-2px); background: var(--dn-surface-2); box-shadow: inset 0 0 0 1px rgb(237 111 92 / 0.6); }
.dn-tile__media { aspect-ratio: 16 / 9; overflow: hidden; }
.dn-tile__media :is(img, picture) { display: block; width: 100%; height: 100%; object-fit: cover; }
.dn-tile__body { display: flex; flex: 1; flex-direction: column; gap: 0.8rem; padding: clamp(1.4rem, 2.5vw, 1.9rem); }
.dn-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; }
.dn-tile__num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--dn-coral); font-variant-numeric: tabular-nums; }
.dn-tile__category { padding: 0.2rem 0.65rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--dn-border); color: var(--dn-muted); font-size: 0.8125rem; font-weight: 500; }
.dn-tile__title { margin: 0; font-size: 1.35rem; line-height: 1.2; text-wrap: balance; }
.dn-tile--lead .dn-tile__title { margin-top: auto; padding-top: 2.5rem; font-size: clamp(1.9rem, 2vw + 1.1rem, 2.7rem); line-height: 1.05; }
.dn-tile--lead.dn-tile--photo .dn-tile__title { padding-top: 0; }
.dn-tile__title a { color: var(--dn-fg); }
.dn-tile__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dn-tile__intro { margin: 0; color: var(--dn-muted); font-size: 0.9375rem; line-height: 1.6; }
.dn-tile--lead .dn-tile__intro { max-width: 52ch; font-size: 1.0625rem; }
.dn-tile .dn-meta { margin-top: auto; padding-top: 0.6rem; }
/* The lead tile: the brand's coral glow in its corner. */
.dn-tile--lead:not(.dn-tile--photo) { background: radial-gradient(90% 120% at 100% 0%, rgb(237 111 92 / 0.14), transparent 55%), var(--dn-surface); min-height: 340px; }

.dn-empty { padding-block: var(--space-7); color: var(--dn-muted); }

/* ===================== 6. Cards (category pages) ===================== */
.cards { gap: 1rem; }
.card { overflow: hidden; border: 0; border-radius: var(--radius-lg); background: var(--dn-surface); box-shadow: inset 0 0 0 1px var(--dn-border); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgb(237 111 92 / 0.6); }
.card__media { background: var(--dn-surface-2); }
.card__body { gap: 0.6rem; padding: 1.4rem 1.5rem 1.6rem; }
.card__category { margin: 0; color: var(--dn-coral); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.card__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.card__title a { color: var(--dn-fg); }
.card:hover .card__title a { color: var(--dn-fg); }
.card__meta, .card__date { font-size: 0.875rem; color: var(--dn-muted); }
.card__intro { color: var(--dn-muted); font-size: 0.9375rem; line-height: 1.6; }
/* An article without a picture: no empty picture box. */
.card:has(.dn-plate) .card__media { display: none; }
.card:has(.dn-plate) .card__intro { order: 3; }
.card:has(.dn-plate) .card__meta { order: 4; margin-top: auto; padding-top: 0.8rem; }
.dn-plate { display: grid; place-items: center; width: 100%; height: 100%; background: var(--dn-surface-2); }
.dn-plate__mark { font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 3rem; color: var(--dn-bone-warm); }
.dn-plate__mark i { font-style: normal; color: var(--dn-coral); }

/* ===================== 7. Article ===================== */
.breadcrumbs { font-size: 0.875rem; }
.breadcrumbs a { color: var(--dn-muted); text-decoration: none; transition: color 0.15s ease; }
.breadcrumbs a:hover { color: var(--dn-fg); }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--dn-border); }

.dn-article__head { max-width: calc(860px + 2 * var(--edge)); padding-block: clamp(1.5rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem); }
.dn-article .breadcrumbs { margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); }
.dn-article .breadcrumbs li:last-child { display: none; }
.dn-article .breadcrumbs li:nth-last-child(2)::after { content: none; }
.dn-article__title { margin: 1rem 0 0; font-size: clamp(2.4rem, 3vw + 1.2rem, 4rem); line-height: 1.02; text-wrap: balance; }
.dn-article__intro { max-width: 60ch; margin: 1.4rem 0 0; color: var(--dn-muted); font-size: 1.25rem; line-height: 1.55; }
.dn-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0;
  margin-top: 1.75rem;
  color: var(--dn-muted);
  font-size: 0.9375rem;
}
.dn-article__meta > * + *::before { content: "·"; margin: 0 0.6em; }
.dn-article__meta p { margin: 0; }

/* The text on a light sheet, for long reading. */
.dn-sheet { max-width: calc(860px + 2 * var(--edge)); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.dn-article__body {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: 6px;
  background: var(--dn-bone);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
  color: var(--dn-ink);
  font-size: 1.125rem;
  line-height: 1.8;
}
.dn-article__body > * + * { margin-top: 1.15em; }
.dn-article__body > p:first-child { font-size: 1.25rem; line-height: 1.7; }
.dn-article__body :is(h2, h3, h4) { color: var(--dn-ink); }
.dn-article__body h2 { font-size: 1.9rem; line-height: 1.12; margin-top: 1.9em; }
.dn-article__body h3 { font-size: 1.45rem; line-height: 1.25; margin-top: 1.6em; }
.dn-article__body a { color: #A63A2A; font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s ease; }
.dn-article__body a:hover { border-bottom-color: currentColor; }
.dn-article__body blockquote { margin-inline: 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 3px solid var(--dn-coral); background: none; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.4; color: var(--dn-ink); }
.dn-article__body :is(ul, ol) { padding-left: 1.3em; }
.dn-article__body li::marker { color: #A63A2A; }
.dn-article__body :is(th, td) { border-color: #D9D0B8; }
.dn-article__body th { background: var(--dn-bone-warm); }
.dn-article__body img { border-radius: 6px; }

/* Plain pages (legal pages and the like): the same heading sizes as an article, on the dark page. */
.content h2 { font-size: 1.9rem; line-height: 1.12; margin-top: 1.6em; }
.content h3 { font-size: 1.45rem; line-height: 1.25; margin-top: 1.4em; }
.content a { color: var(--dn-coral-soft); font-weight: 600; }

.related.dn-posts { padding-top: 0; }

/* ===================== 8. Closing panel ===================== */
.dn-cta { border-top: 1px solid var(--dn-border); background: rgb(19 30 45 / 0.6); }
.dn-cta__inner { display: grid; gap: 2rem 4rem; padding-block: clamp(3rem, 6vw, 5rem); }
@media (min-width: 900px) { .dn-cta__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; } }
.dn-cta__art { margin: 0; max-width: 420px; }
.dn-cta__art img { display: block; width: 100%; height: auto; border-radius: 4px; }
.dn-cta__title { max-width: 18ch; margin: 0.8rem 0 0; font-size: var(--fs-h2); line-height: 1.05; text-wrap: balance; }
.dn-cta__body { max-width: 52ch; margin: 1.1rem 0 0; color: var(--dn-muted); font-size: 1.0625rem; line-height: 1.65; }
.dn-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.dn-cta__link { color: var(--dn-fg); font-weight: 600; font-size: 0.9375rem; transition: color 0.15s ease; }
.dn-cta__link:hover { color: var(--dn-coral); }
@media (max-width: 899px) { .dn-cta__art { display: none; } }

/* ===================== 9. Category pages, footer ===================== */
.page-header__eyebrow { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--dn-coral); }
.page-header__title { line-height: 1.02; }
.page-header__intro { color: var(--dn-muted); }
/* Category pages: the title column starts at the cards' left edge, not centred above them. */
.container > .measure { margin-inline: 0; }
.pager__link { border-color: var(--dn-border); color: var(--dn-fg); text-decoration: none; }
.pager__link:hover { background: var(--dn-surface-2); color: var(--dn-fg); }

main:has(.dn-cta) { padding-bottom: 0; }
main:has(.dn-cta) ~ .site-footer { margin-top: 0; }
.site-footer { background: #0A111A; border-top: 1px solid var(--dn-border); color: var(--dn-muted); }
.site-footer a { color: var(--dn-fg); text-decoration: none; }
.site-footer a:hover { color: var(--dn-coral); text-decoration: none; }
.site-footer__about { max-width: 46ch; }
.site-footer__bottom { border-top-color: var(--dn-border); }

@media (prefers-reduced-motion: reduce) {
  .card, .dn-tile { transition: none; }
}

/* Narrow phones: the header's logo, languages and diagnosis button on one line inside the gutter. */
.dn-button__short { display: none; }
@media (max-width: 520px) {
  .site-header__inner { gap: 0.75rem; }
  .site-header .site-logo__img { max-height: 28px; }
  .dn-header-actions { gap: 0.4rem; }
  .dn-languages__item { padding-inline: 0.3rem; }
  .dn-languages__item + .dn-languages__item::before { margin-right: 0.6rem; margin-left: -0.3rem; }
  .dn-header-actions .dn-button--small { padding: 0 0.9rem; }
}
@media (max-width: 420px) {
  .dn-button__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dn-button__short { display: inline; }
}

/* On a phone a wrapped line must not start with the dot. */
@media (max-width: 600px) {
  .dn-meta, .dn-article__meta { column-gap: 1rem; }
  .dn-meta > * + *::before, .dn-article__meta > * + *::before { content: none; }
}

/* 404 / search: the core form can grow past the column on phones; keep it inside the gutter */
.message-page .search-form { width: 100%; }
.message-page { grid-template-columns: minmax(0, 1fr); }
.message-page .search-form__input { flex: 1 1 auto; width: 0; min-width: 0; }

/* The imonline credit as the CMS draws it: its own dark wordmark (sage dot), full strength, no hover colour. */
.site-footer .site-footer__credit a, .site-footer .site-footer__credit a:hover { color: #FFFFFF; opacity: 1; }
