:root {
  --navy: #0d223d;
  --navy-deep: #071420;
  --teal: #1c6f78;
  --teal-soft: #4a9298;
  --gold: #eda84e;
  --coral: #ee9e77;
  --coral-deep: #e07f52;
  --cream: #f7f1e3;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--cream);
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--white);
  border-bottom: 1px solid rgba(28, 111, 120, 0.15);
}

.site-header a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.site-header img.logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 2px 10px rgba(13, 34, 61, 0.2);
  object-fit: cover;
}

.site-header .brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* Main content wrap */
main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(28, 111, 120, 0.08);
  color: var(--teal);
  border: 1px solid rgba(28, 111, 120, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

/* Blog listing */
.blog-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.blog-subtitle {
  font-size: 1.02rem;
  color: rgba(13, 34, 61, 0.7);
  line-height: 1.6;
  margin: 0 0 36px;
  max-width: 560px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-card {
  display: block;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(13, 34, 61, 0.08);
  border: 1px solid rgba(28, 111, 120, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card .post-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.post-card .post-card-body {
  padding: 20px 24px 22px;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(13, 34, 61, 0.14);
}

.post-card .post-date {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.post-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.post-card p {
  font-size: 0.97rem;
  color: rgba(13, 34, 61, 0.75);
  line-height: 1.6;
  margin: 0 0 12px;
}

.post-card .read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--coral-deep);
}

/* Single post */
.post-hero {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(13, 34, 61, 0.12);
}

.post-hero img {
  display: block;
  width: 100%;
  height: auto;
}

article .post-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

article h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 4.6vw, 2.3rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

article .byline {
  font-size: 0.9rem;
  color: rgba(13, 34, 61, 0.6);
  margin: 0 0 8px;
}

.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  position: relative;
}

.share-label {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(13, 34, 61, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(28, 111, 120, 0.25);
  color: var(--navy);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  padding: 0;
}

.share-btn svg { width: 16px; height: 16px; }

.share-btn:hover {
  transform: translateY(-1px);
  border-color: var(--coral-deep);
  color: var(--coral-deep);
}

.share-toast {
  position: absolute;
  left: 0;
  top: -30px;
  background: var(--navy);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.share-toast.visible { opacity: 1; }

article p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(13, 34, 61, 0.9);
  margin: 0 0 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 8px 0 32px;
}

@media (min-width: 560px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-box {
  background: var(--white);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid rgba(28, 111, 120, 0.15);
  box-shadow: 0 4px 14px rgba(13, 34, 61, 0.06);
}

.stat-box .stat-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coral-deep);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-box .stat-label {
  font-size: 0.78rem;
  color: rgba(13, 34, 61, 0.65);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

article h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 16px;
}

article ul {
  margin: 0 0 24px;
  padding-left: 22px;
}

article li {
  font-size: 1.03rem;
  line-height: 1.7;
  color: rgba(13, 34, 61, 0.9);
  margin-bottom: 10px;
}

.img-caption {
  font-size: 0.82rem;
  color: rgba(13, 34, 61, 0.55);
  text-align: center;
  margin: 10px 0 0;
  font-style: italic;
}

.back-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 2px solid rgba(28, 111, 120, 0.4);
}

.back-link:hover { border-color: var(--teal); }

.cta-box {
  margin-top: 44px;
  padding: 26px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(28, 111, 120, 0.2);
  box-shadow: 0 8px 24px rgba(13, 34, 61, 0.08);
  text-align: center;
}

.cta-box p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: rgba(13, 34, 61, 0.8);
}

.cta-box a.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
}

/* Footer */
footer {
  background: var(--navy);
  padding: 16px 20px;
  font-size: 12.5px;
  color: rgba(247, 241, 227, 0.7);
  text-align: center;
}

footer a {
  color: var(--coral);
  text-decoration: none;
  border-bottom: 1px solid rgba(238, 158, 119, 0.4);
}

footer a:hover { border-color: var(--coral); }
