:root { --brand:#3d3d3d; --brand-light:#d8d8d8; --brand-pink:#dabca3; --dark:#222; }

.blog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}
.blog-controls input,
.blog-controls select {
  padding: 0.5rem;
  border: 1px solid var(--brand);
  border-radius: 4px;
  color: var(--brand);
  font-size: 1rem;
}

/* Reset some basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family:'Inter',sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

p{
  color: var(--brand);
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Make main expand to push footer down */
main {
  flex: 1;
}
h1{
  font-family:'Playfair Display',serif;
}

h2{
  font-family:'Playfair Display',serif;
  color: var(--brand);
}


h3{
  font-family:'Inter',sans-serif;
}

header {
  background-color: #fff;
}

.feature--alt{flex-direction:row-reverse;}

[data-animate]{opacity:0;transform:translateY(40px);transition:.6s ease-out;}
[data-animate].show{opacity:1;transform:none;}

.hero{position:relative;text-align:left;padding:6rem 0;background:linear-gradient(135deg,var(--brand-light),#fff);}
.hero-heading{font-size:clamp(2rem,4vw,3rem);font-weight:800;}
.wave{width:100%;height:120px;display:block;fill:#fff;position:absolute;bottom:-1px;left:0;z-index: 1;}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

nav ul {
  list-style: none;
  display: flex;
}

nav li {
  margin-left: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #000000;
  padding: 0.5rem;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}

.hero {
  text-align: center;

  min-height: 80%;
  color:var(--brand);
}

.hero h2 {
  font-size: 2rem;
  color:var(--brand);
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  color:var(--brand);
    margin-bottom: 1rem;
}

/* ───── hero two-column layout ───── */
.hero-inner{
  display:flex;
  position:relative;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:2rem;
  z-index: 2;
}
.hero-text{flex:1 1 320px;}

.hero-image{
  flex:1 1 260px;
  max-width:320px;
  position:relative;

  
}
.hero-image img{
  width:100%;
  border:6px solid var(--brand);
  display:block;

  border-radius:30% 70% 70% 30%/30% 30% 70% 70%;     /* organic blob */
}
.hero-image::before{                /* fun offset border */
  content:'';
  position:absolute;
  inset:0;

  border-radius:inherit;
  transform:translate(12px,12px);
  z-index:-1;
}
@media(max-width:700px){
  .hero-inner{flex-direction:column;
  }

  .hero-image {
   max-width: 200px;
  }
  .hero-image img{
    width:100%;
    border:20px solid var(--brand);
     
  }

  .hero-text{flex:1 1 0px;
  padding-bottom: 30px;}


  .hero h2 {
    font-size: 2rem;
    color:var(--brand);
    margin-bottom: 0.1rem;
  }
  
  .hero p {
    font-size: 1.2rem;
    color:var(--brand);
      margin-bottom: 1rem;
  }

  

  .hero-inner{
    display:flex;
    position:relative;
    
justify-content: center;
    gap:0rem;
  }
  .hero{
    min-height: 100%;
    padding:2rem
  }
}

/* ───── animated gradient button ───── */
.button2{
  position:relative;
    font-weight: bold;


}

/* Button styles for links */
.button2 {
  display: inline-block;
  background-color: var(--brand);
  color: #fff;
    font-weight: bold;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.button2:hover {
  background-color: #000000;
}

.cta .button2 {
  display: inline-block;
  background-color: #fff;
  color: #007acc;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta .button2:hover {
  background-color: #e0e0e0;
}

section {
  margin: 0rem 0;
}

footer {
  background-color: #fff;
}

footer .container {
  text-align: center;
  padding: 1rem 0;
  color: #777;
}


/* Responsive nav (mobile) */
@media (max-width: 600px) {
  /* Keep header items in a row: logo left, toggle right */
  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  /* Nav list items stack when visible */
  nav li {
    margin: 0.5rem 0;
  }
}
/* Hamburger menu button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}
/* Mobile menu toggle */
@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  nav ul {
    display: none;
  }
  nav ul.open {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
}
/* Full-width feature sections */
.feature {
  display: flex;
  align-items: center;
}

.feature:nth-of-type(odd) {
  background-color: #e3f2fd;
}
.feature:nth-of-type(even) {
  background-color: #fce4ec;
}

.feature-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20%;
}

.feature-text,
.feature-image {
  flex: 1 1 300px;
  padding: 1rem;
}

.feature-image1 img {
  max-width: 180px;
  border-radius: 8px;
}

.feature-image2 img {
  max-height: 180px;
  border-radius: 8px;
}

.feature-image3 img {
  max-height: 180px;
  border-radius: 8px;
}





/* Small text styling */
small {
  font-size: 0.85em;
  color: #555;
}

.callout {
  background-color: #fff8c5;
  border-left: 4px solid #ffeb3b;
  padding: 1rem;
  margin: 2rem 0;
}
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1rem 0;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
table th,
table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
}
.post-nav {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
}
.post-nav a {
  color: var(--brand);
  text-decoration: none;
}

/* ==== wave-hello animation ==== */
@keyframes wave {
  0%   { transform: rotate(0deg);  }
  15%  { transform: rotate(14deg); }
  30%  { transform: rotate(-8deg); }
  40%  { transform: rotate(14deg); }
  50%  { transform: rotate(-4deg); }
  60%  { transform: rotate(10deg); }
  100% { transform: rotate(0deg);  }
}
.wave-hand{
  display:inline-block;
  transform-origin: 70% 70%;
  animation: wave 2s ease-in-out 1;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  .wave-hand{ animation:none; }
}

/* ── BLOG POST LIST (one wide card per row) ───────────────────── */
#cafes{
  display:flex;                     /* vertical stack           */
  flex-direction:column;
  gap:1rem;
  scroll-snap-type:y proximity;     /* pleasant “catch” scroll  */
}

/* card container – full-width strip */
.posts .card{
  display:flex;
  flex-direction:row;
  background:linear-gradient(110deg,var(--brand-light) 0%,#fff 140%);
  border-radius:14px;
  overflow:hidden;
  scroll-snap-align:start;
  cursor:pointer;                   /* whole card is the link   */
}

.posts .card:hover{
 
  background:linear-gradient(110deg,var(--brand-light) 0%,#fff 200%);
}

/* left thumbnail */
.posts .post-image{
  flex:0 0 180px;

  overflow:hidden;
}
.posts .post-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* right column */
.posts .card-content{
  flex:1;
  padding:1.25rem 1.5rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
  color:var(--brand);
}
.posts .post-title{
  font-size:1.1rem;
  font-weight:600;
  margin-bottom:.35rem;
}
.posts .post-meta{
  font-size:.8rem;
  margin-bottom:.4rem;
  color:#555;
}


/* hover lift + glow */
.posts .card:hover{
  transform:translateY(-2px);
}

/* ensure no underlines / default link blue */
.posts .card a{color:var(--brand);text-decoration:none;}



/* ── mobile: image on top, text below ── */
@media (max-width:600px){
  /* stack vertically */
  .posts .card{
    flex-direction:column;      /* row → column */
    min-height:0;               /* let content dictate height */
  }

  /* image spans full width */
  .posts .post-image{
    flex:0 0 160px;             /* adjust height if you like */
    width:100%;
    height:160px;
  }
  .posts .post-image img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  /* tighten text padding */
  .posts .card-content{
    padding:1rem 1.25rem;
  }
}

/* project list container */
#projects{
  display:flex;
  flex-direction:column;
  gap:.75rem;
  scroll-snap-type:y proximity;
}

/* card – one wide strip per row */
#projects .card{
  display:grid;
  grid-template-columns:180px 1fr;          /* thumb | text  */
  align-items:stretch;
  background:linear-gradient(110deg,var(--theme,var(--brand-light)) 0%,#fff 180%);  border-radius:14px;
  overflow:hidden;
  cursor:pointer;
  transition:transform .25s ease, filter .25s ease;
  scroll-snap-align:start;
}
#projects .card:hover{
  transform:translateY(-2px);
}

/* thumbnail */
#projects .project-image{
  width:100%;overflow:hidden;
}
#projects .project-image img{
  width:100%;height:100%;object-fit:cover;display:block;
}

