/* ========== Theme Vars ========== */
:root{
  --pad: min(4vw, 5vh);
  --gap: min(3vw, 3vh);
  --accent: #650600;
  --ink: #111;
  --muted: #555;
  --bg: #f4f4f4;
  --card: #fff;
  --radius: 2vw;
  --shadow: 0 0.6vw 2vw rgba(0,0,0,0.06);
}

/* ========== Base ========== */
html, body { margin: 0; padding: 0; width: 100%; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent); 
  text-decoration: underline;
  font-weight: 600; 
}

a:hover {
  color: #800000;
}

/* ========== Header (logo left, location right) ========== */
.header{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pad);
  box-sizing: border-box;
}
.logo{ width: clamp(120px, 18vw, 24vw); height: auto; display: block; }
.location{
  margin-left: auto;
  text-align: right;
  font-weight: 700;
  color: var(--accent);
  font-size: clamp(16px, 2.2vw, 28px);
  line-height: 1.2;
  padding-left: 2vw;
}

/* ========== Global Containers ========== */
.wrap{ width: 100%; box-sizing: border-box; padding: 0 var(--pad) var(--pad); }
.nav{ padding: 0 var(--pad); }
.nav a{
  display: inline-block;
  margin: 0 0 var(--gap) 0;
  text-decoration: none;
  color: #0a3d62;
  border-bottom: .3vw solid transparent;
}
.nav a:hover{ border-bottom-color: currentColor; }

/* ========== Bio Header (photo + name/subtitle) ========== */
.bio-header{
  display: flex;
  align-items: center;
  gap: 2vw;
  margin: 0 0 var(--gap) 0;
}
.bio-photo{
  width: 15%;
  min-width: 120px;
  height: auto;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.bio-title h1{
  margin: 0 0 .3em 0;
  font-size: clamp(24px, 5vw, 44px);
  color: var(--accent);
}
.bio-title .subtitle{
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--muted);
}

/* Mobile stacking */
@media (max-width: 600px){
  .bio-header{ flex-direction: column; align-items: flex-start; }
  .bio-photo{ width: 40%; }
}

/* ========== Main Content Grid (article + sidebar) ========== */
.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 900px){
  .grid{ grid-template-columns: 2.2fr 1fr; }
}

/* ========== Cards & Asides ========== */
.card, .facts{
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow);
}
.card h2{
  margin: 0 0 .6em 0;
  color: var(--accent);
  font-size: clamp(18px, 3vw, 28px);
}
.card p{ margin: 0 0 1em 0; }
.card p:last-child{ margin-bottom: 0; }

.facts h3{
  margin: 0 0 .6em 0;
  color: var(--accent);
  font-size: clamp(16px, 2.6vw, 22px);
}
.facts ul{ margin: 0; padding-left: 1em; }

/* ========== Footer ========== */
.footer{
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: calc(var(--pad)*0.5) 0;
  border-top: .3vw solid #ccc;
  color: #666;
  font-size: clamp(12px, 1.6vw, 14px);
}

/* ========== Utilities ========== */
.visually-hidden{
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ========== Optional: Reusable Gallery Styles ========== */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1vw;
  margin-bottom: 4vw;
}
.gallery img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1vw;
  box-shadow: 0 0.4vw 1vw rgba(0,0,0,0.2);
  transition: transform .2s ease;
  cursor: pointer;
}
.gallery img:hover{ transform: scale(1.03); }

/* Lightbox container (if used) */
#lightbox{
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center;
  z-index: 9999;
}
#lightbox img{ max-width: 100%; max-height: 100%; }
#lightbox:target{ display: flex; }
