:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#4a4a4a;
  --rule:#e9e9e9;
  --max:1120px;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Libre Baskerville",Georgia,serif;
  line-height:1.6;
}

a{color:inherit;text-decoration:none;}
a:hover{text-decoration:underline;}

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

.topbar{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:18px;
  padding:8px 0 22px;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.brand .name{
  font-family:"Allura","Libre Baskerville",Georgia,serif;
  font-size:46px;
  line-height:1;
}

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

.nav{
  display:flex;
  gap:14px;
  font-size:14px;
  color:var(--muted);
}

.nav a{
  padding:6px 10px;
  border-radius:10px;
}

.nav a:hover{
  background:#f6f6f6;
  color:var(--text);
}

.nav a.active{
  background:#f2f2f2;
  color:var(--text);
}

.rule{
  border:0;
  border-top:1px solid var(--rule);
}

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

.hero{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:34px;
  padding:30px 0;
}

.photo{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--rule);
}

.photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.kicker{
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}

.h1{
  font-size:28px;
  line-height:1.22;
  font-weight:700;
}

.p{
  max-width:68ch;
  margin-bottom:14px;
}

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

.cta{
  margin-top:18px;
}

.button{
  display:inline-block;
  padding:12px 16px;
  background:#111;
  color:#fff;
  border-radius:12px;
  font-size:14px;
}

.footer{
  padding:22px 0 38px;
  color:var(--muted);
  font-size:13px;
}

@media(max-width:860px){
  .hero{grid-template-columns:1fr;}
  .brand .name{font-size:42px;}
}
.testimonial {
  padding: 4rem 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.testimonial-quote p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.testimonial-quote footer {
  opacity: 0.7;
}

.testimonial-video video {
  width: 100%;
  border-radius: 12px;
}

.video-caption {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

@media (max-width: 800px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}
/* Testimonial video sizing */
.testimonial-video video {
  width: 100%;
  max-width: 420px;
  height: auto;
}
/* Testimonial video size control */
.video-frame {
  max-width: 360px;
}

.video-frame video {
  width: 100%;
  height: auto;
  display: block;
}
.email {
  white-space: pre-line;
}
.email {
  white-space: pre-line;
}

.email .subject {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
/* Home copy sizing + spacing */
.home-copy h2{
  font-size: 1.6rem;
  margin: 2.5rem 0 0.75rem;
}

.home-copy p{
  max-width: 65ch;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.home-copy ul{
  max-width: 65ch;
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

.home-copy li{
  margin: 0.25rem 0;
}

.home-copy .button,
.home-copy .btn{
  display: inline-block;
  margin-top: 0.75rem;
}

/* Keep everything left aligned */
.home-copy{
  text-align: left;
}
/* About page */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.about-image img{
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-copy p{
  max-width: 65ch;
  margin: 0 0 1rem;
  line-height: 1.7;
}

@media (max-width: 800px){
  .about-grid{
    grid-template-columns: 1fr;
  }
}
/* About page image sizing */
.about-image img{
  max-width: 420px;
  width: 100%;
  height: auto;
}
/* About page layout fix */
.about-grid{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-image{
  max-width: 420px;
}

.about-image img{
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-copy p{
  max-width: 65ch;
  margin: 0 0 1rem;
  line-height: 1.7;
}

@media (max-width: 800px){
  .about-grid{
    grid-template-columns: 1fr;
  }

  .about-image{
    max-width: 100%;
  }
}
/* About page layout */
.about-grid{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-image img{
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.about-copy p{
  max-width: 65ch;
  margin: 0 0 1rem;
  line-height: 1.7;
}

@media (max-width: 800px){
  .about-grid{
    grid-template-columns: 1fr;
  }
}
/* Home page copy block */
.home-copy .container {
  max-width: 760px;
}

.home-copy h2 {
  margin: 0 0 18px;
}

.home-copy p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.home-copy ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.home-copy li {
  margin: 0 0 10px;
}

.home-copy .button {
  display: inline-block;
  margin-top: 10px;
}
/* ABOUT PAGE layout */
.about-grid{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:2.5rem;
  align-items:start;
}

.about-image img{
  max-width:320px;
  width:100%;
  margin:0 auto 1.5rem auto;
}

@media (max-width: 768px){
  .about-grid{
    grid-template-columns:1fr;
  }
  .about-image img{
    max-width:100%;
    margin-top:0;
  }
}
@media (max-width: 768px){
  .about-grid{
    grid-template-columns: 1fr;
  }

  .about-image img{
    max-width: 320px;
    width: 100%;
    margin: 0 auto 1.5rem auto;
    display: block;
  }
}
/* About page layout */
.about-grid{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-photo{
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* Mobile */
@media (max-width: 768px){
  .about-grid{
    grid-template-columns: 1fr;
  }

  .about-photo{
    max-width: 320px;
    margin: 0 auto 1.5rem auto;
  }
}
.about-photo{ max-width: 420px !important; }
@media (max-width: 768px){ .about-photo{ max-width: 320px !important; } }
@media (max-width: 768px) {

  header .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }

  header .brand {
    max-width: 100%;
  }

  header nav {
    width: 100%;
    margin-top: 1rem;
  }

  header nav ul {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

}
/* Mobile header fix: prevent horizontal overflow + allow nav to wrap */
@media (max-width: 640px) {

  /* Kill any sideways scroll caused by the header */
  html, body { overflow-x: hidden; }

  /* Make the header container wrap instead of forcing one long row */
  header .container,
  .site-header .container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  /* Logo/brand takes full width on its own line */
  header .brand,
  .site-header .brand {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  /* Nav drops under the logo and can wrap */
  header nav,
  .site-header nav {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  header nav ul,
  .site-header nav ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    padding-left: 0 !important;
    margin: 0 !important;
  }

  header nav a,
  .site-header nav a {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
  }
}
/* Mobile header fix for header.php (.topbar/.brand/.nav) */
@media (max-width: 640px) {

  /* prevent sideways scroll if something overflows by 1px */
  html, body { overflow-x: hidden; }

  /* make the header wrap instead of forcing one long row */
  header.topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* logo/brand takes the full width on mobile */
  header.topbar .brand {
    width: 100%;
    flex: 1 1 100%;
  }

  /* nav drops under the brand and wraps */
  header.topbar .nav {
    width: 100%;
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  /* tighten the nav links so they don’t push wide */
  header.topbar .nav a {
    white-space: nowrap;
    padding: 0.35rem 0.5rem;
    font-size: 0.95rem;
  }

  /* OPTIONAL: make your stacked name a little less tall on phones */
  header.topbar .brand .name {
    line-height: 0.95;
  }
}
/* Portfolio page spacing fix */
.portfolio h2,
.portfolio h3,
.portfolio p {
  margin-top: 0;
}
/* Portfolio spacing fix */
.portfolio h1,
.portfolio h2,
.portfolio h3,
.portfolio p {
  margin-top: 0;
}
.hidden-leak {
  margin-top: 1.25rem;
}

.hidden-leak p:first-child {
  margin-top: 1rem;
}

.hidden-leak em {
  font-style: normal;
  color: #666;
}