:root {
  --theme-primary: #1f4f41;
  --theme-primary-dark: #163c31;
  --theme-secondary-dark: #2f3533;
  --theme-secondary-mid: #606a66;
  --theme-secondary-light: #c9cec8;
  --theme-background: #f2ebdb;
  --theme-card: #f8f2e5;
  --theme-border: #d8d1c2;
  --theme-text: #24302c;
}

html,
body {
  background-color: var(--theme-background);
  background-image: radial-gradient(rgba(41, 56, 50, 0.1) 0.75px, transparent 0.75px);
  background-size: 9px 9px;
  color: var(--theme-text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  min-height: 100%;
}

h1,
h2,
h3,
h4,
.brand-serif {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: var(--theme-primary);
}

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

.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
  background: rgba(242, 235, 219, 0.92);
  border-bottom: 1px solid var(--theme-border);
}

.site-menu.ui.menu {
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 4.4rem;
}

.site-menu .header.item {
  color: var(--theme-primary-dark);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.site-menu .item {
  color: var(--theme-secondary-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.site-menu .item:hover,
.site-menu .item.active {
  color: var(--theme-primary-dark);
}

.site-logout-form {
  align-items: stretch;
  display: flex;
  margin: 0;
}

.site-menu button.item.site-logout-button {
  background: transparent;
  border: none;
  cursor: pointer;
}

.main-content {
  padding-top: 1.5rem;
  padding-bottom: 2.6rem;
}

.section-panel {
  background: rgba(248, 242, 229, 0.8);
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  padding: 1.2rem;
}

.section-title {
  color: var(--theme-primary-dark);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-banner {
  background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary));
  border-radius: 18px;
  color: #f7faf8;
  margin-bottom: 1.2rem;
  overflow: hidden;
  padding: 2.1rem 1.9rem;
  position: relative;
}

.hero-banner::after {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 70%);
  content: "";
  height: 220px;
  position: absolute;
  right: -50px;
  top: -70px;
  width: 220px;
}

.hero-banner h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.95;
  margin: 0.1rem 0 0.7rem;
}

.hero-banner p {
  color: #e9f3f0;
  max-width: 60ch;
}

.hero-eyebrow {
  color: #d6e2de;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.blog-news-stage {
  display: grid;
  grid-template-columns: minmax(230px, 300px) 1fr;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
}

.news-stage-left {
  padding: 1rem 0.4rem;
}

.news-giant-title {
  color: #111613;
  font-size: clamp(3.2rem, 8.5vw, 7rem);
  line-height: 0.84;
  margin: 0;
}

.news-giant-subtitle {
  color: #212f2a;
  font-size: 1.5rem;
  line-height: 1.05;
  margin-top: 0.8rem;
  max-width: 12ch;
}

.featured-news-card {
  display: grid;
  grid-template-columns: minmax(180px, 340px) 1fr;
  gap: 1rem;
  align-items: start;
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
  padding: 1.2rem 0;
}

.featured-news-image-wrap {
  display: block;
  width: 100%;
}

.featured-news-image,
.featured-news-placeholder {
  border-radius: 8px;
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.featured-news-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #8ea698, #496158);
  color: #eef3f0;
  font-weight: 700;
}

.featured-news-copy h2 {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 0.92;
  margin: 0.25rem 0 0.7rem;
}

.featured-news-copy p {
  color: #394743;
  margin-bottom: 0.9rem;
}

.tag-filter-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.tag-filter-form .ui.dropdown {
  min-width: 240px;
}

.tag-chip-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.4rem 0 1.1rem;
}

.tag-chip {
  border: 1px solid #bfc8c4;
  border-radius: 999px;
  color: var(--theme-secondary-dark);
  display: inline-flex;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  text-transform: uppercase;
}

.tag-chip:hover,
.tag-chip.active {
  border-color: var(--theme-primary);
  background: #e8efe9;
  color: var(--theme-primary-dark);
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}

.news-post-card {
  background: #fcf7eb;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(23, 32, 28, 0.08);
}

.news-post-image-wrap {
  display: block;
  width: 100%;
}

.news-post-image,
.news-post-placeholder {
  display: block;
  height: 175px;
  object-fit: cover;
  width: 100%;
}

