/* ===================================================
   federicamasci.com — Shared stylesheet
   Palette: Forest #2C3B2B · Sage #3D5C3A · Clay #7A4A38
            Ink #1A1A18 · Muted #4A4A47 · Cream #F5F3EF
            White #FFFFFF · Border #D5D0C8
   Fonts: DM Serif Display (H1 hero only) · Inter (everything else)
   =================================================== */

:root{
  --forest:#2C3B2B;
  --sage:#3D5C3A;
  --clay:#7A4A38;
  --ink:#1A1A18;
  --muted:#4A4A47;
  --cream:#F5F3EF;
  --white:#FFFFFF;
  --border:#D5D0C8;
  --serif:'DM Serif Display', Georgia, serif;
  --sans:'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box;}

html{scroll-behavior:smooth;}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{transition:none !important;}
}

/* Skip link — visible on keyboard focus */
.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  background:var(--forest);
  color:var(--cream);
  padding:12px 20px;
  z-index:100;
  font-size:14px;
  font-weight:600;
}
.skip-link:focus{
  left:0;
}

body{
  font-family:var(--sans);
  font-size:16px;
  line-height:1.7;
  color:var(--ink);
  background:var(--cream);
}

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

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

/* Focus visibility — required on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline:3px solid var(--sage);
  outline-offset:2px;
}

/* ---------- Layout helpers ---------- */
.wrap{
  max-width:1140px;
  margin:0 auto;
  padding:0 24px;
}

section{padding:72px 0;}

@media (max-width:640px){
  section{padding:48px 0;}
}

/* ---------- Navigation ---------- */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(245,243,239,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--border);
}

.nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
}

.nav-logo{
  font-family:var(--serif);
  font-size:20px;
  letter-spacing:0.02em;
  color:var(--ink);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:4px;
  list-style:none;
}

.nav-links a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  font-size:14px;
  font-weight:500;
  letter-spacing:0.02em;
  color:var(--muted);
  border-radius:2px;
  transition:color .15s ease, background-color .15s ease;
}

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

.nav-links a.active{color:var(--ink);font-weight:600;}

.nav-yoga{
  background:var(--clay) !important;
  color:var(--cream) !important;
}
.nav-yoga:hover{
  background:#693e2f !important;
  color:var(--cream) !important;
}

.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--border);
  width:44px;height:44px;
  border-radius:2px;
  align-items:center;
  justify-content:center;
}
.nav-toggle svg{width:20px;height:20px;}

@media (max-width:860px){
  .nav-links{
    display:none;
    position:absolute;
    top:72px;left:0;right:0;
    background:var(--cream);
    border-bottom:1px solid var(--border);
    flex-direction:column;
    align-items:stretch;
    padding:8px 24px 16px;
    gap:2px;
  }
  .nav-links.open{display:flex;}
  .nav-links a{padding:12px 8px;}
  .nav-toggle{display:flex;}
}

/* ---------- Hero ---------- */
.hero{
  padding:64px 0 56px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}

@media (max-width:860px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-grid .hero-img{order:-1;max-width:420px;}
}

.hero-img img{
  border-radius:2px;
  border:1px solid var(--border);
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  object-position:top center;
}

.hero h1{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(36px, 5vw, 56px);
  line-height:1.18;
  color:var(--ink);
  max-width:14ch;
}

.hero .subhead{
  margin-top:24px;
  font-size:18px;
  color:var(--muted);
  max-width:46ch;
}

/* identity strip */
.identity-strip{
  margin-top:28px;
  display:flex;
  flex-wrap:wrap;
  gap:10px 0;
  font-size:14px;
  font-weight:500;
  color:var(--sage);
  letter-spacing:0.01em;
}
.identity-strip span:not(:last-child)::after{
  content:"·";
  margin:0 10px;
  color:var(--border);
  font-weight:400;
}

.cta-row{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:36px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 28px;
  font-size:15px;
  font-weight:600;
  letter-spacing:0.01em;
  border-radius:2px;
  border:1px solid transparent;
  transition:opacity .15s ease, background-color .15s ease, color .15s ease;
}

