:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-contrast: #ffffff;
  --radius: 12px;
  --container: 1100px;
  --gap: 24px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2 * var(--gap), var(--container));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 18px 0;
}

.site-title a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-description {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .menu a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a {
  color: var(--accent);
}

.site-main {
  padding: 28px 0 48px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.layout__content {
  min-width: 0;
}

.sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #ffffff;
}

.widget-title {
  margin: 0 0 10px;
  font-size: 1rem;
}

.page-header {
  margin: 0 0 18px;
}

.page-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
}

.archive-description {
  margin-top: 10px;
  color: var(--muted);
}

.entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.entry:first-of-type {
  padding-top: 0;
}

.entry-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--accent);
}

.entry-meta {
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.entry-thumbnail {
  margin: 14px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.entry-content {
  margin-top: 12px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 18px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.pagination .current {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.search-field {
  flex: 1 1 240px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
}

.search-submit {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search-submit:hover {
  filter: brightness(0.95);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: #f8fafc;
}

.site-footer__inner {
  display: grid;
  gap: 16px;
}

.footer-nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav .menu a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.site-colophon {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-colophon a {
  color: inherit;
  font-weight: 700;
}

.comments-area {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.comment {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin: 12px 0;
  background: #ffffff;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
}

.comment-form .form-submit input {
  margin-top: 10px;
}

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

.skip-link {
  left: -999px;
  top: 12px;
  z-index: 99999;
  padding: 10px 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
}

.skip-link:focus {
  left: 12px;
  position: fixed;
}

/* ACF Landing template */
.landing {
  padding-bottom: 32px;
}

.service-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px -28px rgba(0, 0, 0, 0.55);
}

.service-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px -28px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: none;
  }

  .service-card:hover,
  .service-card:focus-within {
    transform: none;
  }
}

.landing__article {
  min-width: 0;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--gap);
  align-items: center;
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }
}

.landing-hero__title {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.landing-hero__lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.landing-hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.landing-hero__image {
  display: block;
  width: 100%;
  height: auto;
}

.landing-sections {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
}

.landing-section {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.landing-section__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.landing-section__content > *:first-child {
  margin-top: 0;
}

.landing-body {
  padding-top: 8px;
}
