:root {
  --bg-color: #f8f7f5;
  --bg-elevated: #ffffff;
  --text-color: #1c2128;
  --muted-text: #6b7280;
  --accent-color: #0f766e;
  --accent-soft: #ccf0ec;
  --border-color: #e2e5eb;
  --max-width: 760px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --line-height-base: 1.7;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-color);
  color: var(--text-color);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
}

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

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 247, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 229, 235, 0.9);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.scrolled {
  background: rgba(248, 247, 245, 0.98);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: var(--bg-elevated);
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
}

.logo-text {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted-text);
  padding: 0.25rem 0.35rem;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-color);
  background-color: rgba(204, 240, 236, 0.5);
  outline: none;
}

/* Intro */

.intro {
  padding: 2.2rem 0 1.2rem;
}

.intro h1 {
  font-size: clamp(1.6rem, 1.35rem + 1vw, 2rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.intro p {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.98rem;
}

/* Author box */

.author-box {
  padding-bottom: 1.75rem;
}

.author-box-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 229, 235, 0.9);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), #e0ecff);
  border: 2px solid var(--bg-elevated);
  flex-shrink: 0;
}

.author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.author-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.author-updated {
  font-size: 0.8rem;
  color: var(--muted-text);
}

/* Article content */

.content {
  padding: 0 0 3rem;
}

.content .container {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding-top: 1.75rem;
  padding-bottom: 2rem;
  border: 1px solid rgba(226, 229, 235, 0.95);
  box-shadow: var(--shadow-soft);
}

/* Typography inside article */

.content h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.6rem;
  line-height: 1.35;
}

.content p {
  margin: 0.4rem 0 0.8rem;
  font-size: 0.96rem;
}

.content ul,
.content ol {
  margin: 0.4rem 0 1rem 1.2rem;
  padding: 0;
  font-size: 0.95rem;
}

.content li + li {
  margin-top: 0.25rem;
}

.content strong {
  font-weight: 600;
}

/* Tables */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 0.75rem 0 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}

thead {
  background-color: #f3f4f6;
}

th,
td {
  padding: 0.6rem 0.55rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

th {
  font-weight: 600;
  font-size: 0.85rem;
  color: #4b5563;
}

tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Blockquotes (in case they appear) */

blockquote {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent-color);
  background-color: #f4f7f9;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.94rem;
  color: #374151;
}

/* Links */

.content a {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.content a:hover,
.content a:focus-visible {
  text-decoration-style: solid;
  outline: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 0 1.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted-text);
  background: #f5f4f2;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

/* Responsive */

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 0;
  }

  .main-nav {
    gap: 0.35rem;
    font-size: 0.78rem;
  }

  .nav-link {
    padding-inline: 0.25rem;
  }

  .author-box-inner {
    padding: 0.65rem 0.75rem;
  }

  .author-avatar {
    width: 38px;
    height: 38px;
  }

  .content .container {
    padding-inline: 1rem;
  }

  table {
    min-width: 480px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    column-gap: 0.5rem;
  }

  .logo-text {
    display: none;
  }

  .main-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .author-box-inner {
    gap: 0.6rem;
  }

  .author-meta {
    gap: 0.05rem;
  }

  .intro {
    padding-top: 1.7rem;
  }

  .content .container {
    padding-inline: 0.9rem;
  }
}

.offer-strip {
  padding: 0 0 1.75rem;
}

.offer-strip__panel {
  padding: 1rem;
  border: 1px solid rgba(226, 229, 235, 0.95);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(204, 240, 236, 0.55), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfa 100%);
  box-shadow: var(--shadow-soft);
}

.offer-strip__intro {
  margin-bottom: 0.9rem;
}

.offer-strip__label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(204, 240, 236, 0.65);
  color: var(--accent-color);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-strip__intro h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.offer-strip__intro p {
  max-width: 620px;
  margin: 0;
  color: var(--muted-text);
  font-size: 0.92rem;
  line-height: 1.6;
}

.offer-grid {
  display: grid;
  gap: 0.65rem;
}

.offer-card {
  display: grid;
  grid-template-columns: 2.15rem 6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.offer-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.28);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.offer-card--top {
  border-color: rgba(15, 118, 110, 0.3);
  background:
    linear-gradient(90deg, rgba(204, 240, 236, 0.42), rgba(255, 255, 255, 0.95));
}

.offer-card__index {
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
}

.offer-card__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 3.25rem;
  padding: 0.35rem;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid rgba(226, 229, 235, 0.95);
  text-decoration: none;
}

.offer-card__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.offer-card__body {
  min-width: 0;
}

.offer-card__body h3 {
  margin: 0 0 0.12rem;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.25;
}

.offer-card__body p {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.84rem;
  line-height: 1.4;
}

.offer-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.16);
}

.offer-card__button:hover,
.offer-card__button:focus-visible {
  background: #0b5f59;
  color: #ffffff;
  outline: none;
}

.offer-strip__disclaimer {
  margin: 0.85rem 0 0;
  color: var(--muted-text);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 680px) {
  .offer-strip__panel {
    padding: 0.85rem;
  }

  .offer-card {
    grid-template-columns: 1.8rem 5.25rem minmax(0, 1fr);
    gap: 0.6rem;
  }

  .offer-card__logo-link {
    width: 5.25rem;
    height: 3rem;
  }

  .offer-card__button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .offer-card {
    grid-template-columns: 1.6rem minmax(0, 1fr);
  }

  .offer-card__logo-link {
    grid-column: 2;
    width: 100%;
    max-width: 8rem;
    justify-content: flex-start;
  }

  .offer-card__body,
  .offer-card__button {
    grid-column: 1 / -1;
  }

  .offer-card__index {
    align-self: start;
    padding-top: 0.25rem;
  }
}