.btn-primary{
  background:var(--forest);
  color:var(--cream);
}
.btn-primary:hover{background:#1f2a1e;}

.btn-secondary{
  background:transparent;
  border-color:var(--ink);
  color:var(--ink);
}
.btn-secondary:hover{background:var(--ink);color:var(--cream);}

.btn-clay{
  background:var(--clay);
  color:var(--cream);
}
.btn-clay:hover{background:#693e2f;}

/* ---------- About / generic two-column ---------- */
.about{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:56px;
  align-items:center;
}

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

.about-img img{
  border-radius:2px;
  border:1px solid var(--border);
}

.about h2,
h2{
  font-family:var(--sans);
  font-weight:500;
  font-size:clamp(22px, 3vw, 28px);
  letter-spacing:0.01em;
  color:var(--ink);
  margin-bottom:20px;
}

.about p,
p{
  color:var(--ink);
  margin-bottom:16px;
}

.about p:last-of-type{margin-bottom:0;}

.eyebrow{
  font-size:13px;
  font-weight:600;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--sage);
  margin-bottom:12px;
  display:block;
}

/* ---------- Research areas (pillars) ---------- */
.research-areas{
  display:flex;
  flex-direction:column;
  gap:0;
  margin-top:8px;
  border-top:1px solid var(--border);
}
.research-areas details{
  border-bottom:1px solid var(--border);
}
.research-areas summary{
  display:flex;
  align-items:flex-start;
  gap:20px;
  padding:28px 4px;
  cursor:pointer;
  list-style:none;
}
.research-areas summary::-webkit-details-marker{display:none;}
.research-areas .area-icon{
  flex-shrink:0;
  width:48px;height:48px;
  border:1px solid var(--border);
  border-radius:2px;
  display:flex;align-items:center;justify-content:center;
  background:var(--white);
}
.research-areas .area-icon svg{width:28px;height:28px;stroke:var(--sage);}
.research-areas .area-head{flex:1;}
.research-areas .area-head h3{
  font-family:var(--sans);
  font-weight:600;
  font-size:19px;
  color:var(--ink);
  margin-bottom:4px;
  transition:color .15s ease;
}
.research-areas summary:hover .area-head h3{color:var(--sage);}
.research-areas .area-head .area-sub{
  font-size:15px;
  color:var(--muted);
  margin:0;
}
.research-areas .area-head .area-stat{
  font-size:13px;
  font-weight:600;
  color:var(--sage);
  margin:8px 0 0;
  letter-spacing:0.01em;
}
.research-areas .area-toggle{
  flex-shrink:0;
  width:22px;height:22px;
  stroke:var(--muted);
  transition:transform .2s ease;
  margin-top:14px;
}
.research-areas details[open] .area-toggle{transform:rotate(45deg);}
.research-areas .area-body{
  padding:0 4px 28px 68px;
}
.research-areas .area-body p{font-size:15px;color:var(--muted);margin-bottom:14px;}
.research-areas .area-body .area-project{
  margin-bottom:18px;
}
.research-areas .area-body .area-project strong{
  display:block;
  font-size:15px;
  color:var(--ink);
  font-weight:600;
  margin-bottom:4px;
}
.research-areas .area-body .area-methods{
  font-size:13px;
  color:var(--sage);
  font-weight:600;
}
@media (max-width:640px){
  .research-areas .area-body{padding-left:4px;}
  .research-areas summary{gap:14px;}
}
@media (prefers-reduced-motion:reduce){
  .research-areas .area-toggle{transition:none;}
}

/* ---------- Cards ---------- */
.cards{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:24px;
}

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

.card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:2px;
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:14px;
  transition:transform .15s ease, box-shadow .15s ease;
}

.card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(26,26,24,0.06);
}

.card .icon{
  width:40px;height:40px;
  display:flex;align-items:center;justify-content:center;
}
.card .icon svg{width:28px;height:28px;stroke:var(--sage);}

.card.podcast .icon svg{stroke:var(--ink);}
.card.podcast .card-link{color:var(--ink);}

.card h3{
  font-family:var(--sans);
  font-weight:600;
  font-size:18px;
  color:var(--ink);
}

.card p{font-size:15px;color:var(--muted);margin-bottom:0;}

.card .card-link{
  margin-top:auto;
  font-size:14px;
  font-weight:600;
  color:var(--sage);
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
}
.card.yoga .card-link{color:var(--clay);}
.card .card-link:hover{text-decoration:underline;}

/* ---------- Now section ---------- */
.now{
  background:var(--white);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.now-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px 48px;
  margin-top:8px;
}

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

.now-item{
  padding-top:16px;
  border-top:1px solid var(--border);
}

.now-item strong{
  display:block;
  font-size:13px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--sage);
  margin-bottom:6px;
}

.now-item p{
  font-size:15.5px;
  margin-bottom:0;
}

/* ---------- Availability box ---------- */
.availability{
  background:var(--cream);
  border:1px solid var(--sage);
  border-radius:2px;
  padding:28px 32px;
  margin-top:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}

.availability p{
  margin:0;
  font-size:16px;
  color:var(--ink);
}

.availability strong{color:var(--sage);}

/* ---------- Gallery ---------- */
.gallery{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
}

.gallery img{
  width:100%;
  height:240px;
  object-fit:cover;
  object-position:top center;
  border-radius:2px;
  border:1px solid var(--border);
}

/* Gallery con didascalie */
.gallery-captioned{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
}
.gallery-captioned figure{
  margin:0;
  display:flex;
  flex-direction:column;
}
.gallery-captioned img{
  width:100%;
  aspect-ratio:4/3;
  height:auto;
  object-fit:cover;
  object-position:center;
  background:var(--white);
  border-radius:2px;
  border:1px solid var(--border);
}
.gallery-captioned figcaption{
  margin-top:10px;
  font-size:13px;
  line-height:1.5;
  color:var(--muted);
}
.gallery-captioned figcaption strong{
  display:block;
  color:var(--ink);
  font-weight:600;
  font-size:13px;
  margin-bottom:2px;
}
@media (max-width:860px){
  .gallery-captioned{grid-template-columns:repeat(2, 1fr);}
}
@media (max-width:480px){
  .gallery-captioned{grid-template-columns:1fr;}
}

