:root {
  --paper: #f4f0e8;
  --ink: #141310;
  --ink-soft: #4a4640;
  --ink-muted: #7a746c;
  --line: rgba(20, 19, 16, 0.1);
  --logie: #288ccc;
  --logie-dark: #1f6fa3;
  --logie-soft: #e7f4fb;
  --white: #fffdf9;
  --footer: #0d2230;
  --display: "Montserrat", sans-serif;
  --sans: Inter, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--logie); outline-offset: 3px; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--logie);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 30;
}
.skip:focus { top: 1rem; }
.wrap { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 4px 0 var(--logie);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.logo { text-decoration: none; color: inherit; }
.logie-logo-container { display: flex; align-items: center; gap: 0.65rem; }
.logie-logo-icon { width: 42px; height: 42px; flex: none; }
.logie-logo-icon img { display: block; width: 42px; height: 42px; }
.logie-logo-text {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 1.15rem;
  line-height: 1;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button { display: none; }
.nav-links { display: flex; align-items: center; gap: 0.35rem 1.15rem; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--logie); }
.nav-signin {
  margin-left: 0.4rem;
  border: 1.5px solid var(--logie);
  color: var(--logie) !important;
  border-radius: 999px;
  padding: 0.55rem 1rem;
}
.nav-signin:hover { background: var(--logie-soft); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.68rem 1.15rem;
}
.btn-primary { background: var(--logie); color: white !important; }
.btn-primary:hover { background: var(--logie-dark); }

.page { padding: 3.5rem 0 4.5rem; }
.kicker {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--logie);
  margin: 0 0 0.8rem;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin: 0 0 1rem; letter-spacing: -0.03em; }
.lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 46rem; }
.meta { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.prose:not(.is-elementor) { max-width: 760px; font-size: 1.05rem; }
.prose:not(.is-elementor) p,
.prose:not(.is-elementor) ul,
.prose:not(.is-elementor) ol,
.prose:not(.is-elementor) blockquote,
.prose:not(.is-elementor) figure { margin: 0 0 1rem; }
.prose:not(.is-elementor) h2,
.prose:not(.is-elementor) h3 { margin: 2rem 0 0.7rem; }
.prose:not(.is-elementor) a { color: var(--logie-dark); }
.prose:not(.is-elementor) blockquote { border-left: 3px solid var(--logie); padding-left: 1rem; color: var(--ink-soft); }
.prose.is-elementor { max-width: none; }
.hero-image { margin: 0 0 1.5rem; border-radius: 18px; overflow: hidden; background: white; }
.hero-image img { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.post-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.post-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(40, 140, 204, 0.05);
}
.post-card:hover { border-color: rgba(40, 140, 204, 0.45); }
.post-card img, .post-fallback { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }
.post-fallback { background: linear-gradient(145deg, var(--logie-soft), #fff); }
.post-card div { padding: 1.15rem 1.3rem 1.25rem; }
.post-card h2 { font-size: 1.25rem; margin: 0.2rem 0 0.45rem; }
.post-card p { margin: 0; color: var(--ink-soft); }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; }
.pager a { color: var(--logie-dark); font-weight: 700; }
.search { display: flex; gap: 0.6rem; margin: 1.25rem 0 0; }
.search input, .search button {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.7rem 1rem;
}
.search input { min-width: min(100%, 280px); background: var(--white); }
.search button { background: var(--logie); color: white; border-color: var(--logie); cursor: pointer; font-weight: 700; }
.latest { margin-top: 3.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.latest ul { padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.latest a { color: var(--logie-dark); text-decoration: none; font-weight: 650; }
.latest a:hover { color: var(--logie); }

.site-footer {
  background: var(--footer);
  color: rgba(255, 253, 249, 0.82);
  padding: 3.5rem 0 1.4rem;
}
.site-footer .logie-logo-text { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.8fr) 1.15fr;
  gap: 2rem 1.5rem;
}
.footer-brand p { margin: 0.9rem 0 0; color: rgba(255, 253, 249, 0.66); }
.footer-grid h2 {
  margin: 0 0 0.9rem;
  color: var(--logie);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.footer-grid nav a { text-decoration: none; color: rgba(255, 253, 249, 0.86); }
.footer-grid nav a:hover { color: white; }
.socials { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.1rem; }
.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
.socials a:hover { background: var(--logie); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.newsletter p { margin: 0 0 0.9rem; max-width: 18rem; text-wrap: balance; }
.newsletter-row { display: flex; flex-direction: column; gap: 0.55rem; }
.newsletter input[type="email"] {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: white;
  color: var(--ink);
}
.newsletter button {
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: var(--logie);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.newsletter button:hover { background: var(--logie-dark); }
.newsletter button:disabled { opacity: 0.7; cursor: progress; }
.newsletter-status { min-height: 1.2rem; margin-top: 0.55rem; color: white; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 2.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 253, 249, 0.55);
  font-size: 0.88rem;
}
.footer-base p { margin: 0; }
.footer-base nav { display: flex; gap: 1rem; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: white; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand, .newsletter { grid-column: 1 / -1; }
  .newsletter p { max-width: none; }
  .newsletter-row { flex-direction: row; }
  .newsletter input[type="email"] { flex: 1; }
  .newsletter button { width: auto; }
}
@media (max-width: 860px) {
  .wrap { width: calc(100% - 1.5rem); }
  .nav-button {
    display: inline-flex;
    margin-left: auto;
    border: 1.5px solid var(--logie);
    color: var(--logie);
    background: white;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem 1rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(13, 34, 48, 0.08);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 0.7rem 0.2rem; }
  .nav-signin, .btn { margin-left: 0; text-align: center; }
  .post-card { grid-template-columns: 1fr; }
  .footer-grid, .footer-base { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-row { flex-direction: column; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
