/* Mindfulness Devon - styles. Colours are variables at the top: easy to retune. */
:root {
  --cream: #F7F3EC;
  --teal: #2F5D62;
  --teal-dark: #234649;
  --sage: #DDE5D8;
  --sage-deep: #A8B9A0;
  --clay: #C98B64;
  --clay-dark: #8A4F2A;
  --ink: #26302F;
  --muted: #55625F;
  --card: #FFFFFF;
  --radius: 16px;
  --serif: "Fraunces", "Lora", Georgia, serif;
  --sans: "Nunito Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.7;
}
h1, h2, h3 { font-family: var(--serif); color: var(--teal); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 .4rem; }
a { color: var(--teal); }
a:hover { color: var(--clay-dark); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Header */
header.site { padding: 1rem 0; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.brand { font-family: var(--serif); font-size: 1.35rem; color: var(--teal); text-decoration: none; font-weight: 600; }
.brand small { display: block; font-family: var(--sans); font-size: .85rem; font-weight: 400; color: var(--muted); }
nav a { margin-right: 1.2rem; text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; }
nav a:last-child { margin-right: 0; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--clay); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--sage) 0%, #EFEBDF 55%, #F3E4D6 100%);
  padding: clamp(3rem, 9vw, 6rem) 0; position: relative; overflow: hidden;
}
.hero::after { /* gentle wave motif */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q150 0 300 30 T600 30 T900 30 T1200 30 V60 H0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q150 0 300 30 T600 30 T900 30 T1200 30 V60 H0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.hero p.lead { font-size: 1.3rem; max-width: 34rem; color: var(--ink); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--clay-dark); font-weight: 700; margin: 0 0 .5rem; }
.btn {
  display: inline-block; background: var(--teal); color: #fff; padding: .85rem 1.6rem; border-radius: 999px;
  text-decoration: none; font-weight: 700; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn.ghost:hover { background: var(--teal); color: #fff; }

section { padding: clamp(2rem, 6vw, 4rem) 0; }
.panel { background: var(--sage); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }

/* Players & cards */
.player-box { background: var(--card); border-radius: var(--radius); box-shadow: 0 4px 24px rgba(38,48,47,.08); overflow: hidden; }
.player-box .info { padding: 1.25rem 1.5rem 1.5rem; }
.facade {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 180px;
  background: linear-gradient(135deg, var(--teal), #4F8087); color: #fff; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 1.1rem; gap: .8rem;
}
.facade.has-img { min-height: 240px; background-size: cover; background-position: center; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.facade .play { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 1.4rem; }
.facade:hover .play { background: rgba(255,255,255,.35); }
.player-box iframe { display: block; width: 100%; border: 0; }
.player-box iframe.yt { aspect-ratio: 16/9; height: auto; }
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.chip { display: inline-block; font-size: .85rem; padding: .1rem .7rem; border-radius: 999px; background: var(--sage); color: var(--teal-dark); margin-right: .4rem; font-weight: 600; }
.chip.dur { background: #F3E4D6; color: var(--clay-dark); }
.card p { margin: .4rem 0 0; color: var(--muted); font-size: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; align-items: center; }
.pill { border: 2px solid var(--teal); background: transparent; color: var(--teal); padding: .35rem 1rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: 1rem; }
.pill[aria-pressed="true"] { background: var(--teal); color: #fff; }
input[type=search], input[type=text], input[type=email], textarea {
  font: inherit; padding: .7rem 1rem; border: 2px solid var(--sage-deep); border-radius: 12px; background: #fff; width: 100%; max-width: 32rem;
}
.notice { background: #F3E4D6; border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 1rem; }
.two { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .two { grid-template-columns: 1fr 1fr; } }
.portrait {
  aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, var(--sage-deep), var(--sage));
  display: grid; place-items: center; color: var(--teal-dark); text-align: center; padding: 1rem; font-size: 1rem;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* Footer */
footer.site { background: var(--teal-dark); color: #E9EFEA; padding: 2.5rem 0; font-size: 1rem; margin-top: 2rem; }
footer.site a { color: #fff; }
footer.site details { margin-top: 1rem; }
footer.site pre { white-space: pre-wrap; font-family: inherit; background: rgba(255,255,255,.08); padding: 1rem; border-radius: 12px; }
.error { background: #fbe9e7; border-radius: 12px; padding: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
