/* ==========================================================
   rainbowpanda — style.css
   ========================================================== */

/* Self-hosted fonts (no requests to Google's servers — see setup notes).
   Put the 4 font files below inside a "fonts" folder next to this CSS file. */
   @font-face{
    font-family: 'Fraunces';
    src: url('fonts/Fraunces-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  @font-face{
    font-family: 'Fraunces';
    src: url('fonts/Fraunces-MediumItalic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
  }
  @font-face{
    font-family: 'Atkinson Hyperlegible Next';
    src: url('fonts/AtkinsonHyperlegibleNext-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face{
    font-family: 'Atkinson Hyperlegible Next';
    src: url('fonts/AtkinsonHyperlegibleNext-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  
  :root{
    --bg-lavender: #EDE9F9;
    --bg-mint: #E3F6EE;
    --ink: #24195d;
    --ink-soft: #4b3f7a;
    --periwinkle: #8d9afd;
    --pink: #ffa0da;
    --teal: #00bc82;
    --yellow: #f4e736;
    --white: #ffffff;
    --paper: rgba(255,255,255,0.62);
    --line: rgba(36,25,93,0.14);
    --radius-lg: 34px;
    --radius-md: 22px;
    --shadow: 0 20px 60px -30px rgba(36,25,93,0.35);
  }
  
  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  
  body{
    margin:0;
    font-family:'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', sans-serif;
    color: var(--ink);
    background:
      radial-gradient(1200px 800px at 12% -10%, var(--bg-lavender) 0%, transparent 60%),
      radial-gradient(1200px 900px at 90% 10%, var(--bg-mint) 0%, transparent 55%),
      linear-gradient(180deg, #F6F3FB 0%, #EFF7F3 45%, #F8F5EE 100%);
    line-height: 1.6;
    font-size: 17px;
  }
  
  h1, h2, h3, .display{
    font-family: 'Fraunces', serif;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--ink);
  }
  
  em.warm{
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(90deg, var(--periwinkle), var(--pink) 55%, var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  a{ color: inherit; }
  
  .wrap{ max-width: 1000px; margin: 0 auto; padding: 0 32px; }
  
  .eyebrow{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 18px;
  }
  .eyebrow::before{
    content:"";
    width: 22px; height: 2px;
    background: linear-gradient(90deg, var(--periwinkle), var(--teal));
    display:inline-block;
    border-radius: 2px;
  }
  
  /* ---------- LANGUAGE TOGGLE ---------- */
  /* Default language shown is German; JS flips html[data-lang] to "en" */
  [data-lang="de"] .en{ display:none; }
  [data-lang="en"] .de{ display:none; }
  
  .lang-switch{
    display:inline-flex;
    border: 2px solid var(--ink);
    border-radius: 999px;
    overflow:hidden;
    font-weight: 700;
    font-size: 13px;
  }
  .lang-switch button{
    border:none;
    background: transparent;
    color: var(--ink);
    padding: 8px 14px;
    cursor:pointer;
    font-family: inherit;
    font-weight: 700;
  }
  .lang-switch button[aria-pressed="true"]{
    background: var(--ink);
    color: var(--white);
  }
  
  /* ---------- NAV ---------- */
  header.site{
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(248,246,251,0.72);
    border-bottom: 1px solid var(--line);
  }
  .nav{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 32px;
    max-width: 1000px;
    margin: 0 auto;
  }
  .brand{
    display:flex;
    align-items:center;
    gap: 12px;
    font-family:'Fraunces', serif;
    font-weight: 600;
    font-size: 21px;
    text-decoration: none;
  }
  .brand svg{ width: 40px; height: 40px; flex-shrink:0; }
  
  nav.links{ display:flex; gap: 24px; font-weight: 600; font-size: 14.5px; }
  nav.links a{ text-decoration:none; color: var(--ink-soft); }
  nav.links a:hover, nav.links a:focus-visible{ color: var(--ink); }
  
  /* ---------- HERO ---------- */
  .hero{ padding: 72px 0 84px; }
  .hero-grid{
    display:grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items:center;
  }
  .hero h1{ font-size: clamp(38px, 5vw, 60px); }
  .hero p.lede{ margin-top: 22px; max-width: 46ch; font-size: 18px; color: var(--ink-soft); }
  
  .btn{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    text-decoration:none;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    transition: transform 0.2s ease;
  }
  .btn:hover{ transform: translateY(-2px); }
  .btn-primary{ background: var(--ink); color: var(--white); box-shadow: var(--shadow); margin-top: 30px;}
  
  .hero-tags{ margin-top: 34px; display:flex; flex-wrap:wrap; gap: 10px; }
  .tag{
    font-size: 13px; font-weight: 700; padding: 7px 14px;
    border-radius: 999px; background: var(--paper);
    border: 1px solid var(--line); color: var(--ink-soft);
  }
  
  /* breathing mark */
  .breath-wrap{
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 380px;
    margin: 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .breath-label{
    position:absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align:center;
  }
  .breath-label span{
    display:block;
    font-family:'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 2px;
  }
  svg.arc-ring{ width: 100%; height: 100%; animation: rotate-slow 40s linear infinite; }
  @keyframes rotate-slow{ to{ transform: rotate(360deg); } }
  
  .arc-track{ fill:none; stroke: rgba(36,25,93,0.08); stroke-width: 10; }
  .arc-fill{
    fill:none;
    stroke: url(#rainbowGrad);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 660;
    stroke-dashoffset: 660;
    animation: breathe 8s ease-in-out infinite;
    transform-origin: center;
  }
  @keyframes breathe{
    0%{ stroke-dashoffset: 660; }
    45%{ stroke-dashoffset: 0; }
    55%{ stroke-dashoffset: 0; }
    100%{ stroke-dashoffset: 660; }
  }
  .panda-mark{
    position:absolute;
    width: 62%;
    height: 62%;
    animation: breathe-scale 8s ease-in-out infinite;
  }
  @keyframes breathe-scale{
    0%{ transform: scale(0.9); }
    45%{ transform: scale(1.04); }
    55%{ transform: scale(1.04); }
    100%{ transform: scale(0.9); }
  }
  @media (prefers-reduced-motion: reduce){
    .arc-fill, .panda-mark, svg.arc-ring{ animation: none !important; }
    .arc-fill{ stroke-dashoffset: 120; }
  }
  
  /* ---------- SECTIONS ---------- */
  section{ padding: 80px 0; }
  .section-head{ max-width: 640px; margin-bottom: 40px; }
  .section-head h2{ font-size: clamp(28px, 3.4vw, 38px); }
  .section-head p{ margin-top: 14px; color: var(--ink-soft); font-size: 17px; }
  
  /* Nature photo band */
  .nature-band{ padding: 0 0 96px; }
  .nature-band figure{ margin: 0; }
  .nature-band img{
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: block;
  }
  .nature-band figcaption{
    margin-top: 20px;
    text-align: center;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 19px;
    color: var(--ink-soft);
  }
  
  .about{ background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .about-grid{ display:grid; grid-template-columns: 260px 1fr; gap: 48px; align-items:start; }
  
  .photo-ring{
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    border-radius: 50%;
    padding: 7px;
    background: linear-gradient(135deg, var(--periwinkle), var(--pink) 55%, var(--teal));
    box-shadow: var(--shadow);
  }
  .photo-ring img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: var(--white);
  }
  
  .about-body p{ margin: 0 0 18px; color: var(--ink-soft); font-size: 17px; }
  .about-body p:last-child{ margin-bottom: 0; }
  .about-body strong{ color: var(--ink); }
  
  .pull-quote{
    margin: 26px 0 0;
    padding: 20px 24px;
    border-left: 3px solid var(--teal);
    background: rgba(0,188,130,0.07);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 17px;
  }
  .pull-quote cite{
    display:block; margin-top: 10px;
    font-family:'Atkinson Hyperlegible Next', sans-serif;
    font-style: normal; font-weight: 700; font-size: 13px;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft);
  }
  
  /* MBSR explainer */
  .mbsr{ background: linear-gradient(180deg, var(--bg-lavender), var(--bg-mint)); }
  .mbsr-body{ max-width: 760px; }
  .mbsr-body p{ color: var(--ink-soft); font-size: 17px; margin: 0 0 16px; }
  .mbsr-body p:last-child{ margin-bottom:0; }
  
  /* Inclusion */
  .inclusive{ text-align:center; }
  .inclusive .section-head{ margin-left:auto; margin-right:auto; text-align:center; }
  .chips{ display:flex; flex-wrap:wrap; justify-content:center; gap: 12px; max-width: 780px; margin: 0 auto; }
  .chip{
    padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
    border: 2px solid var(--ink); background: var(--white);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  }
  .chip:hover{ transform: translateY(-3px); background: var(--ink); color: var(--white); }
  
  /* Contact */
  .contact{
    background: var(--ink); color: var(--white);
    border-radius: var(--radius-lg);
    padding: 64px 48px; text-align:center;
    position: relative; overflow:hidden;
  }
  .contact.contact-photo{
    background-image:
      linear-gradient(rgba(36,25,93,0.52), rgba(36,25,93,0.62)),
      url('images/nature-leaves.jpg');
    background-size: cover;
    background-position: center;
  }
  .contact.contact-photo h2,
  .contact.contact-photo p,
  .contact.contact-photo .contact-email,
  .contact.contact-photo .eyebrow{
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  }
  .contact h2{ color: var(--white); font-size: clamp(26px,3.4vw,36px); }
  .contact p{ color: rgba(255,255,255,0.78); max-width: 50ch; margin: 16px auto 0; font-size: 17px; }
  .contact-email{
    display:inline-block; margin-top: 24px;
    font-family:'Fraunces', serif; font-style: italic; font-size: 19px;
    text-decoration: underline; text-underline-offset: 4px;
  }
  
  footer{ padding: 40px 32px; text-align:center; color: var(--ink-soft); font-size: 14px; }
  footer .brand-foot{ font-family:'Fraunces', serif; font-style: italic; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
  
  @media (max-width: 820px){
    .hero-grid{ grid-template-columns: 1fr; }
    .about-grid{ grid-template-columns: 1fr; }
    .photo-frame{ max-width: 240px; }
    nav.links{ display:none; }
    .contact{ padding: 44px 24px; }
    .wrap{ padding: 0 20px; }
  }
  
  :focus-visible{ outline: 3px solid var(--periwinkle); outline-offset: 3px; }