/* ==========================================================
   Code, Create and Care — site styles
   Palette and type are pulled from the clay banner.
   ========================================================== */

:root {
  /* Colour */
  --paper:       #F2EEE7;  /* banner background */
  --paper-deep:  #E8E1D5;  /* alternate section */
  --clay-cream:  #EBE0CD;  /* cream clay letters */
  --clay-shade:  #CDBFA6;  /* cream clay shadow */
  --taupe:       #8E7D68;  /* {/} braces */
  --stone:       #737980;  /* grey clay letters */
  --stone-dark:  #565B61;
  --ink:         #33373B;  /* tagline text */
  --rule:        #CFC7BA;

  /* Type */
  --font-display: "Fredoka", "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body:    "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --wrap: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(4rem, 9vw, 7rem);
  --radius-pill: 999px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

a { color: var(--stone-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--taupe);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* ---------- Signature element: clay-pressed headings ---------- */
.clay-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  letter-spacing: 0.01em;
  color: var(--stone);
  text-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.55),
    0 1px 0 #666b71,
    0 2px 0 #60656b,
    0 3px 0 #5a5f64,
    0 4px 0 #54595e,
    0 7px 10px rgba(70, 62, 50, 0.28);
  margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--stone-dark);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  /* a soft "pressed clay" edge rather than a flat drop shadow */
  box-shadow: 0 3px 0 #3f4348, 0 6px 12px rgba(60, 55, 48, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: #fff; transform: translateY(1px); box-shadow: 0 2px 0 #3f4348, 0 4px 8px rgba(60, 55, 48, 0.2); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 #3f4348, 0 2px 4px rgba(60, 55, 48, 0.2); }

.btn-quiet {
  background: var(--clay-cream);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--clay-shade), 0 6px 12px rgba(60, 55, 48, 0.14);
}
.btn-quiet:hover { color: var(--ink); box-shadow: 0 2px 0 var(--clay-shade), 0 4px 8px rgba(60, 55, 48, 0.14); }
.btn-quiet:active { box-shadow: 0 0 0 var(--clay-shade), 0 2px 4px rgba(60, 55, 48, 0.14); }

.btn-small { padding: 0.55rem 1.15rem; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 238, 231, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  /* three columns: logo | centre text | social icons, so the middle stays truly centred */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.header-inner .wordmark { justify-self: start; }
.header-inner .social-links { justify-self: end; }

.header-center {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark small { font-size: 0.7em; font-weight: 600; color: #000; }
.wordmark-braces { color: var(--taupe); margin-right: 0.25rem; }
.wordmark-braces .brace { color: var(--ink); }

.site-header nav { margin-left: auto; }

.nav-list {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.nav-list a:hover { text-decoration: underline; }

/* ---------- Header social icons ---------- */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.social-links a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--stone-dark);
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.social-links a:hover {
  color: var(--ink);
  background: var(--paper-deep);
  transform: translateY(-1px);
}
.social-links svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.social-links .icon-stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.social-links .icon-stroke .dot { fill: currentColor; stroke: none; }

/* ---------- Hero ---------- */
.hero-banner {
  margin: 0;
  background: var(--paper);
}
.hero-banner img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
}

.hero-intro {
  max-width: 44rem;
  padding-block: 0.5rem var(--section-space);
  text-align: center;
}

.hero-heading {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
  /* smaller and kept on one line; scales down with the screen width */
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: 0;
  font-size: clamp(1.1rem, 5vw, 2rem);
  white-space: nowrap;
  /* same taupe as the {/} braces in the header logo */
  color: var(--taupe);
  text-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.55),
    0 1px 0 #7f6f5b,
    0 2px 0 #776753,
    0 3px 0 #6f604d,
    0 5px 8px rgba(70, 62, 50, 0.25);
}

.lead {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---------- Hero icon row (recreated from the banner) ---------- */
.icon-row {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  /* break out of the narrow text column so the icons spread wider than the paragraph */
  width: min(60rem, calc(100vw - 2 * var(--gutter)));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.icon-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 1rem;
}
.icon-item + .icon-item { border-left: 1px solid var(--rule); }

.icon-art {
  width: clamp(3.25rem, 7vw, 4.25rem);
  height: auto;
  fill: none;
  stroke: var(--stone);
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* soft raised "clay" edge like the banner icons */
  filter:
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.7))
    drop-shadow(0 1.5px 0 #5f646a)
    drop-shadow(0 4px 4px rgba(70, 62, 50, 0.22));
  transition: transform 0.2s ease;
}
.icon-item:hover .icon-art { transform: translateY(-3px); }

.icon-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Pillars (mirrors the banner's icon row) ---------- */
.pillars {
  padding-block: var(--section-space);
  background: var(--paper-deep);
  text-align: center;
}

.pillar-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
}

.pillar {
  padding: 0.5rem clamp(1rem, 3vw, 2.5rem);
}
.pillar + .pillar { border-left: 1px solid var(--rule); }

.pillar-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  fill: none;
  stroke: var(--stone);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.pillar p {
  max-width: 22rem;
  margin-inline: auto;
}

/* ---------- Process ---------- */
.process {
  position: relative;
  padding-block: var(--section-space);
  overflow: hidden;
}

/* clay blob, echoing the banner's corner shapes */
.process::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -5rem;
  width: 20rem;
  height: 14rem;
  border-radius: 58% 42% 50% 50% / 55% 60% 40% 45%;
  background: var(--clay-cream);
  box-shadow: inset 0 -6px 12px rgba(150, 130, 100, 0.18), 0 8px 18px rgba(70, 62, 50, 0.12);
  z-index: -1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 4.25rem;
}

