/* ============================================================
   EUCVK PORTFOLIO — design system
   Palette and type derived from the reference deck:
   Console Light / Poppins.
   ============================================================ */

:root {
  --bg: #E5E3DC;
  --surface: #D9D7CE;
  --surface-raised: #EFEDE7;
  --border: #C7C4B8;
  --text-tertiary: #6B6B6B;
  --text-secondary: #555555;
  --text-primary: #262626;
  --text-heading: #1A1A1A;
  --accent: #D62630;
  --accent-strong: #BE1E2D;
  --accent-deep: #8C1620;
  --on-accent: #FFFFFF;

  --font-display: 'Poppins', -apple-system, sans-serif;
  --font-heading: 'Poppins', -apple-system, sans-serif;
  --font-body: 'Poppins', -apple-system, sans-serif;

  --max-width: 1180px;
  --content-width: 760px;
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.skip-link.screen-reader-text:focus {
  position: fixed !important;
  top: 10px; left: 10px;
  width: auto; height: auto;
  clip: auto;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: var(--content-width); margin: 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-heading); font-weight: 600; line-height: 1.25; margin: 0 0 16px; }
h1 { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.01em; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 19px; }
h4 { font-size: 15px; }
p { margin: 0 0 18px; }
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.lead { font-size: 18px; color: var(--text-heading); }
.muted { color: var(--text-tertiary); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo-mark {
  width: 34px; height: 34px;
  background: var(--text-heading);
  border-radius: var(--radius);
  position: relative;
  flex: none;
}
.site-logo-mark::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  background: var(--accent);
  top: 12px; left: 12px;
}
.site-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--text-heading); }
.site-title a { display: block; }
.site-tagline { font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.04em; }

.primary-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.primary-nav a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
}
.primary-nav a:hover, .primary-nav .current-menu-item a { background: var(--surface); color: var(--text-heading); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-outline { background: transparent; color: var(--text-heading); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text-secondary); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 46px; margin-bottom: 14px; }
.hero .lead { max-width: 62ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a.view-all { font-size: 13.5px; font-weight: 600; color: var(--accent); }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-thumb { aspect-ratio: 16/10; background: var(--surface); overflow: hidden; position: relative; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); }
.card-thumb-placeholder svg { width: 34px; height: 34px; opacity: 0.5; }
.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.card-title { font-family: var(--font-heading); font-weight: 600; font-size: 16.5px; color: var(--text-heading); margin-bottom: 8px; line-height: 1.35; }
.card-desc { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 0; flex: 1; }
.card-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ---------- Blog list / single ---------- */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-list-item { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.post-list-item:first-child { padding-top: 0; }
@media (max-width: 640px) { .post-list-item { grid-template-columns: 1fr; } }
.post-list-thumb { aspect-ratio: 4/3; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-date { font-size: 12px; color: var(--text-tertiary); margin-bottom: 6px; }
.post-list-title { font-size: 20px; margin-bottom: 8px; }
.post-list-title a:hover { color: var(--accent); }
.post-list-excerpt { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 0; }

article.single { padding: 56px 0 90px; }
.single-header { margin-bottom: 32px; }
.single-meta { font-size: 13px; color: var(--text-tertiary); margin-bottom: 14px; }
.single-featured-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; }
.single-content { font-size: 16.5px; }
.single-content h2 { margin-top: 40px; font-size: 23px; }
.single-content h3 { margin-top: 28px; }
.single-content p { margin-bottom: 20px; }
.single-content ul, .single-content ol { margin: 0 0 20px; padding-left: 22px; }
.single-content li { margin-bottom: 8px; }
.single-content a { color: var(--accent); border-bottom: 1px solid rgba(214,38,48,0.35); }
.single-content blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--text-secondary); font-style: italic; }
.single-content img { border-radius: var(--radius); margin: 24px 0; }
.single-content pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-x: auto; font-size: 13.5px; }

.eucvk-media-embed { margin: 8px 0 30px; }
.eucvk-media-embed iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius-lg); }
.eucvk-media-embed-recording { margin-top: 20px; }
.eucvk-media-fallback { margin: 8px 0 30px; }

.meta-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.meta-panel-item { font-size: 13px; }
.meta-panel-item strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--text-heading); margin-bottom: 2px; }

/* ---------- Archive header ---------- */
.archive-header { padding: 56px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 44px; }
.archive-header h1 { margin-bottom: 10px; }
.archive-header p { color: var(--text-secondary); max-width: 62ch; }

.pagination { display: flex; gap: 10px; justify-content: center; margin: 56px 0 0; }
.pagination a, .pagination span {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
}
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sidebar / widgets (footer) ---------- */
.footer-widget-title { font-family: var(--font-heading); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-heading); margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-about p { color: var(--text-secondary); font-size: 14px; max-width: 40ch; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--surface-raised); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; fill: var(--text-heading); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { font-size: 13.5px; color: var(--text-secondary); }
.footer-nav a:hover { color: var(--accent); }
.site-footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-tertiary);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- Search / 404 ---------- */
.search-form { display: flex; gap: 10px; margin: 20px 0 40px; }
.search-form input[type="search"] {
  flex: 1; padding: 12px 16px; font-family: var(--font-body); font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-raised); color: var(--text-primary);
}
.search-form button { border: none; cursor: pointer; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-metadata { font-size: 12px; color: var(--text-tertiary); margin-bottom: 10px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 14px; margin-bottom: 14px; font-family: var(--font-body);
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-raised); color: var(--text-primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .primary-nav { display: none; position: fixed; top: 71px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); z-index: 49; padding: 8px 16px 16px; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 32px; }
  .container { padding: 0 20px; }
  .footer-grid { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
