* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #1f3b38;
  --ink-soft: #4b6663;
  --ink-mute: #6d8683;
  --accent: #4e9b94;
  --accent-strong: #37716b;
  --accent-deep: #2b5a55;
  --accent-soft: #e88883;
  --accent-tint: #dcecea;
  --surface: #ffffff;
  --bg: #f6faf9;
  --hairline: rgba(31, 59, 56, 0.09);
  --hairline-strong: rgba(31, 59, 56, 0.14);
  --shadow-md: 0 6px 16px rgba(24, 90, 84, 0.1), 0 2px 6px rgba(24, 90, 84, 0.06);
  --shadow-lg: 0 20px 44px rgba(24, 90, 84, 0.16);
  --radius-md: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 760px;
  --container-wide: 1040px;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--accent-strong);
}

.blog-header {
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent-deep));
  padding: 22px clamp(20px, 5vw, 40px);
}

.blog-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-header a.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
}

.blog-header a.brand img {
  height: 56px;
  width: auto;
  display: block;
}

.blog-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.blog-header__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 22px;
}

.blog-header__contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.blog-header__contact a:hover {
  color: #fff;
}

.icon--contact {
  width: 18px;
  height: 18px;
  flex: none;
}

.blog-header__social {
  display: flex;
  gap: 8px;
}

.blog-header__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.86);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}

.blog-header__social svg {
  width: 14px;
  height: 14px;
}

.blog-header__social a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  transform: translateY(-2px);
}

.blog-header a.back {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.blog-header a.back:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .blog-header__inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .blog-header__right {
    align-items: center;
    width: 100%;
  }

  .blog-header__contact {
    justify-content: center;
    width: 100%;
  }
}

main.blog {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 40px) clamp(56px, 6vw, 80px);
}

.blog-kicker {
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 10px;
}

h1.blog-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}

.blog-date {
  color: var(--ink-mute);
  font-size: 0.9375rem;
  margin-bottom: 28px;
}

.blog-article :is(h2, h3) {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--ink);
  margin: 1.6em 0 0.6em;
  line-height: 1.2;
}

.blog-article p {
  margin: 0 0 1.2em;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 1.2em 1.4em;
}

.blog-article a {
  text-decoration: underline;
}

.blog-article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.2em auto;
  border-radius: var(--radius-md);
}

.blog-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 4px 0 28px;
}

.blog-article strong {
  color: var(--ink);
}

.blog-back {
  display: inline-block;
  margin-top: 36px;
  font-weight: 600;
  text-decoration: none;
}

.share {
  position: relative;
  display: inline-block;
  margin-top: 36px;
}

.share__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--accent-strong);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.share__toggle svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.share__toggle:hover,
.share__toggle[aria-expanded='true'] {
  background: var(--accent-tint);
  border-color: var(--accent);
}

.share__menu[hidden] {
  display: none;
}

.share__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 210px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
}

.share__item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.share__item svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent-strong);
}

.share__item:hover {
  background: var(--accent-tint);
}

.blog-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.blog-list li {
  display: flex;
}

.blog-list__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.blog-list__link:hover {
  color: var(--ink);
  transform: translateY(-6px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-lg);
}

.blog-list__thumb {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9, fixed via padding so flex column sizing can't collapse it to 0 */
  flex-shrink: 0;
  overflow: hidden;
  background: var(--hairline);
}

.blog-list__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.blog-list__link:hover .blog-list__thumb img {
  transform: scale(1.04);
}

.blog-list__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px;
  min-width: 0;
}

.blog-list__title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.blog-list .blog-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin: 0 0 8px;
}

.blog-list span.excerpt {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.blog-list__cta {
  margin-top: auto;
  align-self: flex-end;
  padding-top: 16px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent-strong);
}

.blog-list__divider {
  height: 3px;
  width: 100%;
  margin-top: 36px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: left;
  animation: blog-divider-grow 0.9s var(--ease) 0.2s both;
}

@keyframes blog-divider-grow {
  to {
    transform: scaleX(1);
  }
}

.blog-empty {
  color: var(--ink-mute);
  margin-top: 24px;
}

footer.blog-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, var(--accent-strong), var(--accent-deep));
  font-size: 0.9375rem;
}

footer.blog-footer a {
  color: #fff;
}

.blog-footer__contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-bottom: 14px;
}

.blog-footer__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}

.blog-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.blog-footer__social {
  display: flex;
  gap: 10px;
}

.blog-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-footer__social svg {
  width: 16px;
  height: 16px;
}

.blog-footer__social a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}
