/* =========================================================
   THEME
========================================================= */
:root{
  /* Core */
  --primary:#141312;          /* near-black with a warm undertone */
  --secondary:#FBF7F1;        /* warm parchment (matches the logo’s cream) */

  /* Accents (pulled to complement the tan/gold mark) */
  --accent-dark:#2E3A2F;      /* deep academic evergreen */
  --accent-muted:#8E9A8F;     /* soft sage/stone for UI + borders */
  --accent-warm:#C7A27E;      /* logo tan/gold (buttons, highlights, rules) */

  --max-width:1120px;

  /* UI neutrals */
  --muted: rgba(20,19,18,0.72);
  --border: rgba(46,58,47,0.16);

  /* Radii */
  --radius-xl: 44px;
  --radius-lg: 36px;
  --radius-md: 18px;

  /* Shadows (warm + subtle) */
  --shadow-sm: 0 10px 22px rgba(20,19,18,0.06);
  --shadow-md: 0 18px 40px rgba(20,19,18,0.11);

  /* Focus ring */
  --ring: rgba(199,162,126,0.45);

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
}

html {
    overflow: scroll;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    width: 5px;
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--accent-warm);
}


/* =========================================================
   GLOBAL
========================================================= */
*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

/* Sticky footer layout */
html, body{
  height: 100%;
}

body{
  margin:0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--secondary);
  color: var(--primary);
  line-height:1.65;
  font-size:18px;
  text-rendering:optimizeLegibility;
}

/* consistent page atmosphere */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 18% 18%, rgba(141,91,76,0.10), transparent 62%),
    radial-gradient(900px 520px at 82% 22%, rgba(123,136,111,0.12), transparent 62%);
}

/* Ensure main content expands to push footer down on short pages */
main{
  flex: 1 0 auto;
}

footer{
  flex-shrink: 0;
}

h1,h2,h3{
  font-family:'EB Garamond', Georgia, 'Times New Roman', serif;
  font-weight:600;
  letter-spacing:-0.01em;
}

h2{
  font-size:2.2rem;
  margin:0 0 1.15rem;
  line-height:1.1;
}

p{ margin:0; font-size:1.05rem; }

a{ color:inherit; text-decoration:none; }

:focus-visible{
  outline:2px solid var(--ring);
  outline-offset:4px;
  border-radius:10px;
}

/* =========================================================
   GENERIC LAYOUT UTILITIES (reused across pages)
========================================================= */
.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section{
  padding: 6rem 0;
}

.section--tight{
  padding: 4.75rem 0;
}

.section-inner{
  max-width:var(--max-width);
  margin:0 auto;
  padding:6rem 1.75rem;
}

.section-head .lede{
  margin-top:0.7rem;
  max-width:100ch;
  color: var(--muted);
  font-size:1.1rem;
}

/* academic rule under section titles */
.section-head h2{
  display:inline-block;
  padding-bottom:0.35rem;
  border-bottom: 2px solid rgba(123,136,111,0.35);
}

.lede{
  margin-top:0.7rem;
  max-width:100ch;
  color: var(--muted);
  font-size:1.1rem;
}

.prose{
  max-width: 85ch;
  display:flex;
  flex-direction:column;
  gap: 1.05rem;
  color: rgba(0,0,0,0.80);
}

/* unified underline hover (nav links, footer links, text links, etc.) */
.u-underline{
  position: relative;
  display:inline-block;
}

.u-underline::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:100%;
  height:2px;
  background: linear-gradient(90deg, var(--accent-warm));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 220ms var(--ease);
}

.u-underline:hover::after{ transform:scaleX(1); }

/* =========================================================
   NAVBAR
========================================================= */
.navbar{
  position: sticky;
  top: 0;
  z-index: 10;

  background: linear-gradient(
    90deg,
    rgba(245,243,239,0.92) 0%,
    rgba(245,243,239,0.86) 70%,
    rgba(123,136,111,0.10) 100%
  );

  border-bottom:1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

.nav-inner{
  max-width:var(--max-width);
  margin:0 auto;
  padding:1rem 1.75rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}

.logo{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
}

.logo-img{
  width:auto;
  height:60px;
  display:block;
  object-fit:contain;
}

.nav{
  display:flex;
  align-items:center;
  gap:2.5rem;
}

.nav-link{
  font-size:0.95rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color: rgba(18,18,18,0.88);
  position:relative;
}

.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:100%;
  height:2px;
  background: linear-gradient(90deg, var(--accent-warm));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 220ms var(--ease);
}