/* text column */
#projects .card-content{
  min-width:0;                    /* prevent shrink to 0 px */
  padding:1.25rem 1.5rem;
  display:flex;flex-direction:column;justify-content:center;
  color:#fff;
  font-weight: bold;
}
#projects .project-title{font-size:1.1rem;font-weight:600;margin-bottom:.35rem;}
#projects .card-content p{font-size:.95rem;line-height:1.4;color:#fff;margin:0; font-weight: normal;}

/* mobile – stack image on top */
@media(max-width:600px){
  #projects .card{grid-template-columns:1fr;grid-auto-rows:auto;}
  #projects .project-image{height:160px;}
  #projects .card-content{padding:1rem 1.25rem;}
}
/* list container */
#contact-cards{
  display:flex;
  flex-direction:column;
  gap:.75rem;
  scroll-snap-type:y proximity;
}

/* card strip (desktop: icon-left + text-right) */
#contact-cards .card{
  display:grid;
  grid-template-columns:120px 1fr;   /* icon | text */
  align-items:center;                /* centre icon + text vertically */
                /* match icon size */
  border-radius:14px;
  max-height: 100px;
  overflow:hidden;
  cursor:pointer;
  transition:transform .25s ease;
  scroll-snap-align:start;
}
#contact-cards .card:hover{
  transform:translateY(-2px);
}





