/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:     #00101f;
  --dark2:    #001428;
  --teal:     #21666D;
  --teal-lo:  rgba(33,102,109,0.12);
  --teal-bd:  rgba(33,102,109,0.3);
  --teal-hi:  #2a848d;
  --text:     #e8dcc8;
  --muted:    rgba(232,220,200,0.55);
  --hint:     rgba(232,220,200,0.35);
  --accent:   #c9b99a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  border-bottom: 1px solid var(--teal-bd);
  background: rgba(0,16,31,0.97);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.nav-tabs {
  display: flex;
  list-style: none;
}

.nav-tabs li button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 1.5rem;
  height: 64px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hint);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-tabs li button.active {
  color: var(--accent);
  border-bottom-color: var(--teal);
}

.nav-tabs li button:hover:not(.active) {
  color: var(--muted);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 22px;
  cursor: pointer;
}

/* ── Tabs ── */
.content { display: none; }
.content.active { display: block; animation: fadeUp 0.35s ease both; }

/* ── Hero ── */
.hero {
  padding: 4.5rem 2.5rem 3rem;
  border-bottom: 1px solid rgba(33,102,109,0.18);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-label {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal-hi);
  font-weight: 500;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  max-width: 600px;
}

.hero p {
  font-size: 15px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.8;
  font-weight: 300;
}

/* ── Inner ── */
.inner {
  padding: 2.5rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 4px;
}

.section-sub {
  font-size: 13px;
  color: var(--hint);
  font-weight: 300;
  margin-bottom: 0;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 1.5rem;
}

.card {
  background: var(--teal-lo);
  border: 1px solid var(--teal-bd);
  border-radius: 10px;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(33,102,109,0.7);
  transform: translateY(-2px);
}

.card-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-hi);
  margin-bottom: 10px;
}

.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card p {
  font-size: 13px;
  color: var(--hint);
  line-height: 1.65;
  font-weight: 300;
}

.card-date {
  font-size: 11px;
  color: var(--hint);
  margin-top: 12px;
  letter-spacing: 0.05em;
}

/* ── Blog list ── */
.blog-list {
  margin-top: 1.5rem;
}

.blog-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(33,102,109,0.18);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  transition: padding-left 0.2s ease;
}

.blog-item:hover { padding-left: 10px; }

.blog-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.3;
}

.blog-item span {
  font-size: 12px;
  color: var(--hint);
  font-weight: 300;
}

.blog-arrow {
  color: var(--teal-hi);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Post view ── */
.post-back {
  padding: 1.5rem 2.5rem 0;
}

.back-btn {
  background: none;
  border: 1px solid var(--teal-bd);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, background 0.2s;
}

.back-btn:hover {
  border-color: var(--teal-hi);
  background: var(--teal-lo);
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 5rem;
}

/* Markdown rendered styles */
.post-body h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.post-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--teal-bd);
}

.post-body h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.post-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.post-body .post-meta {
  font-size: 12px;
  color: var(--hint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--teal-bd);
}

.post-body strong {
  color: var(--text);
  font-weight: 500;
}

.post-body em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 1.05em;
}

.post-body blockquote {
  border-left: 2px solid var(--teal);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--accent);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
}

.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-body li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 4px;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--teal-bd);
  margin: 2.5rem 0;
}

.post-body a {
  color: var(--teal-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }

  .nav-tabs {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(0,16,31,0.98);
    border-bottom: 1px solid var(--teal-bd);
  }
  .nav-tabs.open { display: flex; }
  .nav-tabs li button {
    height: 52px; width: 100%;
    text-align: left; padding: 0 1.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .nav-tabs li button.active {
    border-left-color: var(--teal);
    border-bottom: none;
  }

  .menu-toggle { display: block; }
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .inner { padding: 1.5rem 1.25rem; }
  .card-grid { grid-template-columns: 1fr; }
  .post-body { padding: 1.5rem 1.25rem 4rem; }
  .post-back { padding: 1.25rem 1.25rem 0; }
}