.nav-link:hover::after{ transform:scaleX(1); }

[aria-current="page"]::after{
  transform:scaleX(1);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:0.95rem 1.35rem;
  border-radius:999px;

  font-size:1rem;
  font-weight:600;
  letter-spacing:0.01em;

  border:1px solid transparent;
  cursor:pointer;

  transition:
    transform 180ms var(--ease),
    box-shadow 220ms var(--ease),
    background-color 220ms var(--ease),
    border-color 220ms var(--ease),
    color 220ms var(--ease);
}

.leaf {
  border-radius:36px 6px 36px 6px;
}

.btn--primary{
  background: var(--accent-dark);
  color: var(--secondary);
  box-shadow: 0 8px 18px rgba(24,45,9,0.22);
}

.btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24,45,9,0.28);
}

.btn--primary:active{ transform: translateY(-1px); }

.btn--outline{
  background: transparent;
  color: var(--accent-dark);
  border-color: rgba(24,45,9,0.35);
}

.btn--outline:hover{
  transform: translateY(-2px);
  background: rgba(24,45,9,0.06);
  border-color: rgba(24,45,9,0.55);
}

.btn--ghost{
  background: rgba(141,91,76,0.10);
  color: var(--accent-warm);
  border-color: rgba(141,91,76,0.30);
}

.btn--ghost:hover{
  transform: translateY(-2px);
  background: rgba(141,91,76,0.16);
  border-color: rgba(141,91,76,0.42);
}

/* =========================================================
   HOME HERO (test.html)
========================================================= */
.hero{ overflow:hidden; }

.hero-inner{
  max-width:var(--max-width);
  margin:0 auto;
  padding:8rem 1.75rem 9rem;
}

.hero-stage{
  position:relative;
  min-height:520px;
  display:flex;
  align-items:center;
}

.hero-text{
  max-width:740px;
  z-index:2;
}

.hero-text h1{
  font-size:4.1rem;
  line-height:1.03;
  margin:0 0 1.6rem;
}

.hero-text p{
  font-size:1.25rem;
  max-width:560px;
  color: rgba(0,0,0,0.78);
}

.hero-actions{
  margin-top:2rem;
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}

/* logo blend behind text */
.hero-logo{
  position:absolute;
  right:-12%;
  width:680px;
  height:680px;
  z-index:1;
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-logo-img{
  width:100%;
  height:100%;
  object-fit:contain;
  opacity: .68;

  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.22) 16%,
    rgba(0,0,0,1) 36%,
    rgba(0,0,0,1) 100%
  );
  mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.22) 16%,
    rgba(0,0,0,1) 36%,
    rgba(0,0,0,1) 100%
  );

  mix-blend-mode: multiply;
}

/* =========================
   SUBPAGE HERO — keep logo beside text on small screens
========================= */
.page-hero__grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items:center;
  margin-top:1em;
}

/* clamp gives smooth scaling between large and small */
.page-hero__title{
  font-size: clamp(2.35rem, 4.6vw, 4.25rem);
}

.page-hero__subtitle{
  font-size: clamp(1.0rem, 1.6vw, 1.15rem);
}

/* logo scales down smoothly so it fits beside text */
.page-hero__logo{
  width: clamp(180px, 26vw, 340px);
  height: clamp(180px, 26vw, 340px);
}

/* keep it two-column, just tighten spacing */
@media (max-width: 980px){
  .page-hero__grid{
    grid-template-columns: 1fr auto;
    gap: 1.75rem;
  }
  .page-hero__mark{
    justify-content:flex-end;
  }
}

