:root {
  --navy: #253551;
  --sand: #e0e0db;
  --charcoal: #2a2829;
  --cream: #f7f6f2;
  --white: #ffffff;
  --text: #2a2829;
  --muted: #5c5a58;
  --accent: #253551;
  --max: 1080px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(37, 53, 81, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(224, 224, 219, 0.9), transparent 50%),
    linear-gradient(180deg, #f3f2ed 0%, var(--cream) 40%, #ebeae4 100%);
  min-height: 100vh;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #1a2740;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(37, 53, 81, 0.08);
}

.site-header-inner {
  width: min(100% - 1.5rem, 1200px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo img {
  width: clamp(120px, 22vw, 180px);
  height: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(37, 53, 81, 0.25);
  color: var(--navy);
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 1.1rem;
  height: 2px;
  background: var(--navy);
  box-shadow: 0 -5px 0 var(--navy), 0 5px 0 var(--navy);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--navy);
  text-decoration: underline;
}

.nav-social {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.nav-social a {
  text-decoration: none;
  color: var(--muted);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(37, 53, 81, 0.25) 0%, rgba(42, 40, 41, 0.72) 100%),
    url("/assets/img/hero.jpg") center / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1%, -1%, 0); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 3.5rem;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
  max-width: 18ch;
  line-height: 1.25;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  background: var(--sand);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--navy);
  background: #ecece6;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Sections */
.home-section {
  padding: 3rem 0 1rem;
  animation: fadeUp 0.8s ease both;
}

.home-section:nth-child(2) { animation-delay: 0.08s; }
.home-section:nth-child(3) { animation-delay: 0.12s; }

.home-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.band-sand {
  background: var(--sand);
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  padding-block: 2.5rem;
}

.band-navy {
  background: var(--navy);
  color: var(--sand);
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  padding-block: 2.75rem;
}

.band-navy h2 {
  color: var(--sand);
}

.band-navy .lead,
.band-navy p {
  color: rgba(224, 224, 219, 0.9);
}

.band-navy a {
  color: var(--white);
}

.story-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.story-card {
  flex: 1 1 280px;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(37, 53, 81, 0.12);
  transition: transform 0.25s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  color: inherit;
}

.story-cat {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  line-height: 1.3;
  color: var(--charcoal);
}

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

/* Page header / articles */
.page-header {
  padding: 2.5rem 0 1rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.article-body {
  padding-bottom: 3.5rem;
}

.article-body p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 1.75rem 0 0.6rem;
  line-height: 1.3;
}

.article-figure {
  margin: 1.5rem 0;
}

.article-figure img {
  width: 100%;
}

.article-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 68ch;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1rem 1.25rem;
  max-width: 65ch;
}

.article-body hr {
  border: none;
  border-top: 1px solid rgba(37, 53, 81, 0.15);
  margin: 2rem 0;
}

/* Blog list */
.blog-container {
  padding-bottom: 3rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-card {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(37, 53, 81, 0.12);
}

.blog-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.blog-title a {
  text-decoration: none;
  color: var(--navy);
}

.blog-title a:hover {
  text-decoration: underline;
}

.blog-preview p {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(224, 224, 219, 0.88);
  margin-top: 3rem;
  padding-top: 2.75rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  flex: 2 1 240px;
}

.footer-links {
  flex: 1 1 140px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sand);
  margin: 0 0 0.5rem;
}

.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sand);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a,
.footer-brand a {
  color: rgba(224, 224, 219, 0.85);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(224, 224, 219, 0.12);
  padding: 1rem 0;
  font-size: 0.85rem;
}

/* romlicontainer (articles from blog template) */
.romlicontainer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 3rem;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(37, 53, 81, 0.1);
    box-shadow: 0 12px 24px rgba(42, 40, 41, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.65rem;
  }

  .nav-list a {
    font-size: 1.05rem;
  }

  .hero {
    min-height: min(78vh, 560px);
  }
}
