:root{
  --bg:#f7f9fc;
  --panel:#ffffff;
  --text:#1a1f2b;
  --muted:#5f6b7a;
  --accent:#66a1cc;
  --border:#e3e7ee;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  --radius: 14px;
  --max: 1050px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;

  /* you referenced this but didn't define it */
  --text-muted: #5f6b7a;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:var(--sans);
  background: var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{
  color:var(--accent);
  text-decoration:none;
}
a:hover{text-decoration:underline}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:28px 22px;
}

/* ---------- NAV ---------- */

.nav{
  position:sticky;
  top:0;
  background:#ffffffcc;
  backdrop-filter: blur(6px);
  border-bottom:1px solid var(--border);
  z-index:1000;
}

.nav-inner{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 22px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
}

.brand-icon{
  width:14px;
  height:14px;
  color:var(--accent);
  opacity:0.7;
}

.nav-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.nav-links a{
  color:var(--text);
}

.nav-links a.active{
  text-decoration:underline;
  text-underline-offset:5px;
}

/* Subtle inline links (used in content cards) */
.container a{
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.container a:hover{
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- HERO (STACKED: text top, banner bottom) ---------- */

.hero{
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--panel);
  box-shadow:var(--shadow);
}

/* top content block */
.hero-content{
  padding: 34px;
}

/* headline + portrait + text layout */
.hero-intro{
  display:grid;
  grid-template-columns: 220px 1fr; /* photo | text */
  gap: 28px;
  align-items: start;
  margin-bottom: 18px;
}

/* rectangular portrait, bigger */
.hero-copy img.hero-headshot{
  width: 220px;
  height: 280px;
  max-width: 220px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero h1{
  margin:0 0 12px;
  font-size:36px;
  line-height:1.15;
}

.hero p{
  margin:0 0 16px;
  color:var(--muted);
  max-width:65ch;
}

.badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.badge{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#f9fbff;
  font-size:14px;
  color:var(--text);
}

.badge span{
  color:var(--muted);
}

/* bottom banner image (boat) */
.hero-banner{
  width: 100%;
  height: 420px;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.hero-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile: stack portrait above text, keep banner shorter */
@media (max-width: 800px){
  .hero-content{ padding: 26px; }

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

  .hero-copy img.hero-headshot{
    width: 100%;
    max-width: 360px;
    height: 260px;
  }

  .hero-banner{
    height: 220px;
  }
}

/* ---------- SECTIONS ---------- */

.section{
  margin-top:36px;
}

.section h2{
  margin:0 0 10px;
  font-size:22px;
}

.section p{
  margin:0 0 14px;
  color:var(--muted);
}

/* ---------- CARDS ---------- */

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

@media (max-width:900px){
  .grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:600px){
  .grid{grid-template-columns:1fr}
}

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

.card h3{
  margin:0 0 6px;
  font-size:17px;
}

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

/* ---------- MEDIA ---------- */

.gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

@media (max-width:900px){
  .gallery{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:600px){
  .gallery{grid-template-columns:1fr}
}

.thumb{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--panel);
  box-shadow:var(--shadow);
}

.thumb img{
  width:100%;
  height:210px;
  object-fit:cover;
  display:block;
}

.thumb .cap{
  padding:10px 12px;
  font-size:14px;
  color:var(--muted);
}

/* ---------- VIDEO ---------- */

.video-wrap{
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--panel);
  box-shadow:var(--shadow);
}

.video-wrap iframe,
.video-wrap video{
  width:100%;
  aspect-ratio:16/9;
  display:block;
}

/* ---------- FOOTER ---------- */

.footer{
  margin-top:48px;
  padding-top:20px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:14px;
}

.small{
  font-size:14px;
  color:var(--muted);
}

.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding:2px 6px;
  border-radius:6px;
  border:1px solid var(--border);
  background:#f4f6fa;
}
