/* ==========================================================================
   Kernow Mind & Mat — example one-page website (yoga template)
   Chunky and bold: huge condensed headlines, flat colour bands, round
   "sticker" badges, and thin ruled lines dividing the columns.
   Mobile first. Breakpoints: 640px, 900px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette: clay and olive, used as flat blocks, with a butter accent */
  --ink:        #241F1A;
  --olive-deep: #2F3A22;
  --olive:      #5F6B3A;
  --clay:       #A8452A;
  --clay-deep:  #8A3620;
  --cream:      #F4EDE0;
  --sand:       #D9C8AB;
  --butter:     #F1CF6A;

  --text:       #2E2823;
  --text-soft:  #5A5046;
  --line:       #241F1A;            /* the ruled lines */

  /* Type */
  --font-display: "Anton", "Arial Narrow", Impact, "Haettenschweiler", sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 64px;
  --section-y: clamp(72px, 11vw, 150px);
}

@media (min-width: 900px) {
  :root { --header-h: 80px; }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.08rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-weight: 400; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

section { scroll-margin-top: calc(var(--header-h) + 8px); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}
.site-header :focus-visible,
.hero :focus-visible,
.classes :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible { outline-color: var(--butter); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  background: var(--butter);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* The example-site notice above the header */
.demo-strip {
  margin: 0;
  padding: 0.55rem var(--gutter);
  background: var(--butter);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
.demo-strip a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   3. Shared pieces
   -------------------------------------------------------------------------- */

/* Small capital label above a headline */
.eyebrow {
  font-family: var(--font-label);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 0.6rem;
}
.eyebrow--butter { color: var(--butter); }
.eyebrow--cream  { color: var(--cream); }
.eyebrow--ink    { color: var(--ink); }

/* The big chunky headline used for every section */
.display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9.5vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}
.display--clay   { color: var(--clay); }
.display--olive  { color: var(--olive-deep); }
.display--butter { color: var(--butter); }
.display--cream  { color: var(--cream); }
.display--ink    { color: var(--ink); }

/* Buttons: squared, heavy, capital letters */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--font-label);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

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

.btn--ink { background: var(--ink); color: var(--butter); border-color: var(--ink); }
.btn--ink:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: var(--cream); }

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

.btn--sm { padding: 0.6rem 1.1rem; font-size: 1rem; }

/* Underlined text link with an arrow */
.arrow-link {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--clay);
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
}
.arrow-link::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.5em;
  transition: transform 0.18s ease;
}
.arrow-link:hover::after { transform: translateX(5px); }
.arrow-link--light { color: var(--butter); }

/* Round sticker badge that overlaps the edge of a photo or section */
.sticker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(118px, 15vw, 170px);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  font-family: var(--font-label);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-9deg);
}
.sticker strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}
.sticker--clay   { background: var(--clay);   color: var(--cream); }
.sticker--butter { background: var(--butter); color: var(--ink); }

/* Colour-block stand-ins shown until a photo is dropped into the images folder.
   script.js swaps each one for the real photo when the file exists. */
.plate {
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 1.1rem;
  overflow: hidden;
  background: var(--sand);
  color: var(--ink);
}
.plate--clay  { background: var(--clay);       color: var(--cream); }
.plate--olive { background: var(--olive);      color: var(--cream); }
.plate--sand  { background: var(--sand);       color: var(--ink); }
.plate--ink   { background: var(--olive-deep); color: var(--cream); }

.plate__caption {
  margin: 0;
  max-width: 30ch;
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Once a photo has loaded, the slot becomes a plain picture frame */
.plate.has-photo { padding: 0; background: none; }
.plate.has-photo img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--olive-deep);
  color: var(--cream);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wordmark {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
}
.wordmark__sub {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--butter);
  margin-top: 5px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 2px solid var(--cream);
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-label);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars span { display: block; height: 2px; background: var(--cream); }

