:root {
  /* Palette — tuned for your warm, light hero */
  --bg: #f7efe7;
  --surface: #dfd1c6;
  --sand: #b99c81;
  --taupe: #927e6a;
  --text: #1f2327;
  --muted: #4c5258;
  --accent: #6c8190; /* slate sea */
  --accent2: #c48a54; /* warm light */
  --ring: rgba(108, 129, 144, 0.35);

  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(
    1200px 600px at 30% -10%,
    #ffffff 0%,
    var(--bg) 55%,
    #efe3d9 100%
  );
  line-height: 1.55;
}

a {
  color: inherit;
}
a:hover {
  color: var(--accent);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  outline: 3px solid var(--ring);
  z-index: 9999;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(242, 227, 214, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}
.brand strong {
  font-weight: 750;
  letter-spacing: 0.2px;
  font-size: 1.05rem;
}
.brand span {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text);
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.6);
}

main {
  padding-bottom: 60px;
}

.hero {
  margin-top: 22px;
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  background: var(--surface);
  min-height: clamp(380px, 56vw, 560px);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

/* Subtle left-to-right overlay for dark text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(242, 227, 214, 0.78) 0%,
      rgba(242, 227, 214, 0.35) 45%,
      rgba(242, 227, 214, 0) 70%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0) 35%);
}

.hero-inner {
  position: relative;
  height: 100%;
  display: grid;
  align-content: center;
  padding: clamp(26px, 5vw, 54px);
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.2px;
}
.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent2);
  box-shadow: 0 0 0 6px rgba(196, 138, 84, 0.18);
}

h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.lead {
  margin: 0 0 18px;
  max-width: 50ch;
  font-size: 1.08rem;
  color: rgba(44, 47, 51, 0.86);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
  transition:
    transform 0.12s ease,
    background 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
}
.btn.primary {
  background: var(--text);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}
.btn.primary:hover {
  background: #171a1d;
}
.btn:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.section {
  margin-top: 34px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  grid-column: span 4;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}
.card h3 {
  margin: 4px 0 6px;
  font-size: 1.05rem;
}
.card p {
  margin: 0;
  color: rgba(44, 47, 51, 0.78);
}
.card a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: var(--accent);
}
.card a:hover {
  text-decoration: underline;
}

@media (max-width: 940px) {
  .card {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }
  .card {
    grid-column: span 12;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(242, 227, 214, 0.78) 0%,
      rgba(242, 227, 214, 0.28) 55%,
      rgba(242, 227, 214, 0) 100%
    );
  }
  .lead {
    max-width: 60ch;
  }
}

/* Blog */
.page-title {
  margin: 26px 0 8px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}
.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}
.post-list a {
  text-decoration: none;
}
.post-item {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}
.post-item:hover {
  border-color: rgba(108, 129, 144, 0.35);
}
.post-item h3 {
  margin: 0 0 6px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tag {
  font-size: 0.82rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(108, 129, 144, 0.12);
  border: 1px solid rgba(108, 129, 144, 0.18);
  color: rgba(44, 47, 51, 0.9);
}

article {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 28px;
}
article h2 {
  font-size: 1.2rem;
  margin-top: 2.5em;
  font-weight: 600;
}
article p {
  max-width: 72ch;
  margin-bottom: 1.6em;
  font-size: 1.05rem;
  line-height: 1.75;
}
article a {
  color: var(--accent);
}

footer {
  margin-top: 52px;
  padding: 22px 0 34px;
  color: rgba(44, 47, 51, 0.75);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 18px;
}
.small {
  font-size: 0.92rem;
}

article {
  max-width: 720px;
  margin: 40px auto 0 auto;
}

.page-title {
  max-width: 720px;
  margin: 60px auto 10px auto;
}

.meta {
  max-width: 720px;
  margin: 0 auto 30px auto;
}

article p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.8;
}
