:root {
  --text: #1b1c1d;
  --muted: rgba(0, 0, 0, 0.6);
  --border: rgba(34, 36, 38, 0.15);
  --brand: #2185d0;
  --brand-dark: #1678c2;
  --segment-alt: #f9fafb;
  --max-width: 1127px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

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

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

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

.site-header-inner {
  padding: 1rem 0 1.25rem;
}

.site-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-tagline {
  margin: 0.25rem 0 0.75rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

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

.site-main {
  min-height: 60vh;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2rem 0;
  color: var(--muted);
}

.page-content,
.post-content,
.blog-index,
.archive-page {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.page-header h1,
.post-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.post-meta,
.post-tags {
  color: var(--muted);
  font-size: 0.95rem;
}

.post-list-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list-item h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

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

.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
}

.entry-content pre,
.entry-content code {
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
}

.entry-content pre {
  background: #f4f4f4;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 0.28571429rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
}

/* Semantic UI–like blocks from WordPress content */
.ui.segment,
.ui.vertical.segment {
  padding: 3rem 1rem;
}

.ui.vertical.segment.stripe.alternate,
.ui.vertical.segment.wp-block-gsui-landing.stripe.alternate {
  background: var(--segment-alt);
}

.ui.vertical.segment.center.aligned,
.ui.huge.vertical.center.aligned.segment {
  text-align: center;
}

.ui.container {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.ui.grid,
.ui.stackable.grid,
.ui.stackable.equal.width.grid,
.ui.stackable.three.column.grid,
.ui.stackable.divided.grid,
.ui.stackable.mobile.reversed.equal.width.grid {
  display: grid;
  gap: 1.5rem;
}

.ui.stackable.three.column.grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ui.stackable.equal.width.grid,
.ui.stackable.divided.equal.width.grid,
.ui.stackable.mobile.reversed.equal.width.grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.ui.grid > .row {
  display: contents;
}

.ui.column,
.ui.wide.column,
.ui.fifteen.wide.column,
.ui.twelve.wide.column,
.ui.four.wide.column {
  min-width: 0;
}

.ui.header,
.ui.huge.header,
.ui.large.header,
.ui.medium.header,
.ui.small.header,
.ui.grey.header,
.ui.blue.header,
.ui.orange.header,
.ui.violet.header {
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.ui.huge.header {
  font-size: clamp(2rem, 5vw, 3rem);
}

.ui.large.header {
  font-size: 1.5rem;
}

.ui.medium.header {
  font-size: 1.15rem;
}

.ui.grey.header,
.has-grey-color {
  color: var(--muted);
}

.ui.blue.header { color: #2185d0; }
.ui.orange.header { color: #f2711c; }
.ui.violet.header { color: #6435c9; }

.ui.image,
.ui.small.centered.image,
.ui.image.raised {
  display: block;
  margin-inline: auto;
}

.ui.small.centered.image {
  max-width: 12rem;
}

.ui.button,
.ui.positive.button,
.ui.massive.button {
  display: inline-block;
  padding: 0.85em 1.5em;
  border-radius: 0.28571429rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.ui.positive.button {
  background: #21ba45;
}

.ui.massive.button {
  font-size: 1.15rem;
}

.ui.divider,
.ui.section.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.wp-block-media-text,
.wp-block-image,
figure {
  margin: 1.5rem 0;
}

.wp-block-media-text {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.wp-block-media-text.alignwide {
  grid-template-columns: 1fr 1fr;
}

.wp-block-media-text.has-media-on-the-right {
  direction: rtl;
}

.wp-block-media-text.has-media-on-the-right > * {
  direction: ltr;
}

figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.content-block {
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .wp-block-media-text.alignwide,
  .wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .ui.vertical.segment {
    padding: 2rem 0.75rem;
  }
}
