/*
Theme Name: Tilatutka
Theme URI: https://tilatutka.fi
Author: Tilatutka
Description: Tilatutkan oma teema — etusivu toimii funnelina, artikkelit SEO-sisältönä samalla ilmeellä.
Version: 1.0
License: Proprietary
Text Domain: tilatutka
*/

/* Blogi- ja sisältösivujen tyylit (etusivulla on omat tyylinsä front-page.php:ssä) */
:root {
  --ink: #15222e; --ink-2: #1c2c3b; --ink-3: #263a4d;
  --paper: #f5f7f9; --card: #ffffff; --line: #dbe2ea;
  --steel: #46586a; --steel-lt: #93a5b8;
  --accent: #1e5ed6; --accent-lt: #6aa1ff; --tint: #e4edfb;
  --disp: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65; }
.tt-nav { background: var(--ink); padding: 14px 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.tt-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  font-family: var(--disp); font-weight: 700; font-size: 1.3rem; }
.tt-logo i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--accent-lt); position: relative;
  background: conic-gradient(from 255deg, transparent 0deg, rgba(106,161,255,.12) 25deg, rgba(106,161,255,.45) 62deg, transparent 72deg); }
.tt-logo i::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(106,161,255,.55); border-radius: 50%; }
.tt-logo i::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-lt); top: 3px; right: 3px; }
.tt-nav a { color: var(--steel-lt); text-decoration: none; font-size: .95rem; }
.tt-nav a:hover { color: #fff; }
.tt-nav .cta { background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 6px; font-weight: 600; }
.tt-main { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }
.tt-main h1 { font-family: var(--disp); font-size: 2.2rem; line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
.tt-main h2 { font-family: var(--disp); font-size: 1.5rem; margin: 34px 0 12px; }
.tt-main h3 { font-family: var(--disp); font-size: 1.2rem; margin: 26px 0 10px; }
.tt-meta { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 28px; }
.tt-main a { color: var(--accent); }
.tt-main img { max-width: 100%; height: auto; border-radius: 8px; }
.tt-main blockquote { border-left: 3px solid var(--accent); margin: 20px 0; padding: 4px 0 4px 18px; color: var(--steel); }
.tt-main pre, .tt-main table { overflow-x: auto; display: block; }
.tt-main table { border-collapse: collapse; }
.tt-main th, .tt-main td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

/* artikkelilistaus */
.tt-list article { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 24px 26px; margin-bottom: 16px; }
.tt-list h2 { margin: 0 0 6px; font-size: 1.35rem; }
.tt-list h2 a { color: var(--ink); text-decoration: none; }
.tt-list h2 a:hover { color: var(--accent); }
.tt-list .pvm { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.tt-list p { color: var(--steel); margin: 10px 0 0; }

/* CTA-lohko artikkelin lopussa */
.tt-cta { background: var(--ink); color: #fff; border-radius: 12px; padding: 28px; margin-top: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .tt-cta { grid-template-columns: 1fr; } }
.tt-cta h3 { margin: 0 0 8px; color: #fff; }
.tt-cta p { color: var(--steel-lt); font-size: .92rem; margin: 0 0 14px; }
.tt-cta a.nappi { display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: 6px; font-weight: 600; font-size: .92rem; }
.tt-footer { background: var(--ink); color: var(--steel-lt); padding: 36px 24px; font-size: .88rem;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tt-footer a { color: var(--accent-lt); }
