/*
Theme Name: Europe United Post
Theme URI: https://example.com/europe-united-post
Author: Europe United Post
Author URI: https://example.com
Description: A clean white-and-blue editorial theme for a pan-European news blog. Post roll with a categories sidebar, single posts with previous/next navigation, category archives, and a styled 404. Typeset in Roboto Slab and Roboto.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: europe-united-post
Tags: blog, news, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   Europe United Post — stylesheet
   Palette : white + blue / light-blue
   Type    : Roboto Slab (display) · Roboto (body / utility)
   ============================================================ */

:root {
  --paper:      #FFFFFF;
  --paper-2:    #EEF4FC;
  --ink:        #0C2E5E;   /* deep blue — headings, nav, masthead rule */
  --ink-soft:   #33506E;   /* body text */
  --muted:      #5E7188;   /* meta / captions */
  --blue:       #1663C7;   /* primary accent + links */
  --blue-deep:  #0E4C9E;   /* hover / darker */
  --blue-light: #5AA0E6;   /* light-blue accent */
  --sky:        #E4EFFB;   /* very light blue fill */
  --rule:       #D9E4F1;
  --rule-dark:  #B9CBE2;

  --slab: "Roboto Slab", Georgia, "Times New Roman", serif;
  --sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gap: 2.5rem;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

/* ---------- masthead ---------- */
.masthead {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  padding-top: 1.4rem;
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding-bottom: 1.1rem;
  text-align: center;
}
.masthead__emblem { width: 58px; height: 58px; flex: none; }
.masthead__word {
  font-family: var(--slab);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.masthead__word:hover { text-decoration: none; }
.masthead__word b { font-weight: 700; color: var(--blue); }

.dateline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
}
.dateline span { white-space: nowrap; }

/* ---------- section navigation ---------- */
.topnav {
  background: var(--ink);
  border-bottom: 3px solid var(--blue-light);
}
.topnav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.4rem;
}
.topnav a {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #DCE8F7;
  padding: 0.85rem 1rem;
}
.topnav a:hover,
.topnav a[aria-current="page"] {
  color: #FFFFFF;
  background: var(--blue);
  text-decoration: none;
}

/* ---------- page layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--gap);
  padding-block: 2.6rem 3.5rem;
  align-items: start;
}
.content { min-width: 0; }

/* ---------- post roll ---------- */
.roll { display: flex; flex-direction: column; }

.post {
  padding-bottom: 2.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--rule);
}
.post:last-child { border-bottom: 0; margin-bottom: 0; }

.post__eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.55rem;
}
.post__eyebrow a { color: inherit; }

.post__title {
  font-family: var(--slab);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
}
.post__title a { color: var(--ink); }
.post__title a:hover { color: var(--blue); text-decoration: none; }

.post__meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0 0 1.1rem;
}
.post__meta strong { color: var(--ink-soft); font-weight: 700; }
.post__meta .dot { margin: 0 0.55rem; color: var(--rule-dark); }

.post__excerpt p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}
.post__excerpt p:first-child { margin-top: 0; }

/* buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 0.6rem 1.3rem;
  margin-top: 0.5rem;
  transition: background .18s ease, border-color .18s ease;
}
.btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #FFFFFF;
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  border-color: var(--rule-dark);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--sky); border-color: var(--blue); color: var(--ink); }

/* ---------- sidebar ---------- */
.aside { font-family: var(--sans); }
.widget { margin-bottom: 2.4rem; }
.widget__title {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
}
.catlist { list-style: none; margin: 0; padding: 0; }
.catlist li {
  border-bottom: 1px solid var(--rule);
}
.catlist a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.catlist a:hover { color: var(--blue); text-decoration: none; }
.catlist .count {
  font-size: 0.74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.aboutbox {
  background: var(--sky);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blue);
  padding: 1.4rem 1.5rem;
}
.aboutbox p {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- pagination (WordPress the_posts_pagination) ---------- */
.pagination {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px double var(--rule-dark);
  font-family: var(--sans);
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.pagination .page-numbers {
  min-width: 2.6rem;
  text-align: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--rule-dark);
  color: var(--ink-soft);
  text-decoration: none;
}
a.page-numbers:hover {
  background: var(--blue);
  color: #FFFFFF;
  border-color: var(--blue);
  text-decoration: none;
}
.pagination .current {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
  font-weight: 700;
}
.pagination .dots {
  border: 0;
  color: var(--muted);
  min-width: auto;
  padding-inline: 0.3rem;
}
.pagination .prev,
.pagination .next {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  font-weight: 600;
}

/* ---------- article (post page) ---------- */
.article { max-width: 720px; margin-inline: auto; padding-block: 3rem 2rem; }
.article__eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.8rem;
}
.article__eyebrow a { color: inherit; }
.article__title {
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.article__meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  padding-bottom: 1.6rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--rule);
}
.article__meta strong { color: var(--ink-soft); font-weight: 700; }
.article__meta .dot { margin: 0 0.55rem; color: var(--rule-dark); }

