/*
Theme Name:   Trendarium Astra
Theme URI:    https://trendarium.com
Description:  Child theme of Astra for Trendarium: dark Linear-style palette, self-hosted Inter fonts, ad slots with reserved space, consent-gated analytics and ads. Temporary until the custom theme from the design hand-off.
Author:       Mike
Author URI:   https://trendarium.com/author/mike/
Template:     astra
Version:      0.1.0
License:      GPL-2.0-or-later
Text Domain:  trendarium-astra
*/

/* Fonts: self-hosted, variable weight, swap. Latin plus latin-ext covers English and Polish. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/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+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: 100 900; font-display: swap;
  src: url("assets/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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Palette from brand/kolory.css (Linear, dark). Astra reads these as its global palette. */
:root:root {
  --tk-noc: #08090B;       /* page background */
  --tk-grafit: #0E0F12;    /* cards and panels */
  --tk-linia: #202228;     /* borders */
  --tk-szary: #8A8F98;     /* secondary text */
  --tk-biel: #EDEEF0;      /* main text, logo, primary buttons */
  --tk-poswiata: #9D8CFF;  /* optional accent, used sparingly: hover and focus */
  --tk-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tk-font-head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ast-global-color-0: var(--tk-biel);
  --ast-global-color-1: var(--tk-poswiata);
  --ast-global-color-2: var(--tk-biel);
  --ast-global-color-3: #D4D6DA;
  --ast-global-color-4: var(--tk-noc);
  --ast-global-color-5: var(--tk-grafit);
  --ast-global-color-6: var(--tk-linia);
  --ast-global-color-7: var(--tk-grafit);
  --ast-global-color-8: var(--tk-noc);
  color-scheme: dark;
}

html:root body, html:root .site, html:root .ast-separate-container,
html:root .ast-separate-container .site-content, html:root .ast-page-builder-template .site-content {
  background-color: var(--tk-noc);
  color: var(--ast-global-color-3);
  font-family: var(--tk-font-body);
}
html:root h1, html:root h2, html:root h3, html:root h4, html:root h5, html:root h6,
html:root .entry-title, html:root .entry-title a, html:root .site-title, html:root .site-title a {
  font-family: var(--tk-font-head); color: var(--tk-biel); letter-spacing: -0.02em;
}
html:root a { color: var(--tk-biel); text-decoration-color: var(--tk-linia); text-underline-offset: 0.2em; }
html:root a:hover, html:root a:focus { color: var(--tk-poswiata); }
html:root :focus-visible { outline: 2px solid var(--tk-poswiata); outline-offset: 2px; }

/* Surfaces: header, cards, sidebar, footer, forms, code, tables. */
html:root .main-header-bar, html:root .ast-primary-header-bar, html:root .ast-mobile-header-wrap .ast-mobile-header-content,
html:root .main-header-menu .sub-menu, html:root .ast-desktop .main-header-menu .sub-menu {
  background-color: var(--tk-noc); border-color: var(--tk-linia);
}
html:root .main-header-menu a, html:root .ast-header-break-point .main-header-menu a { color: var(--tk-szary); }
html:root .main-header-menu a:hover, html:root .main-header-menu .current-menu-item > a { color: var(--tk-biel); }
html:root .ast-separate-container .ast-article-post, html:root .ast-separate-container .ast-article-single,
html:root .ast-separate-container .comment-respond, html:root .ast-separate-container .ast-comment-list li,
html:root .ast-separate-container .ast-archive-description, html:root .widget-area .widget {
  background-color: var(--tk-grafit); border: 1px solid var(--tk-linia); border-radius: 12px;
}
html:root .site-footer, html:root .site-below-footer-wrap, html:root .site-primary-footer-wrap {
  background-color: var(--tk-noc); border-top: 1px solid var(--tk-linia); color: var(--tk-szary);
}
html:root input, html:root textarea, html:root select {
  background-color: var(--tk-grafit); color: var(--tk-biel); border-color: var(--tk-linia);
}
html:root .button, html:root button, html:root input[type="submit"], html:root .wp-block-button__link {
  background-color: var(--tk-biel); color: var(--tk-noc); border: 0; border-radius: 8px; font-weight: 600;
}
html:root pre, html:root code, html:root kbd { background-color: var(--tk-grafit); color: var(--tk-biel); border: 1px solid var(--tk-linia); }
html:root table, html:root th, html:root td { border-color: var(--tk-linia); }
html:root blockquote { border-left-color: var(--tk-linia); color: var(--tk-szary); }
html:root .entry-meta, html:root .entry-meta a, html:root .ast-breadcrumbs-wrapper, html:root .ast-breadcrumbs-wrapper a { color: var(--tk-szary); }
html:root hr { border-color: var(--tk-linia); }