/* text column */
#contact-cards .card-content{
  min-width:0;
  padding:1.25rem 1.5rem;
  display:flex;
  flex-direction:column;
  justify-content:center;      /* vertical centre */
  align-items:flex-start;      /* keep left-aligned text */
  color:white;
  font-weight: bold;
}
#contact-cards .card-content h3{
  font-size:1.1rem;
  color:white;
  font-weight: bold;
  margin:0 0 .35rem;
}
#contact-cards .card-content p{
  font-size:.95rem;
  margin:0;
  color:white;
}
/* copy-feedback toast */
#toast{
  position:fixed;
  left:50%;bottom:2rem;
  transform:translateX(-50%) translateY(100%);
  background:var(--brand);
  color:#fff;
  padding:.6rem 1.2rem;
  border-radius:8px;
  font-size:.9rem;
  opacity:0;
  transition:opacity .4s ease, transform .4s ease;
  pointer-events:none;
  z-index:9999;
}
#toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* ===== per-platform brand colours ===== */
.email-card{
  background: black;
}
.email-card .contact-icon{background-color:#4e4e4e;}


/* email → lighter green */
.email-card:hover{
  background:#4a4a4a;
}



.heroabout {
  text-align: center;
  min-height: 30%;
  color:var(--brand);
}

.heroabout-inner{
  display:flex;
  position:relative;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:2rem;
  z-index: 2;
}

.heroabout{position:relative;text-align:center;padding:6rem 0;background:linear-gradient(135deg,var(--brand-light),#fff);}

.heroabout-heading{font-size:clamp(2rem,4vw,3rem);font-weight:800;}

/* scroll-snap vertical journey */
#bio{
  display:flex;
  flex-direction:column;
  gap:2.5rem;
  scroll-snap-type:y proximity;
  padding-block:2rem 4rem;
}

/* each section inherits the coloured stripes from .feature */
.bio-section{
  background:linear-gradient(110deg,var(--brand-light) 0%,#fff 130%);
  padding:2rem 1.5rem;
  border-radius:12px;
  scroll-snap-align:start;
}
.bio-section.feature--alt{
  background:linear-gradient(-110deg,var(--brand-pink) 0%,#fff 130%);
}

/* headings + text */
.bio-section h3{
  margin:0 0 .75rem;
  font-family:'Playfair Display',serif;
  font-size:1.4rem;
  color:var(--brand);
}
.bio-section p{
  margin:0;
  font-size:1.05rem;
  line-height:1.7;
  color:#333;
}

/* ── fix CTA alignment ───────────────────────────────────────── */
#bio .cta{
  display: flex;   
  flex-direction: column;
  align-items: center;
  padding: 10px;
}



#bio .cta p{

  font-size:1.15rem;
  line-height:1.6;
  color:var(--brand);
  padding: 20px;

}

#bio .cta {
  text-align: center;
  padding: 2rem 0;
  background-color: #007acc;
}

#bio .cta .button3 {
  background-color: #202020;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

#bio .cta .button3:hover {
  background-color: #606060;
}

/* ── media block: flex version ──────────────────────────────── */
.post .media-section{
  display:flex;                         /* ← switch from grid   */
  align-items:flex-start;
  gap:1.25rem;
  margin:2rem 0;
}

.post .media-section img{
  flex:0 0 160px;                       /* fixed left column    */
  width:160px;
  height:auto;
  border-radius:8px;
  object-fit:cover;                     /* tidy crops           */
}

