:root {
  --bg: #f5efe5;
  --surface: #fffdf9;
  --surface-strong: #fff;
  --text: #1f2933;
  --muted: #5b6672;
  --border: #d8d1c3;
  --brand: #0f5b78;
  --brand-strong: #0b3f53;
  --accent: #d06a2d;
  --shadow: 0 18px 45px rgba(18, 38, 49, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(208, 106, 45, 0.12), transparent 30%),
    linear-gradient(180deg, #fcf7f0 0%, var(--bg) 100%);
}

img {
  display: block;
  max-width: 100%;
  border-radius: 18px;
}

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

code {
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  background: rgba(15, 91, 120, 0.08);
}

.site-header,
.site-footer {
  padding: 1.25rem 1.5rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(216, 209, 195, 0.8);
  background: rgba(255, 253, 249, 0.84);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-link {
  color: var(--brand-strong);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid rgba(216, 209, 195, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.hero-compact {
  grid-template-columns: 1fr;
}

.hero-copy h1,
.hero-compact h1,
.content-article h1 {
  margin: 0.35rem 0 1rem;
  line-height: 1.05;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
}

.hero-media img,
.image-panel img {
  width: 100%;
  border: 1px solid rgba(216, 209, 195, 0.9);
  box-shadow: var(--shadow);
}

.content-section {
  margin-top: 2rem;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card,
.image-panel,
.content-article,
.dom-node {
  padding: 1.25rem;
  border: 1px solid rgba(216, 209, 195, 0.9);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.detail-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.stack-layout {
  display: grid;
  gap: 1rem;
}

.content-article {
  line-height: 1.9;
}

.content-long p {
  margin: 0 0 1rem;
}

.dom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.dom-node {
  padding: 0.85rem;
}

.site-footer {
  border-top: 1px solid rgba(216, 209, 195, 0.8);
  color: var(--muted);
}

.js-ready .hero,
.js-ready .card,
.js-ready .content-article {
  animation: fade-up 0.5s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }
}
