/*
Theme Name: Псюк — Стратегія
Theme URI: https://example.com
Author: Михайло Псюк
Author URI: https://example.com
Description: Персональна візитка та приватний кабінет стратегічного й операційного планування для трьох професійних ролей. Публічна частина видима всім, приватний кабінет — лише авторизованим користувачам.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: psiuk-strateg
Domain Path: /languages
Tags: custom-menu, custom-logo, translation-ready, responsive-layout, threaded-comments
*/

/* ===== ТОКЕНИ ДИЗАЙНУ =====
   ink     #16324F  — кресленнєвий синій
   paper   #EEF1EE  — холодний папір
   grid    #D6DDD9  — лінії міліметрівки
   copper  #B5652D  — акцент ОСРП
   steel   #2E6171  — акцент Науковий парк
   sage    #5C7A5C  — акцент ГО / "виконано"
   amber   #C98A2B  — попередження
   text    #1C2B36  — основний текст
*/

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;900&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #16324F;
  --paper: #EEF1EE;
  --grid: #D6DDD9;
  --copper: #B5652D;
  --steel: #2E6171;
  --sage: #5C7A5C;
  --amber: #C98A2B;
  --text: #1C2B36;
  --muted: #5A6670;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: #F3F5F2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--copper); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ---- шапка сайту ---- */
.site-header {
  background: var(--ink);
  color: #EAF0EF;
  padding: 18px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-brand {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: #fff;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav a {
  color: #B9C7D2;
  text-decoration: none;
  font-size: 14px;
  margin-left: 22px;
}
.site-nav a:hover, .site-nav a:focus { color: #fff; }

/* ---- герой візитки ---- */
.hero { padding: 64px 0 40px; }
.hero .eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
}
.hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--text);
}
.hero p.lede { font-size: 17px; color: var(--muted); max-width: 620px; margin: 0; }

/* ---- картки ролей ---- */
.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 36px 0 48px;
}
.role-card {
  background: #fff;
  border: 1px solid var(--grid);
  border-radius: 8px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
}
.role-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent, var(--copper));
}
.role-card .role-org {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.role-card h3 { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: 17px; margin: 0 0 8px; }
.role-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---- контакти ---- */
.contacts { border-top: 1px dashed var(--grid); padding: 32px 0 56px; }
.contacts h2 { font-family: 'Unbounded', sans-serif; font-size: 20px; margin: 0 0 16px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.contact-list li { font-family: 'IBM Plex Mono', monospace; font-size: 14px; }
.contact-list a { text-decoration: none; }

/* ---- заглушка приватної сторінки ---- */
.private-block {
  max-width: 460px;
  margin: 90px auto;
  background: #fff;
  border: 1px dashed var(--grid);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}
.private-block h2 { font-family: 'Unbounded', sans-serif; font-size: 19px; margin-top: 0; }
.private-block a.btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

/* ---- звичайні сторінки/пости (page.php, single.php, archive.php, search.php, 404.php) ---- */
.page-content, .entry-content { padding: 48px 0; }
.page-title, .entry-title { font-family: 'Unbounded', sans-serif; font-size: 30px; margin: 0 0 20px; }
.entry-meta { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.search-form { display: flex; gap: 8px; margin: 24px 0; }
.search-form input[type="search"] { flex: 1; padding: 10px 12px; border: 1px solid var(--grid); border-radius: 6px; }
.search-form button { padding: 10px 18px; border: none; border-radius: 6px; background: var(--ink); color: #fff; cursor: pointer; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { border-top: 1px solid var(--grid); padding: 16px 0; }
.not-found { padding: 60px 0; text-align: center; color: var(--muted); }

.site-footer {
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 12.5px;
  font-family: 'IBM Plex Mono', monospace;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
}
