:root{
  --bg: #ffffff;
  --text: #101828;
  --muted: #475467;
  --card: #ffffff;
  --border: #EAECF0;

  --primary: #2563eb;
  --accent: #f43f5e;

  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --radius: 18px;

  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a{ color: inherit; }
img{ max-width: 100%; display:block; }

.container{
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

h1,h2,h3{ line-height: 1.15; margin: 0 0 0.6rem; }
h2{ font-size: clamp(1.6rem, 2.2vw, 2.2rem); }
h3{ font-size: 1.15rem; }

p{ margin: 0 0 1rem; }
.lead{ font-size: 1.05rem; color: var(--muted); max-width: 70ch; }
.muted{ color: var(--muted); }
.small{ font-size: 0.92rem; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.skip-link{
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--bg);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transform: translateY(-150%);
  z-index: 9999;
}
.skip-link:focus{ transform: translateY(0); }

/* ====== Header / Nav ====== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(234,236,240,0.7);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand{
  text-decoration:none;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover{ opacity: 0.85; }

.nav-toggle{
  display:none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 0.9rem;
  white-space: nowrap;
}
.nav-links a{
  text-decoration:none;
  color: var(--muted);
  font-weight: 600;
}
.nav-links a:hover{ color: var(--text); }

/* ====== Buttons ====== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration:none;
  font-weight: 700;
  cursor: pointer;
}

.btn-small{ padding: 0.55rem 0.85rem; font-size: 0.95rem; }

.btn-primary{
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 30px rgba(37,99,235,0.25);
}
.btn-primary:hover{ filter: brightness(0.95); }

.btn-ghost{
  background: rgba(255,255,255,0.82);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{ background: white; }

/* ====== Hero ====== */
.hero{
  position: relative;
  min-height: 78vh;
  display:flex;
  align-items: flex-end;
  padding: 5.5rem 0 2.25rem;
}

.hero-media{
  position:absolute;
  inset:0;
  background: url("/hero.jpg") center/cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.62),
    rgba(0,0,0,0.20) 55%,
    rgba(0,0,0,0.10)
  );
}

.hero-content{
  position: relative;
  color: white;
  padding-bottom: 1rem;
}

.hero-title{
  font-size: clamp(2.0rem, 5.2vw, 3.1rem);
  max-width: 22ch;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.hero-subtitle{
  max-width: 62ch;
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.25);
}

.hero-actions{
  display:flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.0rem;
}

/* Badges exist for mobile if you ever want them; desktop hides below */
.hero-badges{
  display:flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.badge{
  text-decoration:none;
  color: white;
  border: 1px solid rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.10);
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  font-weight: 700;
}
.badge:hover{ background: rgba(255,255,255,0.16); }

/* ====== Sections / Layout ====== */
.section{ padding: 3.5rem 0; }
.section-alt{ background: #f8fafc; }

.grid-2{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items:start;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.cards .card{ height: 100%; }
.card-cta{ display:flex; flex-direction:column; gap: 0.75rem; }

.list{
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.list li{ margin: 0.35rem 0; }

.callout{
  border-left: 4px solid var(--primary);
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  border-radius: 12px;
}

.note{
  margin-top: 1rem;
  border: 1px dashed rgba(244,63,94,0.6);
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem;
}

.photo-card .photo-placeholder{
  height: 280px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(244,63,94,0.10));
}

.updates{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.update-date{ font-size: 0.85rem; color: var(--muted); margin: 0 0 0.25rem; }
.update-title{ margin: 0 0 0.4rem; }

.form label{
  display:block;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.75rem 0 0.25rem;
}
input, textarea{
  width:100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
}
input:focus, textarea:focus{
  outline: none;
  border-color: rgba(37,99,235,0.65);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.share-row{
  display:flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ====== Crayon Divider (subtle) ====== */
.crayon-divider{
  height: 22px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(37,99,235,0.35) 0 18px,
      rgba(244,63,94,0.35) 18px 36px,
      rgba(16,185,129,0.30) 36px 54px,
      rgba(245,158,11,0.28) 54px 72px
    );
  filter: saturate(1.15);
  opacity: 0.55;
  clip-path: polygon(
    0% 55%, 4% 38%, 9% 60%, 14% 40%, 20% 65%,
    26% 42%, 33% 63%, 40% 40%, 47% 62%, 54% 42%,
    62% 66%, 70% 40%, 78% 62%, 86% 44%, 93% 64%, 100% 46%,
    100% 100%, 0% 100%
  );
}

/* ====== Footer ====== */
.footer{
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: #fff;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}

/* ====== Mobile / small screens ====== */
@media (max-width: 920px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .updates{ grid-template-columns: 1fr; }

  .nav-toggle{ display:inline-flex; }
  .nav{ position: relative; }

  .nav-links{
    display:none;
    position:absolute;
    right: 0;
    top: 52px;
    flex-direction:column;
    align-items:stretch;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: var(--shadow);
    min-width: 240px;
    white-space: normal;
  }
  .nav-links a{ padding: 0.35rem 0.45rem; }
  .nav-links.is-open{ display:flex; }
}

/* =========================================================
   Mid desktop (900–1199): right/lower layout, allow wrapping
   ========================================================= */
@media (min-width: 900px){
  .hero-content{
    margin-left: auto;
    width: 52%;
    text-align: right;
    padding-bottom: 3.9rem;
  }

  /* IMPORTANT: Do NOT force single-line here. Let it breathe. */
  .hero-title{
    max-width: 26ch;          /* allows 1–2 lines naturally */
    white-space: normal;
    font-size: clamp(2.1rem, 3.2vw, 3.0rem);
    letter-spacing: -0.02em;
  }

  .hero-subtitle{
    margin-left: auto;
    max-width: 52ch;
  }

  .hero-actions{
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  /* declunk: remove duplicate CTAs in hero on desktop */
  .hero-badges{
    display: none;
  }
}

/* =========================================================
   Large desktop (1200+): right/lower layout, force one-line
   ========================================================= */
@media (min-width: 1200px){
  .hero-title{
    white-space: nowrap;
    max-width: none;          /* allow one line */
    font-size: clamp(2.0rem, 3.0vw, 3.0rem);
  }
}