/* on small screens, still keep beside, shrink logo more */
@media (max-width: 640px){
  .page-hero__grid{
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items:center;
  }

  /* prevents long titles from forcing a wrap that pushes logo down */
  .page-hero__text{
    min-width: 0;
  }

  .page-hero__logo{
    width: 150px;
    height: 150px;
    opacity: 0.18; /* slightly lighter so it doesn’t dominate */
  }
}

/* extra tiny phones: still beside, even smaller logo */
@media (max-width: 420px){
  .page-hero__logo{
    width: 120px;
    height: 120px;
  }
}


/* =========================================================
   HOME ABOUT BLOCK (test.html)
========================================================= */
.about{
  /* border-top: 1px solid rgba(123,136,111,0.35); */
}

.text-link{
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--accent-warm);
}

.text-link.u-underline::after{ bottom:-6px; }

/* =========================================================
   LEADERSHIP CARDS (home page)
========================================================= */
.team h2{ margin-bottom:3.25rem; }

.team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:2.5rem;
}

.member{
  background:#fff;
  border-radius:36px 6px 36px 6px;
  overflow:hidden;

  border: 1px solid rgba(123,136,111,0.35);
  box-shadow: 0 10px 22px rgba(24,45,9,0.06);

  transition:transform 360ms var(--ease), box-shadow 360ms var(--ease), border-color 360ms var(--ease);
}

.member:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(24,45,9,0.14);
  border-color: rgba(141,91,76,0.40);
}

.member-image{
  position:relative;
  height:340px;
  background: rgba(123,136,111,0.08);
}

.member-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.member-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(141,91,76,0.62), rgba(24,45,9,0.45));
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:0.9rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  opacity:0;
  transition:opacity 320ms var(--ease);
}

.member:hover .member-overlay{ opacity:1; }

.member-info{
  padding:1.5rem;
  background: linear-gradient(0deg, rgba(123,136,111,0.10), rgba(255,255,255,0) 65%);
}

.member-info .name{
  display:block;
  font-family:'EB Garamond', serif;
  font-size:1.25rem;
}

.member-info .role{
  font-size:0.95rem;
  color:rgba(0,0,0,0.62);
}

.section-actions{ margin-top:2.5rem; }

/* =========================================================
   OBJECTIVES (academic + professional)
========================================================= */
.objectives{
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  max-width: 92ch;

  display: grid;
  gap: 1.35rem;
}

/* clean typographic "block" */
.objective{
  padding: 1.25rem 0;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.objective:first-child{
  border-top: 1px solid rgba(0,0,0,0.12);
}

/* strong but not “marketing” */
.objective__title{
  margin: 0 0 0.55rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.12;
  color: rgba(0,0,0,0.90);
}

/* readable body */
.objective__text{
  margin: 0;
  font-size: 1.06rem;
  color: rgba(0,0,0,0.78);
  max-width: 85ch;
}

/* subtle accent line on hover/focus (optional, still academic) */
.objective{
  position: relative;
}

.objective::before{
  content:"";
  position:absolute;
  left: -18px;
  top: 1.35rem;
  width: 4px;
  height: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-warm));
  transition: height 300ms var(--ease);
  opacity: 0.85;
}

.objective:hover::before{
  height: calc(100% - 2.2rem);
}

/* responsive */
@media (max-width: 640px){
  .objective::before{ left: -12px; }
  .objective__title{ font-size: 1.55rem; }
}


/* =========================================================
   PEOPLE (About page) — STACKED + EXPANDS PAGE
========================================================= */
.people-grid{
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 980px;  /* keeps the reading width classy */
}

/* details container behaves like a card */
.person{
  background:#fff;
  border-radius:36px 6px 36px 6px;
  overflow:hidden;

  border: 1px solid rgba(123,136,111,0.35);

  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease), border-color 360ms var(--ease);
  scroll-margin-top: 110px;
}

.person:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 36px rgba(24,45,9,0.12);
  border-color: rgba(141,91,76,0.40);
}

/* remove default marker */
.person > summary{ list-style:none; }
.person > summary::-webkit-details-marker{ display:none; }

