@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@500,700&display=swap');

:root {
  --primary: #395966;
  --secondary: #587265;
  --natural: #8D8B72;
  --accent: #9B544F;
  --accent-2: #A97755;
  --bg: #EEF3F2;
  --bg-contrast: #D8E0DE;
  --dark: #263B3C;
  --text: #252D2C;
  --cta-from: #8F4946;
  --cta-to: #AD6760;
  --cta-hover: #B8756E;
  --overlay: rgba(38, 59, 60, 0.34);
  --overlay-strong: rgba(38, 59, 60, 0.46);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-head: 'Cabinet Grotesk', 'Manrope', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Sans', sans-serif;
  --radius: 20px;
  --radius-sm: 18px;
  --shadow: 0 12px 40px rgba(38, 59, 60, 0.08);
  --shadow-accent: 0 10px 28px rgba(155, 84, 79, 0.15);
  --container: 1180px;
  --container-wide: 1320px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, #EEF3F2 0%, #DDE7E4 100%);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
  touch-action: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 40px, var(--container-wide));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--natural);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.h-section {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: rgba(37, 45, 44, 0.78);
  max-width: 38rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
  color: #EEF3F2;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #EEF3F2;
}

.btn-light {
  background: rgba(238, 243, 242, 0.12);
  border-color: rgba(238, 243, 242, 0.45);
  color: #EEF3F2;
  backdrop-filter: blur(8px);
}

.btn-light:hover {
  background: #EEF3F2;
  color: var(--dark);
  border-color: #EEF3F2;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(141, 139, 114, 0.18);
  color: var(--text);
}

.tag-copper {
  background: rgba(169, 119, 85, 0.18);
  color: #7a4f35;
}

.divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(57, 89, 102, 0.28), transparent);
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
  background: transparent;
  overflow-x: clip;
  max-width: 100%;
}

.site-header.is-scrolled {
  background: rgba(238, 243, 242, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(38, 59, 60, 0.08);
}

.site-header.is-scrolled .logo,
.site-header.is-scrolled .nav-link,
.site-header.is-scrolled .burger span {
  color: var(--text);
}

.site-header.is-scrolled .burger span {
  background: var(--text);
}

.header-inner {
  width: min(100% - 40px, var(--container-wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  color: #EEF3F2;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.3s ease;
}

.logo span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(238, 243, 242, 0.88);
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1002;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #EEF3F2;
  transition: transform 0.35s ease, opacity 0.35s ease, background 0.3s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(38, 59, 60, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100vw;
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile a {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 600;
  color: #EEF3F2;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(238, 243, 242, 0.12);
  min-height: 56px;
  display: flex;
  align-items: center;
}

.nav-mobile-meta {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(238, 243, 242, 0.65);
  line-height: 1.8;
}

.site-footer {
  background: var(--dark);
  color: rgba(238, 243, 242, 0.82);
  padding: 5rem 0 2rem;
  overflow-x: clip;
  max-width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo {
  color: #EEF3F2;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 28rem;
  line-height: 1.65;
  opacity: 0.78;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: #EEF3F2;
  margin-bottom: 1.1rem;
}

.footer-col a {
  display: block;
  padding: 0.35rem 0;
  opacity: 0.75;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-col a:hover {
  opacity: 1;
  color: #EEF3F2;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 243, 242, 0.12);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.65;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .burger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .container,
  .container-wide,
  .header-inner {
    width: min(100% - 28px, var(--container));
  }
}
