:root{
  --ink:#16201d;
  --ink-soft:#3a4744;
  --paper:#ffffff;
  --paper-raised:#ffffff;
  --line:#c6cdc7;
  --tide:#1f6f64;
  --tide-deep:#154e46;
  --alert:#9c3b23;
  --fog:#dfe4e0;
  --max:1080px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'IBM Plex Sans', sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
::selection{ background:var(--tide); color:var(--paper); }

a{ color:inherit; }
img{ max-width:100%; display:block; }

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

.eyebrow{
  font-family:'Bitter', serif;
  font-weight:500;
  font-size:12.5px;
  text-transform:uppercase;
  letter-spacing:0.14em;
  color:var(--ink-soft);
}

:focus-visible{
  outline: 2px solid var(--tide);
  outline-offset: 3px;
}

/* ---------- Header / nav ---------- */
header.site{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
}
.nav .name{
  font-family:'Source Serif 4', serif;
  font-weight:400;
  font-size:25px;
  text-decoration:none;
  background:none;
  border:none;
  cursor:pointer;
  color:var(--ink);
  padding:0;
}
.nav .brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
}
.nav .role{
  font-family:'Bitter', serif;
  font-weight:500;
  font-size:11.5px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--ink-soft);
}
.nav .links{
  display:flex;
  gap:26px;
  font-family:'Bitter', serif;
  font-weight:500;
  font-size:12.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.nav .links button{
  background:none;
  border:none;
  font-family:'Bitter', serif;
  font-weight:500;
  font-size:12.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  cursor:pointer;
  text-decoration:none;
  color:var(--ink-soft);
  padding:0 0 2px;
  border-bottom:1px solid transparent;
  transition:border-color .15s ease, color .15s ease;
}
.nav .links button:hover,
.nav .links button.active{
  color:var(--ink);
  border-color:var(--tide);
}
.nav .links button.active{
  font-weight:700;
}

/* phones: give the header side margins and let the nav wrap under the name */
@media (max-width: 560px){
  .nav{ padding:14px 28px; flex-wrap:wrap; gap:10px 20px; }
}

/* ---------- Section shell ---------- */
section{
  padding:80px 0;
  border-bottom:1px solid var(--line);
}
section:last-of-type{ border-bottom:none; }
/* ---------- Writing ---------- */
.pub-group{
  margin-bottom:52px;
}
.pub-group:last-child{ margin-bottom:0; }
.pub-name{
  font-family:'Bitter', serif;
  font-weight:600;
  font-size:12.5px;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--tide-deep);
  margin:0;
}
.pub-header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding-top:14px;
  padding-bottom:10px;
  margin-bottom:16px;
  border-bottom:1px solid var(--line);
}
.pub-header .eyebrow{
  margin:0;
}
.dispatch{
  padding:20px 0;
}
.dispatch h3{
  font-family:'Fraunces', serif;
  font-weight:500;
  font-size:19px;
  line-height:1.28;
  margin:0 0 8px;
}
.dispatch h3 a{
  text-decoration:none;
  background-image: linear-gradient(var(--tide), var(--tide));
  background-repeat:no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .2s ease;
}
.dispatch h3 a:hover{ background-size:100% 1px; }
.dispatch .hook{
  color:var(--ink-soft);
  font-size:14.5px;
  max-width:64ch;
  margin:0 0 10px;
}
.dispatch .tags{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.pill{
  font-family:'Bitter', serif;
  font-weight:500;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:var(--tide-deep);
  border:1px solid var(--tide-deep);
  padding:3px 8px;
  border-radius:2px;
}

/* ---------- Photography ---------- */
.gallery{
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.gallery-col{
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.frame{
  cursor: zoom-in;
  overflow: hidden;
  background: var(--fog);
  border-radius: 2px;
}
.frame img{
  display: block;
  width: 100%;
  height: auto;
  transition: transform .35s ease;
}
.frame:hover img{ transform: scale(1.035); }

/* lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(22,32,29,0.92);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:100;
  padding:40px;
}
.lightbox.open{ display:flex; }
.lightbox .box{
  width:min(900px, 90vw);
  max-height:85vh;
  background:none;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Bitter', serif;
  font-weight:500;
  color:var(--ink-soft);
  font-size:13px;
}
.lightbox .box img{
  max-width:100%;
  max-height:85vh;
  display:block;
  border-radius:2px;
}
.lightbox .close{
  position:absolute;
  top:26px;
  right:32px;
  color:var(--paper);
  font-family:'Bitter', serif;
  font-weight:500;
  font-size:13px;
  background:none;
  border:1px solid var(--paper);
  padding:8px 14px;
  cursor:pointer;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.lightbox .nav-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  color:var(--paper);
  background:rgba(22,32,29,0.4);
  border:1px solid var(--paper);
  width:44px;
  height:44px;
  border-radius:50%;
  cursor:pointer;
  font-family:'Bitter', serif;
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox .nav-arrow:hover{ background:rgba(22,32,29,0.7); }
.lightbox .nav-prev{ left:24px; }
.lightbox .nav-next{ right:24px; }
.lightbox .counter{
  position:absolute;
  bottom:26px;
  left:50%;
  transform:translateX(-50%);
  color:var(--paper);
  font-family:'Bitter', serif;
  font-weight:500;
  font-size:12px;
  letter-spacing:.08em;
}

/* ---------- About ---------- */
.about-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap:56px;
  align-items:stretch;
}
.about-grid > div:first-child{
  height:100%;
}
.about-grid > div:first-child img{
  height:100%;
  object-fit:cover;
}
.about-grid .bio p{
  max-width:60ch;
  font-size:16px;
  color:var(--ink-soft);
}
.about-grid .bio p:first-child{
  line-height:1.45;
}
@media (max-width: 780px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-links{
  display:flex;
  flex-direction:row;
  align-items:baseline;
  flex-wrap:wrap;
  gap:10px;
  font-family:'Bitter', serif;
  font-weight:500;
  font-size:14px;
}
.contact-links .sep{
  color:var(--ink-soft);
  font-weight:700;
  font-size:24px;
  line-height:1;
  position:relative;
  top:1px;
}
.contact-links a{
  text-decoration:none;
  border-bottom:1px solid var(--line);
  padding-bottom:2px;
  transition:border-color .15s ease, color .15s ease;
}
.contact-links a:hover{ border-color:var(--tide); color:var(--tide-deep); }

/* ---------- Page switching ---------- */
.page{ display:none; }
.page.active{ display:block; }

/* helper classes used by index.html */
.page-section{ padding-top:56px; border-bottom:none; }
.contact-links.in-bio{ margin-bottom:28px; }
.about-photo{ width:100%; border-radius:2px; }
