:root {
  --navy: #0B2845;
  --navy-deep: #061A2E;
  --azure: #1FAEE0;
  --azure-deep: #0E7BA6;
  --cream: #FBF8F1;
  --cream-warm: #F4EDDF;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-marcellus: 'Marcellus', serif;
  --r-md: 12px;
  --r-pill: 999px;
  --shadow-md: 0 12px 30px rgba(11,40,69,0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* nav */
.blog-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(251,248,241,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(11,40,69,0.08);
}
.blog-back {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
}
.blog-back img { height: 42px; width: auto; }
.blog-back .m { font-family: var(--font-marcellus); font-size: 1.25rem; letter-spacing: 0.06em; display: block; line-height: 1; }
.blog-back .s { font-size: 0.58rem; letter-spacing: 0.4em; color: var(--azure-deep); font-weight: 600; text-transform: uppercase; display: block; margin-top: 4px; }
.blog-nav nav { display: flex; gap: 1.6rem; align-items: center; font-size: 0.78rem; letter-spacing: 0.18em; font-weight: 500; text-transform: uppercase; }
.blog-nav nav a { color: var(--navy); text-decoration: none; transition: color 0.3s; }
.blog-nav nav a:hover { color: var(--azure-deep); }
.blog-nav nav a.cta {
  padding: 0.7rem 1.2rem; border-radius: var(--r-pill);
  background: var(--azure); color: white; font-weight: 600;
}
.blog-nav nav a.cta:hover { background: var(--azure-deep); color: white; }

/* hero */
.blog-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 5rem clamp(1rem,4vw,3rem) 2rem;
  text-align: center;
}
.blog-hero .eyebrow {
  font-size: 0.72rem; letter-spacing: 0.4em; color: var(--azure-deep);
  font-weight: 600; text-transform: uppercase; margin-bottom: 1.2rem;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}
.blog-hero h1 em { font-style: italic; font-weight: 400; }
.blog-hero p {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.78;
  font-weight: 300;
}

/* index list */
.blog-index { padding-bottom: 6rem; }
.post-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1rem,4vw,3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.4rem;
}
.post-card {
  background: white;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11,40,69,0.08);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.post-card-img {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.post-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 1.5rem 1.6rem 1.8rem; }
.post-card-date {
  font-size: 0.65rem; letter-spacing: 0.32em; opacity: 0.5;
  font-weight: 600; text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.post-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--azure-deep); }
.post-card p { font-size: 0.92rem; line-height: 1.6; opacity: 0.7; font-weight: 300; margin: 0 0 1rem; }
.post-card-more {
  font-size: 0.7rem; letter-spacing: 0.22em;
  color: var(--azure-deep); text-decoration: none;
  font-weight: 600; text-transform: uppercase;
}

/* article */
.blog-post { padding-bottom: 4rem; }
.post-hero {
  position: relative;
  height: clamp(280px, 50vh, 460px);
  overflow: hidden;
  margin-bottom: 4rem;
}
.post-hero-img { position: absolute; inset: 0; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,40,69,0.30) 0%, rgba(11,40,69,0.85) 100%);
}
.post-hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(1rem,4vw,3rem) 3rem;
  max-width: 920px;
  margin: 0 auto;
  color: white;
}
.post-date {
  font-size: 0.7rem; letter-spacing: 0.32em; opacity: 0.85;
  font-weight: 600; text-transform: uppercase; margin-bottom: 0.7rem;
}
.post-breadcrumb {
  font-size: 0.7rem; letter-spacing: 0.16em;
  opacity: 0.78; margin-bottom: 0.9rem;
  text-transform: uppercase; font-weight: 500;
}
.post-breadcrumb a {
  color: white; text-decoration: none; opacity: 0.85;
  transition: opacity 0.3s;
}
.post-breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.post-breadcrumb span { opacity: 0.7; }
.post-hero-text h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.post-lead {
  font-size: 1.1rem; opacity: 0.85; max-width: 640px;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  margin: 0;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1rem,4vw,2rem);
  font-size: 1.06rem;
  line-height: 1.8;
}
.post-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin: 3rem 0 1rem;
}
.post-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 2.2rem 0 0.8rem;
}
.post-body p { margin: 0 0 1.2rem; }
.post-body a { color: var(--azure-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--azure); }
.post-body a.auto-link {
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  color: var(--navy);
  font-weight: 500;
}
.post-body a.auto-link:hover {
  color: var(--azure-deep);
  text-decoration-style: solid;
}
.post-body ul, .post-body ol { padding-left: 1.4rem; margin: 0 0 1.4rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body blockquote {
  border-left: 3px solid var(--azure);
  padding: 0.4rem 1.4rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  opacity: 0.85;
}
.post-body img {
  width: 100%;
  border-radius: 4px;
  margin: 1.6rem 0;
}
.post-body strong { font-weight: 600; }

.post-cta {
  max-width: 720px;
  margin: 4rem auto 0;
  padding: 2.4rem 2rem;
  background: var(--navy);
  color: white;
  border-radius: var(--r-md);
  text-align: center;
}
.post-cta h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.7rem; margin: 0 0 0.7rem;
}
.post-cta p { opacity: 0.85; font-size: 0.95rem; margin: 0 0 1.6rem; }
.post-cta .btn {
  display: inline-block;
  background: var(--azure);
  color: white;
  padding: 1rem 1.8rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s;
}
.post-cta .btn:hover { background: var(--azure-deep); transform: translateY(-2px); }

/* related */
.related {
  max-width: 1200px;
  margin: 5rem auto 0;
  padding: 0 clamp(1rem,4vw,3rem);
}
.related h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  margin: 0 0 1.6rem;
}
.related .post-grid { padding: 0; }

/* footer */
.blog-foot {
  background: var(--navy);
  color: var(--cream);
  padding: 4rem clamp(1rem,4vw,3rem) 2rem;
  margin-top: 6rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}
.ft-brand img {
  height: 80px; width: auto;
  filter:
    drop-shadow(1px 0 0 white)
    drop-shadow(-1px 0 0 white)
    drop-shadow(0 1px 0 white)
    drop-shadow(0 -1px 0 white);
}
.blog-foot p { opacity: 0.7; max-width: 380px; margin-top: 1.2rem; font-weight: 300; }
.blog-foot h4 {
  font-size: 0.62rem; letter-spacing: 0.32em; opacity: 0.6;
  margin: 0 0 1rem; font-weight: 600; text-transform: uppercase;
}
.blog-foot ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.blog-foot ul a { color: inherit; text-decoration: none; opacity: 0.85; }
.blog-foot ul a:hover { color: var(--azure); }

@media (max-width: 700px) {
  .blog-back img { height: 36px; }
  .blog-back .m { font-size: 1.1rem; }
  .blog-nav nav { gap: 0.8rem; }
  .blog-nav nav a:not(.cta) { display: none; }
  .blog-hero { padding: 3rem 1rem 1rem; }
  .post-hero-text { padding-bottom: 2rem; }
  .blog-foot { grid-template-columns: 1fr; gap: 2rem; }
}
