:root {
  --navy: #0f2942;
  --navy-dark: #081826;
  --gold: #b8894a;
  --gold-light: #d4ac74;
  --ink: #1c2126;
  --muted: #5a6472;
  --bg: #fbfaf8;
  --bg-soft: #f5f2ec;
  --border: #ebe6da;
  --card-bg: #ffffff;
  --heading: var(--navy);
  --header-bg: rgba(255, 255, 255, 0.92);
  --max-width: 1080px;
  --radius: 12px;
  font-size: 16px;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fraunces-500.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-700.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1.15;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--heading);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 88px 0 96px;
}

.hero-inner {
  /* no max-width here: this element also carries .container, whose 1080px
     width must stay in charge so the hero aligns with the nav and cards. */
}

.eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 32px;
  max-width: 560px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-left: 12px;
}

.btn-ghost:hover {
  border-color: #fff;
}

/* Sections */
section {
  padding: 72px 0;
}

.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-heading .eyebrow { color: var(--gold); }

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 41, 66, 0.08);
}

.card-icon {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--heading);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: 1.4rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 41, 66, 0.25);
}

/* Page header (about / blog) */
.page-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
}

.page-header h1 {
  color: var(--heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.page-header p {
  color: var(--muted);
  max-width: 620px;
  margin: 0;
}

/* About page */
.about-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-layout h2 {
  color: var(--heading);
  font-size: 1.3rem;
  margin: 32px 0 14px;
}

.about-layout h2:first-child { margin-top: 0; }

.about-layout p {
  color: var(--ink);
  margin: 0 0 16px;
}

.badge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.profile-name-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  margin-bottom: 20px;
}

.profile-name-card h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--heading);
}

.profile-name-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.sidebar-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
}

.sidebar-card h3 {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-card dl {
  margin: 0;
}

.sidebar-card dt {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 16px;
}

.sidebar-card dt:first-child { margin-top: 0; }

.sidebar-card dd {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.sidebar-card a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Blog page */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.post-card:hover {
  box-shadow: 0 12px 28px rgba(15, 41, 66, 0.08);
  transform: translateY(-2px);
}

.post-card .post-tag {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card h2 {
  color: var(--heading);
  font-size: 1.25rem;
  margin: 10px 0 10px;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.blog-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 40px;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--gold);
}

/* Individual blog post pages */
.post-body {
  max-width: 720px;
  margin: 0 auto;
}

.post-body h2 {
  color: var(--heading);
  font-size: 1.25rem;
  margin: 32px 0 14px;
}

.post-body h2:first-child {
  margin-top: 0;
}

.post-body p {
  margin: 0 0 16px;
}

.post-body ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.post-body ul ul {
  margin: 6px 0 0;
}

.post-body li {
  margin-bottom: 6px;
}

.post-back {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
}

.post-back:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr;
  gap: 32px;
  padding-bottom: 28px;
}

footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.footer-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

footer p, footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
  margin: 0 0 8px;
}

footer a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* Responsive */
@media (max-width: 820px) {
  .card-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 8px 24px 16px;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle { display: block; }

  .cta-band .container { flex-direction: column; text-align: center; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
}