/* clickable header: image left, meta right */
.person__summary{
  cursor:pointer;
  position:relative;
  display:grid;
  grid-template-columns: 240px 1fr;
  align-items: stretch;
}

/* consistent image regardless of source size */
.person__media{
  width: 240px;
  min-height: 220px;
  background: rgba(123,136,111,0.08);
}

.person__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* overlay label like leadership cards */
.person__overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:0.9rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  opacity:0;
  transition: opacity 320ms var(--ease);
  pointer-events:none;
}

.person:hover .person__overlay{ opacity:1; }

/* meta */
.person__meta{
  padding: 1.6rem 4.25rem 1.6rem 1.6rem; /* room for toggle */
  background: linear-gradient(0deg, rgba(123,136,111,0.10), rgba(255,255,255,0) 65%);
  display:flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.person__name{
  font-family:'EB Garamond', Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.05;
  margin: 0;
}

.person__role{
  margin: 0;
  font-size: 1rem;
  color: rgba(0,0,0,0.62);
}

/* toggle */
.person__toggle{
  position:absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: var(--accent-warm);
  font-weight: 800;
  font-size: 1.15rem;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease), border-color 220ms var(--ease);
}

.person[open] .person__toggle{
  transform: translateY(-50%) rotate(45deg);
}

/* expandable panel pushes page down naturally */
.person__panel{
  padding: 0 1.6rem 1.7rem;
  animation: panelIn 260ms var(--ease) both;
}

@keyframes panelIn{
  from{ opacity:0; transform: translateY(-6px); }
  to{ opacity:1; transform: translateY(0); }
}

.person__bio{
  padding-top: 1rem;
}

.person__bio p{
  font-size: 1.04rem;
}

/* responsive stacked */
@media (max-width: 720px){
  .people-grid{
    max-width: 100%;
  }
  .person__summary{
    grid-template-columns: 1fr;
  }
  .person__media{
    width: 100%;
    min-height: 260px;
  }
  .person__toggle{
    top: auto;
    bottom: 16px;
    transform: none;
  }
  .person[open] .person__toggle{
    transform: rotate(45deg);
  }
  .person__meta{
    padding: 1.35rem 1.35rem 3.75rem 1.35rem; /* room for toggle */
  }
}