/* Logo: the three-bar mark (assets/img/mark-currentcolor.svg) drawn as a mask in front of the site title, so it
   follows the text colour and needs no media upload. The wordmark is the site title in Inter Tight. */
.site-title a, .ast-site-identity .site-title a { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; letter-spacing: -0.03em; }
.site-title a::before {
  content: ""; width: 28px; height: 27px; flex: none; background-color: currentColor;
  -webkit-mask: url("assets/img/mark-currentcolor.svg") center / contain no-repeat;
          mask: url("assets/img/mark-currentcolor.svg") center / contain no-repeat;
}

/* Author avatar */
.avatar { border-radius: 50%; border: 1px solid var(--tk-linia); }

/* Footer legal links */
.tk-legal { padding: 1.25rem 1rem; text-align: center; font-size: 0.875rem; border-top: 1px solid var(--tk-linia); background: var(--tk-noc); }
.tk-legal ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; margin: 0; padding: 0; list-style: none; }
.tk-legal a { color: var(--tk-szary); }
.tk-legal a:hover { color: var(--tk-biel); }

/* Ad slots. Hidden until an AdSense client ID is configured (body gets .tk-ads-on); then each slot reserves its
   space up front so late ads cannot move the page (CLS). Heights are the common creative sizes: 280 desktop,
   300 mobile for the responsive units, 600 for the half-page in the sidebar. */
.tk-ad { display: none; }
.tk-ads-on .tk-ad { display: block; position: relative; margin: 1.5rem auto; overflow: hidden; contain: layout paint; text-align: center; }
.tk-ad::before { content: attr(data-label); display: block; font-size: 0.6875rem; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tk-szary); padding-bottom: 6px; }
.tk-ad ins.adsbygoogle { display: block; width: 100%; }
.tk-ads-on .tk-ad--top { min-height: 300px; }
.tk-ads-on .tk-ad--incontent { min-height: 300px; }
.tk-ads-on .tk-ad--sidebar { min-height: 640px; position: sticky; top: 88px; margin-top: 0; }
.tk-ads-on .tk-ad--anchor { display: none; }
@media (min-width: 922px) {
  .tk-ads-on .tk-ad--top, .tk-ads-on .tk-ad--incontent { min-height: 280px; }
}
@media (max-width: 921px) {
  .tk-ads-on .tk-ad--sidebar, .single-post #secondary { display: none; }  /* the sidebar only holds the desktop ad slot */
  /* Mobile anchor: fixed to the bottom edge, never taller than 30% of the screen, never moves content. */
  .tk-ads-on .tk-ad--anchor { display: block; position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 99;
    max-height: 30vh; min-height: 0; background: var(--tk-grafit); border-top: 1px solid var(--tk-linia); }
  .tk-ads-on .tk-ad--anchor::before { display: none; }
  .tk-ads-on .tk-ad--anchor:not(.tk-ad--filled) { display: none; }
  body.tk-ads-on.tk-anchor-visible { padding-bottom: 0; }
}

/* Footer: copyright line and the privacy settings button styled like the links. */
.tk-legal p { margin: 0.75rem 0 0; color: var(--tk-szary); }
.tk-privacy-choices { background: none; border: 0; padding: 0; font: inherit; color: var(--tk-szary); text-decoration: underline; text-decoration-color: var(--tk-linia); cursor: pointer; }
.tk-privacy-choices:hover { color: var(--tk-biel); background: none; }

/* Breadcrumbs and link blocks */
.tk-breadcrumbs { font-size: 0.875rem; color: var(--tk-szary); padding: 1rem 0 0.5rem; }
.tk-breadcrumbs a { color: var(--tk-szary); }
.tk-block { margin: 2rem 0; }
.tk-block h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.tk-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.tk-block li a { display: block; padding: 0.6rem 0.9rem; border: 1px solid var(--tk-linia); border-radius: 8px; background: var(--tk-grafit); text-decoration: none; }
.tk-block li a:hover { border-color: var(--tk-szary); }

/* Authors list */
.tk-author { display: flex; gap: 1.25rem; align-items: flex-start; margin: 1.5rem 0; padding: 1.25rem; border: 1px solid var(--tk-linia); border-radius: 12px; background: var(--tk-grafit); }
.tk-author img { width: 96px; height: 96px; flex: none; }
.tk-author h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.tk-author p { margin: 0; color: var(--tk-szary); }