.post .media-section .item-content{
  flex:1;                               /* text uses remaining  */
  min-width:0;                          /* prevent overflow     */
}

/* mobile – stack image on top */
@media(max-width:600px){
  .post .media-section{
    flex-direction:column;
    gap:1rem;
  }
  .post .media-section img{
    flex:0 0 auto;
    width:100%;
  }
}

.post-meta{
  color: #7f7f7f;
  padding-bottom: 20px;
  }
  
  .intro-section{
    padding-bottom: 20px;
  }
/* ── book-section look ───────────────────────────────────────── */
.book-title{
  margin:2.25rem 0 .8rem;               /* space above row      */
  font-size:1.35rem;
  font-family:'Playfair Display',serif;
  color:var(--brand);
}

/* accent card around each media row */
.media-section{
  position:relative;
  background:#f8fbff;                   /* soft panel           */
  padding:1.25rem 1.25rem 1.25rem 1.5rem;
  border-radius:12px;
  box-shadow:0 4px 14px rgb(0 0 0 /.05);
}

/* colourful stripe on the left */
.media-section::before{
  content:'';
  position:absolute;left:0;top:0;bottom:0;
  width:6px;border-radius:12px 0 0 12px;
  background:linear-gradient(var(--brand),#00c6ff);
}

/* keep existing flex row image|text rules */
.media-section{
  display:flex;align-items:flex-start;gap:1.25rem;
}
.media-section img{flex:0 0 150px;width:150px;border-radius:8px;object-fit:cover;}
.media-section .item-content{flex:1;min-width:0;font-size:1.02rem;line-height:1.7;}

/* mobile stack */
@media(max-width:600px){
  .media-section{flex-direction:column;padding:1rem;}
  .media-section img{width:100%;flex:0 0 auto;}
}

/* ── full-screen mobile menu ─────────────────────────────────── */
@media(max-width:600px){

  /* hide inline nav by default */
  nav{display:none;}

  /* show & style when .overlay is applied by JS */
  nav.overlay{
    display:flex;
    position:fixed;
    inset:0;
    background:#fff;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:2rem;
    z-index:1000;
  }

  nav.overlay a{
    font-size:1.4rem;
    color:var(--brand);
  }


  /* prevent background scroll when menu open */
  body.no-scroll{overflow:hidden;}

  /* ── hamburger → X animation ── */
  .nav-toggle{display:flex;}               /* you already show it */
  .nav-toggle span{
    transition:transform .3s ease, opacity .3s ease;
  }
  .nav-toggle.active span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2){
    opacity:0;
  }
  .nav-toggle.active span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }
}

@media (max-width:600px){
  nav.overlay,
  nav.overlay *{                 /* note the * selector */
    opacity:1 !important;
    transform:none !important;   /* cancel the slide-up offset */
  }
}

@media (max-width:600px){
  /* when the overlay is active, the <ul> should ALSO show */
  nav.overlay ul{
    display:flex !important;          /* column */
    flex-direction:column;
    align-items:center;
    gap:2rem;
  }
}

/* ╭───────── UNIVERSAL MOBILE NAV ─────────╮ */
@media (max-width:600px){

  /* === collapsed state ====================================== */
  header .site-nav              {display:none;}         /* hide until opened */
  header .nav-toggle            {display:flex;}         /* show hamburger   */

  /* === expanded - the JS toggles .overlay =================== */
  header .site-nav.overlay{
    display:flex;
    position:fixed;
    inset:0;
    background:#fff;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:2rem;
    z-index:1000;
  }
  header .site-nav.overlay ul{
    display:flex !important;                       /* override inline 'display:none' */
    flex-direction:column;
    align-items:center;
    gap:2rem;
  }
  header .site-nav.overlay a{
    font-size:1.4rem;
    color:var(--brand);
  }

  /* === reveal-on-scroll STOP for anything inside the overlay */
  header .site-nav.overlay,
  header .site-nav.overlay *{
    opacity:1   !important;
    transform:none !important;
  }

  /* === body scroll lock while menu open ===================== */
  body.no-scroll{overflow:hidden;}

  /* === hamburger → X animation ============================== */
  .nav-toggle span{
    transition:transform .3s ease, opacity .3s ease;
  }
  .nav-toggle.active span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2){
    opacity:0;
  }
  .nav-toggle.active span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }
}
/* ╰─────────────────────────────────────────╯ */