@media (max-width:860px){
  .gallery{grid-template-columns:repeat(2, 1fr);}
  .gallery img{height:180px;}
}
@media (max-width:480px){
  .gallery{grid-template-columns:1fr;}
}

/* ---------- Affiliations bar ---------- */
.affiliations{
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:20px 0;
  text-align:center;
}
.affiliations p{
  margin:0;
  font-size:13px;
  font-weight:400;
  letter-spacing:0.04em;
  color:var(--muted);
}

/* ---------- Newsletter ---------- */
.newsletter{
  background:var(--forest);
  color:var(--cream);
}
.newsletter h2{color:var(--cream);}
.newsletter p{color:#cfd6cd;}
.newsletter .audiences{
  margin-top:8px;
  font-size:14px;
  color:#9db89a;
}

.newsletter-grid{
  display:grid;
  grid-template-columns:240px 1fr;
  gap:56px;
  align-items:center;
}
.newsletter-grid img{
  width:100%;
  border-radius:2px;
  border:1px solid rgba(245,243,239,0.18);
}
@media (max-width:860px){
  .newsletter-grid{grid-template-columns:1fr;gap:32px;}
  .newsletter-grid .newsletter-portrait{max-width:200px;}
}

.newsletter-form{
  display:flex;
  gap:0;
  margin-top:28px;
  max-width:480px;
  border-bottom:1px solid #5a6b56;
}

.newsletter-form input{
  flex:1;
  min-width:0;
  min-height:48px;
  padding:0 4px;
  font-family:var(--sans);
  font-size:16px;
  border:none;
  background:transparent;
  color:var(--cream);
}
.newsletter-form input::placeholder{color:#9aa897;}

.newsletter-form button{
  background:none;
  border:none;
  min-height:48px;
  padding:0 4px 0 16px;
  font-family:var(--sans);
  font-size:15px;
  font-weight:600;
  color:var(--cream);
  cursor:pointer;
  white-space:nowrap;
  transition:opacity .15s ease;
}
.newsletter-form button:hover{opacity:0.7;}

/* ---------- Page header (non-home pages) ---------- */
.page-header{
  padding:72px 0 48px;
}
.page-header h1{
  font-family:var(--sans);
  font-weight:500;
  font-size:clamp(28px, 4vw, 40px);
  color:var(--ink);
}
.page-header .subhead{
  margin-top:14px;
  font-size:18px;
  color:var(--muted);
  max-width:56ch;
}

.page-header.yoga h1{color:var(--clay);}

/* ---------- Footer ---------- */
footer{
  border-top:1px solid var(--border);
  padding:40px 0;
}
footer .wrap{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
footer p{margin:0;font-size:14px;color:var(--muted);}
footer .footer-links{
  display:flex;
  gap:20px;
  list-style:none;
  font-size:14px;
}
footer .footer-links a{color:var(--muted);}
footer .footer-links a:hover{color:var(--ink);text-decoration:underline;}

/* ---------- Misc reusable ---------- */
.divider{
  border:none;
  border-top:1px solid var(--border);
  margin:0;
}

.section-intro{
  max-width:64ch;
  margin-bottom:40px;
}

.list-affil{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-size:15px;
}
.list-affil li::before{content:"— ";color:var(--sage);}

.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
}
@media (max-width:860px){
  .two-col{grid-template-columns:1fr;}
}

/* ---------- Accordion (services) ---------- */
.accordion{
  border-top:1px solid var(--border);
  margin-top:8px;
}
.accordion details{
  border-bottom:1px solid var(--border);
}
.accordion summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 4px;
  cursor:pointer;
  list-style:none;
  font-family:var(--sans);
  font-weight:600;
  font-size:18px;
  color:var(--ink);
  transition:color .15s ease;
}
.accordion summary::-webkit-details-marker{display:none;}
.accordion summary:hover{color:var(--sage);}
.accordion summary .acc-num{
  font-size:13px;
  font-weight:700;
  color:var(--sage);
  min-width:28px;
}
.accordion summary .acc-title{flex:1;}
.accordion summary .acc-icon{
  width:20px;height:20px;
  flex-shrink:0;
  transition:transform .2s ease;
  stroke:var(--muted);
}
.accordion details[open] summary .acc-icon{transform:rotate(45deg);}
.accordion .acc-body{
  padding:0 4px 24px 36px;
}
.accordion .acc-body p{
  font-size:15px;
  color:var(--muted);
  margin-bottom:12px;
}
.accordion .acc-body .relevant{
  font-size:13px;
  font-weight:600;
  color:var(--sage);
  margin-bottom:0;
}
@media (max-width:640px){
  .accordion summary{font-size:16px;}
  .accordion .acc-body{padding-left:4px;}
}
@media (prefers-reduced-motion:reduce){
  .accordion summary .acc-icon{transition:none;}
}