/* each number is a little pressed clay coin */
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--clay-cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--taupe);
  box-shadow: inset 0 -3px 0 var(--clay-shade), 0 4px 8px rgba(70, 62, 50, 0.16);
}

.steps h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

/* ---------- Videos ---------- */
.videos {
  padding-block: var(--section-space);
  background: var(--paper-deep);
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.5rem;
}

.video-placeholder:only-child { grid-column: 1 / -1; max-width: 36rem; }

.video { margin: 0; }
.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 0.75rem; font-weight: 600; }

.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 2px dashed var(--rule);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.video-placeholder:hover { background: var(--paper); color: var(--ink); }

.play {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--stone);
  box-shadow: inset 0 -3px 0 var(--stone-dark), 0 4px 8px rgba(70, 62, 50, 0.2);
  position: relative;
}
.play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.1rem;
  border-color: transparent transparent transparent #fff;
}

/* ---------- About ---------- */
.about {
  position: relative;
  padding-block: var(--section-space);
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  left: -5rem;
  top: -4rem;
  width: 16rem;
  height: 12rem;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  background: #D9DCDD;
  box-shadow: inset 0 -6px 12px rgba(90, 95, 100, 0.15), 0 8px 18px rgba(70, 62, 50, 0.1);
  z-index: -1;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-copy { max-width: 36rem; }
.about-copy .btn { margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #E6E1D8;
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  flex: 1 1 20rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: #E6E1D8; }
.footer-links a:hover { color: #fff; }

/* Footer copy of the social icons: light on the dark background */
.footer-social a { color: #E6E1D8; }
.footer-social a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.copyright {
  margin: 0;
  width: 100%;
  font-size: 0.9rem;
  color: #B3ADA3;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header nav { display: none; }

  .about-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* zoom the banner into its title so it stays readable on phones */
  .hero-banner img {
    aspect-ratio: 1.75 / 1;
    object-fit: cover;
    object-position: 50% 48%;
  }
  .hero-intro { padding-top: 1.5rem; }

  .pillar-row,
  .steps { grid-template-columns: 1fr; }

  .pillar { padding: 2rem 0; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--rule); }

  .wordmark { font-size: 1.05rem; }
  /* not enough room for logo + centre text + four icons on phones */
  .header-center { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
}

@media (max-width: 420px) {
  .wordmark { font-size: 0.95rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