.news-post-placeholder {
  align-items: center;
  background: linear-gradient(140deg, #9ab0a4, #5d7269);
  color: #eff5f2;
  display: flex;
  font-weight: 700;
  justify-content: center;
}

.news-post-copy {
  padding: 0.9rem;
}

.news-post-copy h3 {
  font-size: 1.32rem;
  line-height: 1.05;
  margin: 0.35rem 0 0.45rem;
}

.news-post-copy p {
  color: #43524c;
  font-size: 0.94rem;
  line-height: 1.45;
  margin-bottom: 0.55rem;
}

.news-read-link {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-tag-inline {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.mini-tag {
  background: #e4ebe6;
  border-radius: 999px;
  color: #1f4336;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
}

.lead-meta {
  color: var(--theme-secondary-mid);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-shell {
  background: rgba(248, 242, 229, 0.82);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  padding: 1.8rem;
}

.article-shell h1 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 0.9;
  margin-bottom: 0.5rem;
}

.article-meta {
  color: var(--theme-secondary-mid);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-content {
  border-top: 1px solid var(--theme-border);
  margin-top: 1.25rem;
  padding-top: 1.15rem;
}

.article-content p,
.markdown-content li {
  font-size: 1.03rem;
  line-height: 1.85;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  color: var(--theme-primary-dark);
  line-height: 1.1;
}

.markdown-content h1 {
  border-bottom: 1px solid var(--theme-border);
  margin-top: 1.5em;
  padding-bottom: 0.2em;
}

.markdown-content h2 {
  border-bottom: 1px solid #dcd9cd;
  margin-top: 1.4em;
  padding-bottom: 0.2em;
}

.markdown-content code {
  background: #ece5d5;
  border-radius: 5px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.9em;
  padding: 0.15em 0.35em;
}

.markdown-content pre {
  background: #ede6d8;
  border-radius: 8px;
  overflow-x: auto;
  padding: 0.85rem;
}

.markdown-content blockquote {
  border-left: 3px solid var(--theme-primary);
  color: #4c5953;
  margin: 1rem 0;
  padding-left: 1rem;
}

.micro-card {
  background: #faf4e6;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 92px 1fr;
  overflow: hidden;
  padding: 0.7rem;
}

.micro-image,
.micro-image-placeholder {
  border-radius: 8px;
  height: 92px;
  object-fit: cover;
  width: 92px;
}

.micro-image-placeholder {
  background: linear-gradient(145deg, #8fa798 0%, #53665f 100%);
}

.micro-quote {
  color: var(--theme-secondary-dark);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 0.25rem;
}

.micro-quote-block {
  border-left: 7px solid var(--theme-primary);
  margin: 0.3rem 0 0.6rem;
  padding: 0.1rem 0 0.1rem 0.85rem;
  position: relative;
}

.micro-card .micro-quote-block {
  border-left-color: var(--theme-primary-dark);
}

.micro-grid .micro-card .micro-quote-block {
  border-left-width: 3px;
}

.micro-quote-block .micro-quote {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin: 0;
}

.micro-note {
  color: #4a5852;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.micro-meta {
  color: #6b7772;
  font-size: 0.78rem;
  font-weight: 600;
}

.project-chip {
  border-top: 1px dashed var(--theme-border);
  display: block;
  padding: 0.65rem 0.05rem;
}

.project-chip:first-child {
  border-top: none;
  padding-top: 0.15rem;
}

.ui.primary.button,
.ui.primary.buttons .button {
  background-color: var(--theme-primary);
}

.ui.primary.button:hover,
.ui.primary.buttons .button:hover {
  background-color: var(--theme-primary-dark);
}

.ui.button {
  border-radius: 8px;
}

.ui.message {
  border-radius: 10px;
}

.ui.form label {
  color: var(--theme-secondary-dark);
  font-weight: 700;
}

.ui.form input.prompt,
.ui.form textarea.prompt,
.ui.form select.prompt,
.ui.form input[type="file"] {
  background: #fffdf7;
  border: 1px solid #d7d0bd;
  border-radius: 8px;
  color: #27302d;
  width: 100%;
}

.ui.form input.prompt:focus,
.ui.form textarea.prompt:focus,
.ui.form select.prompt:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 2px rgba(29, 77, 62, 0.12);
}

.site-footer {
  background: #1b322b;
  border-top: 1px solid #233f36;
  color: #d2ddd8;
  margin-top: 2rem;
  padding: 2.2rem 0;
}

.micro-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.micro-grid .micro-card {
  grid-template-columns: 1fr;
}

.micro-grid .micro-image,
.micro-grid .micro-image-placeholder {
  height: 180px;
  width: 100%;
}

@media (max-width: 1100px) {
  .blog-news-stage {
    grid-template-columns: 1fr;
  }

  .news-stage-left {
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: 1rem;
  }

  .news-giant-title {
    font-size: clamp(2.8rem, 15vw, 5.8rem);
  }

  .news-giant-subtitle {
    max-width: none;
  }

  .featured-news-card {
    grid-template-columns: 1fr;
  }

  .featured-news-image,
  .featured-news-placeholder {
    height: 260px;
  }
}

@media (max-width: 992px) {
  .site-menu.ui.menu {
    flex-wrap: wrap;
    min-height: auto;
    padding-bottom: 0.4rem;
    padding-top: 0.4rem;
  }

  .site-menu .menu {
    width: 100%;
  }

  .site-menu .item {
    font-size: 0.72rem;
  }
}