.nav { display: none; }
.nav.is-open {
  display: block;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--olive-deep);
  padding: 0.25rem var(--gutter) 1.5rem;
}
.nav__list { display: grid; }
.nav__list a {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid rgba(244, 237, 224, 0.25);
}
.nav__cta { margin-top: 1.2rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 2rem; }
  .nav__list { display: flex; gap: 1.6rem; }
  .nav__list a {
    padding: 0.3rem 0;
    border: 0;
    border-bottom: 2px solid transparent;
    font-family: var(--font-label);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: color 0.18s ease, border-color 0.18s ease;
  }
  .nav__list a:hover { color: var(--butter); }
  .nav__list a[aria-current="true"] { color: var(--butter); border-bottom-color: var(--butter); }
  .nav__cta { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

/* Full-width opening on dark olive. With no photo it is a flat field; when
   images/hero.jpg exists it sits behind a dark wash so the headline stays readable. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--olive-deep);
  min-height: min(88svh, 700px);
}

.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero__media.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(36, 31, 26, 0.45) 0%,
    rgba(36, 31, 26, 0.72) 55%,
    rgba(36, 31, 26, 0.9) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(56px, 7vw, 84px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 13.5vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.hero__title-accent { color: var(--butter); }

.hero__lede {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  color: var(--cream);
  max-width: 36ch;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* The sticker hangs off the bottom edge of the hero, over the next section */
.hero__sticker {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  z-index: 2;
  transform: translateY(42%) rotate(9deg);
}

@media (min-width: 900px) {
  .hero { min-height: min(calc(100svh - var(--header-h) - 40px), 820px); }
  .hero__sticker { right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
}

/* --------------------------------------------------------------------------
   6. What I do
   -------------------------------------------------------------------------- */

.about { padding-block: var(--section-y); }

.about__grid { display: grid; gap: clamp(48px, 6vw, 88px); }

.about__lead {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.about__copy p { max-width: 54ch; }

/* A list divided by ruled lines */
.ruled-list {
  margin-top: 2rem;
  border-top: 2px solid var(--line);
}
.ruled-list li {
  padding: 0.85rem 0;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-label);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.about__visual {
  position: relative;
  width: 100%;
  max-width: 460px;
}
.about__figure { aspect-ratio: 4 / 5; width: 100%; }
.about__sticker {
  position: absolute;
  left: -14px;
  bottom: -28px;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    align-items: center;
  }
  .about__visual { justify-self: end; }
  .about__sticker { left: -56px; bottom: 48px; }
}

/* --------------------------------------------------------------------------
   7. Classes
   -------------------------------------------------------------------------- */

.classes {
  padding-block: var(--section-y);
  background: var(--olive-deep);
  color: var(--cream);
}

.classes__head { display: grid; gap: 0.5rem; margin-bottom: clamp(28px, 4vw, 48px); }
.classes__head .display { margin-bottom: 0; }
.classes__intro { max-width: 40ch; font-size: 1.15rem; }

@media (min-width: 900px) {
  .classes__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; }
}

/* Three columns divided by ruled lines */
.sessions {
  display: grid;
  border-top: 2px solid var(--cream);
}

.session {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-bottom: 2px solid var(--cream);
}

.session__day {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--butter);
  margin-bottom: 0.5rem;
}
.session__time {
  font-family: var(--font-label);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.session__name {
  font-family: var(--font-label);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.session__copy { margin-bottom: 1rem; }
.session__price {
  font-family: var(--font-label);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.6rem;
}
.session .arrow-link { margin-top: auto; align-self: flex-start; }

@media (min-width: 800px) {
  .sessions { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 2px solid var(--cream); }
  .session { border-bottom: 0; padding-inline: clamp(20px, 2.6vw, 40px); }
  .session:first-child { padding-left: 0; }
  .session:last-child { padding-right: 0; }
  .session + .session { border-left: 2px solid var(--cream); }
}

/* --------------------------------------------------------------------------
   8. One-to-one band
   -------------------------------------------------------------------------- */

.band {
  padding-block: clamp(56px, 8vw, 104px);
  background: var(--butter);
  color: var(--ink);
}
.band__grid { display: grid; gap: clamp(20px, 4vw, 64px); }
.band__title { margin-bottom: 0; font-size: clamp(2.6rem, 7vw, 5rem); }
.band__copy p { max-width: 46ch; font-size: 1.15rem; }
.band__price {
  font-family: var(--font-label);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; }
}

/* --------------------------------------------------------------------------
   9. Photos
   -------------------------------------------------------------------------- */

.photos { padding-block: var(--section-y); }

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px) clamp(12px, 2vw, 28px);
}

.tile { margin: 0; }
.tile__media { aspect-ratio: 3 / 4; }
.tile figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-label);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--ink);
}

@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   10. Where to find me
   -------------------------------------------------------------------------- */

.find {
  padding-block: var(--section-y);
  background: var(--sand);
}

.find__grid { display: grid; gap: clamp(36px, 5vw, 72px); }

.details { margin: 0; border-top: 2px solid var(--line); }
.details > div {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 2px solid var(--line);
}
.details dt {
  font-family: var(--font-label);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.details dd { margin: 0; color: var(--ink); }

@media (min-width: 640px) {
  .details > div { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem; }
}

.find__map {
  border: 2px solid var(--line);
  background: var(--cream);
  aspect-ratio: 4 / 3;
}
.find__map iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (min-width: 900px) {
  .find__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
}

/* --------------------------------------------------------------------------
   11. Contact
   -------------------------------------------------------------------------- */

.contact {
  padding-block: var(--section-y);
  background: var(--clay);
  color: var(--cream);
}

.contact__grid { display: grid; gap: clamp(36px, 5vw, 80px); }

.contact__lede { max-width: 40ch; font-size: 1.2rem; }
.contact__phone {
  font-family: var(--font-label);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact__phone a { color: var(--butter); text-underline-offset: 4px; }

.field { margin-bottom: 1.2rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-label);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: var(--font-text);
  font-size: 1.05rem;
  color: var(--ink);
}
.field textarea { resize: vertical; }

.field [aria-invalid="true"] { border-color: var(--butter); box-shadow: 0 0 0 3px var(--butter); }

.field__error {
  margin: 0.45rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
}

.form__status { margin: 1.1rem 0 0; font-weight: 600; color: var(--cream); }
.form__status:empty { margin: 0; }

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: start; }
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-top: clamp(48px, 7vw, 88px);
}

/* The name, as large as the page allows */
.footer-name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10.5vw, 8.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--butter);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.site-footer__grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(24px, 3vw, 36px);
  border-top: 2px solid var(--cream);
}

.footer-heading {
  font-family: var(--font-label);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--butter);
  margin-bottom: 0.5rem;
}

.footer-note { line-height: 1.7; color: var(--cream); }
.site-footer a { color: var(--cream); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--butter); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem clamp(28px, 4vw, 40px);
  border-top: 2px solid var(--cream);
  font-size: 0.92rem;
}
.site-footer__base p { margin: 0; }

@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   13. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}