.prose { font-size: 1.13rem; line-height: 1.75; color: var(--ink-soft); }
.prose > p:first-child::first-letter {
  font-family: var(--slab);
  font-weight: 700;
  float: left;
  font-size: 3.4rem;
  line-height: 0.82;
  padding: 0.15rem 0.6rem 0 0;
  color: var(--blue);
}
.prose p { margin: 0 0 1.3rem; }
.prose h2 {
  font-family: var(--slab);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 2.4rem 0 0.9rem;
}
.prose blockquote {
  margin: 2rem 0;
  padding: 0.3rem 0 0.3rem 1.5rem;
  border-left: 3px solid var(--blue);
  font-family: var(--slab);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink);
}

/* prev / next */
.postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  margin-top: 3rem;
  max-width: 720px;
  margin-inline: auto;
}
.postnav a {
  background: var(--paper);
  padding: 1.4rem 1.5rem;
  display: block;
}
.postnav a:hover { background: var(--paper-2); text-decoration: none; }
.postnav__dir {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.4rem;
}
.postnav__ttl {
  font-family: var(--slab);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
}
.postnav .next { text-align: right; }

/* ---------- category header ---------- */
.cathead {
  padding-block: 2.8rem 0;
  border-bottom: 3px double var(--rule-dark);
  margin-bottom: 0.4rem;
}
.cathead__kicker {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.6rem;
}
.cathead__title {
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.8rem;
}
.cathead__desc {
  max-width: 640px;
  color: var(--muted);
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding-block: clamp(3.5rem, 10vw, 7rem);
  max-width: 620px;
  margin-inline: auto;
}
.notfound__code {
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
}
.notfound__code span { color: var(--blue-light); }
.notfound__title {
  font-family: var(--slab);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--ink);
  margin: 0.6rem 0 1rem;
}
.notfound__text { color: var(--muted); margin: 0 auto 2rem; max-width: 460px; }
.notfound__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.notfound__links a {
  border: 1px solid var(--rule-dark);
  padding: 0.5rem 1rem;
  color: var(--ink-soft);
}
.notfound__links a:hover { background: var(--blue); border-color: var(--blue); color: #FFFFFF; text-decoration: none; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: #C6D6EC;
  font-family: var(--sans);
  margin-top: 2rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 2rem;
  font-size: 0.82rem;
}
.footer__brand {
  font-family: var(--slab);
  font-weight: 600;
  font-size: 1.25rem;
  color: #FFFFFF;
}
.footer__brand b { color: var(--blue-light); font-weight: 700; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer a { color: #C6D6EC; }
.footer a:hover { color: var(--blue-light); text-decoration: none; }
.footer__legal { width: 100%; border-top: 1px solid #234A78; padding-top: 1.2rem; color: #8FA6C4; font-size: 0.76rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 2.4rem; }
  .aside {
    border-top: 3px double var(--rule-dark);
    padding-top: 2rem;
  }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .postnav { grid-template-columns: 1fr; }
  .postnav .next { text-align: left; }
  .pagination { justify-content: center; }
  .prose > p:first-child::first-letter { font-size: 2.8rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* ============================================================
   WordPress integration helpers
   ============================================================ */

/* accessibility: skip link + screen-reader text */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: #FFFFFF;
  padding: 0.7rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; text-decoration: none; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

/* nav menu: current-item highlight (mirrors [aria-current]) */
.topnav .current-menu-item > a,
.topnav .current_page_item > a,
.topnav .current-menu-parent > a,
.topnav .current-cat > a {
  color: #FFFFFF;
  background: var(--blue);
}
.topnav .sub-menu { display: none; } /* keep the bar single-level */

/* generic registered widgets (so admin-added widgets still look right) */
.widget select,
.widget input[type="search"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.92rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--rule-dark);
  background: var(--paper);
  color: var(--ink-soft);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { border-bottom: 1px solid var(--rule); }
.widget ul li a {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.widget ul li a:hover { color: var(--blue); text-decoration: none; }
.widget ul ul { margin-left: 0.9rem; }

/* WordPress core content alignment / caption classes */
.alignleft  { float: left;  margin: 0.4rem 1.4rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }
.sticky, .bypostauthor { display: block; }
.prose img, .prose figure { height: auto; margin: 1.6rem 0; }
.prose figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }

/* comment-free layout keeps the reading column tidy; nothing needed here */