/* =========================================================
   RESOURCES — editorial list (matches Objectives)
========================================================= */
.resource-tabs{
  margin-bottom: 2.25em;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tab{
  appearance: none;
  border: 1px solid rgba(24,45,9,0.22);
  background: rgba(255,255,255,0.55);
  color: rgba(18,18,18,0.86);
  border-radius:36px 6px 36px 6px;
  padding: 0.75rem 1.05rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 220ms var(--ease), border-color 220ms var(--ease);
}

.tab:hover{
  transform: translateY(-1px);
  border-color: rgba(141,91,76,0.35);
  background: rgba(255,255,255,0.8);
}

.tab.is-active{
  background: rgba(24,45,9,0.92);
  border-color: rgba(24,45,9,0.92);
  color: var(--secondary);
}

.tab-panel{
  display: none;
}

.tab-panel.is-active{
  display: block;
}

.resource-grid{
  max-width: 92ch;
  display: grid;
  gap: 1.35rem;
}

/* One “academic entry” */
.resource-item{
  padding: 1.35rem 0;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.resource-item:last-child{
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

/* top row */
.resource-item__top{
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* same feel as objective kicker */
.resource-item__kicker{
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  padding-top: 0.25rem;
}

/* title like a journal header */
.resource-item__title{
  margin: 0 0 0.45rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.12;
  color: rgba(0,0,0,0.90);
}

.resource-item__byline{
  margin: 0;
  color: rgba(0,0,0,0.64);
  font-size: 1.02rem;
}

/* body */
.resource-item__desc{
  margin: 0.85rem 0 0;
  color: rgba(0,0,0,0.78);
  font-size: 1.05rem;
  max-width: 85ch;
}

/* links: use your global underline hover */
.resource-item__actions{
  margin-top: 0.85rem;
}

.resource-item__link{
  color: var(--accent-warm);
  font-weight: 650;
}

/* subtle academic accent bar on hover (like Objectives, but even calmer) */
.resource-item{
  position: relative;
}

.resource-item::before{
  content:"";
  position:absolute;
  left: -18px;
  top: 1.45rem;
  width: 4px;
  height: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-warm));
  opacity: 0.85;
  transition: height 320ms var(--ease);
}

.resource-item:hover::before{
  height: calc(100% - 2.1rem);
}

/* responsive */
@media (max-width: 720px){
  .resource-item__top{
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .resource-item::before{
    left: -12px;
  }
}


/* =========================================================
   FOOTER (KEEP AS-IS) — unchanged styling, just deduped media blocks
========================================================= */
.footer{
  background: transparent;
  /* border-top: 1px solid rgba(123,136,111,0.35); */
}

.footer-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.75rem 3.5rem;
}

.footer-main{
  display:grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 3.5rem;
  align-items: stretch;
}

.footer-nav{
  display:grid;
  grid-template-columns: auto auto;
  column-gap: 4.75rem;
  row-gap: 1.4rem;
}

.footer-col{
  display:flex;
  flex-direction:column;
  gap: 0.8rem;
  justify-content: flex-end;
}

.footer-link{
  font-family:'EB Garamond', Georgia, serif;
  font-size: 2.1rem;
  line-height: 1.05;
  position: relative;
  display: inline-block;
}

.footer-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:100%;
  height:2px;
  background: linear-gradient(90deg, var(--accent-warm));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 220ms var(--ease);
}

.footer-link:hover::after{ transform:scaleX(1); }

.footer-copy{
  grid-column: 1 / -1;
  font-size: 0.95rem;
  color: rgba(0,0,0,0.55);
}

.footer-mark{
  display:inline-flex;
  align-self: end;
  justify-self: end;
}

.footer-logo{
  width: 180px;
  height: 180px;
  object-fit: contain;
  opacity: 0.75;
}

/* =========================================================
   REVEAL ANIMATION (smooth + sensible)
========================================================= */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition: opacity 650ms var(--ease), transform 800ms var(--ease);
  will-change: opacity, transform;
}

.reveal--left{ transform:translateX(-42px); }
.reveal--right{ transform:translateX(42px); }

.reveal.is-visible{
  opacity:1;
  transform:translate(0,0);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .page-hero__logo{ width: 260px; height: 260px; }

  .footer-main{
    grid-template-columns: 3fr;
    row-gap: 2.5rem;
  }
  .footer-nav{
    grid-template-columns: 1fr 2fr;
    column-gap: 1rem;
  }
  .footer-mark{
    justify-self: start;
  }
  .footer-logo{
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 900px){
  .hero-logo{
    right:-18%;
    width:560px;
    height:560px;
  }
  .hero-text h1{ font-size:3.4rem; }
}

@media (max-width: 640px){
  .nav{ gap:1.4rem; }
  .hero-stage{ min-height:500px; }
  .hero-logo{
    right:-28%;
    width:480px;
    height:480px;
  }
  .hero-text h1{ font-size:3.0rem; }

  h2{ font-size:2.0rem; }

  .page-hero__title{ font-size: 3.1rem; }

  .footer-nav{ grid-template-columns: 1fr; }
  .footer-link{ font-size: 1.85rem; }
}

/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
  .btn,
  .nav-link::after,
  .u-underline::after,
  .member,
  .member-overlay,
  .person,
  .person__overlay,
  .footer-link::after{
    transition:none !important;
  }
  .person__panel{
    animation: none !important;
  }
}

/* =========================================================
   ACTIVITIES: CORE FUNCTIONS (compact grid)
========================================================= */
.functions-grid{
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.function-card{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(123,136,111,0.35);
  border-radius:36px 6px 36px 6px;
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.05rem;
}

.function-card__title{
  margin: 0 0 0.35rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.12;
  color: rgba(0,0,0,0.90);
}

.function-card__text{
  margin: 0;
  font-size: 1.02rem;
  color: rgba(0,0,0,0.74);
}
