/* The Culture Club Embryology
   Palette and typography per the client's brand guidelines, 2026-09-10. */

:root {
  --cream: #f5f3eb;
  --cream-deep: #ece8db;
  --green: #2e4a42;
  --green-soft: rgba(46, 74, 66, 0.66);
  --green-light: #a7c4a0;
  --terracotta: #c2654f;
  --terracotta-dark: #a5503c;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", Lato, Calibri, "Segoe UI", sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--cream);
  /* Faint paper grain so the cream reads as a material rather than a flat fill. */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(167, 196, 160, 0.18), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(194, 101, 79, 0.07), transparent 46%);
  background-attachment: fixed;
  color: var(--green);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 350;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta-dark); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--green); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Layout ---------- */

.shell { max-width: 68rem; margin: 0 auto; padding-inline: var(--gutter); }

.band { padding-block: clamp(3.5rem, 8vw, 7rem); }
.band + .band { border-top: 1px solid rgba(167, 196, 160, 0.5); }

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.mark img {
  width: clamp(96px, 20vw, 150px);
  height: clamp(96px, 20vw, 150px);
  border-radius: 50%;
  /* The supplied logo is a JPEG on its own cream ground; the circular crop
     hides the square edge until a transparent version arrives. */
  object-fit: cover;
}

.mark span {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.25;
  max-width: 11rem;
}

.masthead nav {
  margin-left: auto;
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.masthead nav a { color: var(--green); text-decoration: none; padding-block: 0.35rem; }
.masthead nav a:hover,
.masthead nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--terracotta); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem); }

.hero p.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.1rem);
  line-height: 1.08;
  margin: 0;
  max-width: 18ch;
}

.hero h1 em { font-style: italic; color: var(--terracotta-dark); }

.hero .lede {
  max-width: var(--measure);
  margin: 2rem 0 0;
  font-size: 1.15rem;
}

/* A thin botanical rule, echoing the flourishes either side of the logo mark. */
.sprig {
  width: 100%;
  max-width: 15rem;
  height: 1px;
  margin: 2.75rem 0 0;
  border: 0;
  background: linear-gradient(to right, var(--green-light), rgba(167, 196, 160, 0));
  position: relative;
}
.sprig::after {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* ---------- Editorial two-column ---------- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: start; }
  .split > h2 { position: sticky; top: 2.5rem; }
}

.split > h2 {
  font-size: 1.05rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  color: var(--green-soft);
}

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin-block: 0 1.35rem; }
.prose h3 { font-size: 1.5rem; margin: 2.5rem 0 0.6rem; }

.pull {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.4;
  font-style: italic;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--green-light);
  max-width: 26ch;
}

/* ---------- Credentials ---------- */

.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }

.creds li {
  display: grid;
  grid-template-columns: 0.75rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(167, 196, 160, 0.55);
}

.creds li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  transform: translateY(-2px);
}

.creds strong { font-weight: 600; }
.creds span { display: block; font-size: 0.94rem; color: var(--green-soft); }

/* ---------- Service cards ---------- */

.services { display: grid; gap: 1px; background: rgba(167, 196, 160, 0.55); }

@media (min-width: 46rem) { .services { grid-template-columns: repeat(2, 1fr); } }

.service {
  background: var(--cream);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  transition: background 220ms ease;
}

.service:hover { background: var(--cream-deep); }

.service .num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 0.85rem;
}

.service h3 { margin: 0 0 0.7rem; font-size: 1.35rem; }
.service p { margin: 0 0 1rem; font-size: 0.98rem; }
.service ul { margin: 0; padding-left: 1.1rem; font-size: 0.93rem; color: var(--green-soft); }
.service li { margin-bottom: 0.3rem; }

.service.wide { grid-column: 1 / -1; }

/* ---------- Notice / coming soon ---------- */

.notice {
  background: rgba(167, 196, 160, 0.22);
  border-left: 3px solid var(--green-light);
  padding: clamp(1.4rem, 3vw, 2rem);
  max-width: 42rem;
}

.notice h3 { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact-card {
  background: var(--green);
  color: var(--cream);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 52rem) {
  .contact-card { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
}

.contact-card h2 { margin: 0 0 0.75rem; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--cream); }
.contact-card p { margin: 0; color: rgba(245, 243, 235, 0.82); max-width: 38ch; }

.button {
  display: inline-block;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.95rem 1.9rem;
  text-decoration: none;
  border: 1px solid var(--terracotta);
  transition: background 200ms ease, transform 200ms ease;
  white-space: nowrap;
}

.button:hover {
  background: var(--terracotta-dark);
  color: var(--cream);
  transform: translateY(-2px);
}

.button.ghost { background: transparent; border-color: var(--green-light); color: var(--cream); }
.button.ghost:hover { background: rgba(167, 196, 160, 0.16); }

.inline-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2rem; font-size: 0.98rem; }

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid rgba(167, 196, 160, 0.5);
  padding-block: 2.5rem 3.5rem;
  font-size: 0.88rem;
  color: var(--green-soft);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 46rem) {
  .site-foot { grid-template-columns: 1fr auto; align-items: end; }
}

.site-foot p { margin: 0 0 0.3rem; }
.site-foot .legal { font-size: 0.8rem; }

.foot-insta { display: inline-flex; align-items: center; gap: 0.45rem; }
.foot-insta svg { width: 18px; height: 18px; flex: none; }

/* Builder credit: a quiet full-width row under the footer columns. */
.site-foot .credit {
  grid-column: 1 / -1;
  margin: 0.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(167, 196, 160, 0.35);
  font-size: 0.78rem;
}

.credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green-soft);
  text-decoration: none;
}

.credit a:hover { color: var(--terracotta-dark); }

.credit img { width: 28px; height: 28px; border-radius: 50%; flex: none; }

/* ---------- Entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .reveal:nth-child(2) { animation-delay: 90ms; }
  .reveal:nth-child(3) { animation-delay: 180ms; }
  .reveal:nth-child(4) { animation-delay: 270ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Photography ---------- */

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 58rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.portrait {
  position: relative;
  isolation: isolate;
}

/* A soft sage block sitting behind and offset from the photograph, so the portrait
   feels placed rather than dropped in. */
.portrait::before {
  content: "";
  position: absolute;
  inset: auto -1.25rem -1.25rem auto;
  width: 62%;
  height: 62%;
  background: rgba(167, 196, 160, 0.42);
  z-index: -1;
}

/* Every photograph keeps its own proportions. Katie's three images are a near-square
   portrait, a tall 3:4 and a square, so forcing a shared ratio crops all of them badly. */
.portrait img { width: 100%; height: auto; }

.portrait figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--green-soft);
}

figure { margin: 0; }

/* The lab photograph is square, so it is capped rather than stretched across the column. */
.figure-wide { margin: 0 0 2.75rem; max-width: 30rem; }

.figure-wide img { width: 100%; height: auto; }

.figure-wide figcaption,
.figure-inline figcaption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--green-soft);
  max-width: 44ch;
}

/* The microscope shot is tall (3:4). Left full width on a phone it would dominate the
   section, so it is capped there and floated at a modest width alongside the text above. */
.figure-inline { margin: 0 0 2rem; max-width: 20rem; }

.figure-inline img { width: 100%; height: auto; }

@media (min-width: 46rem) {
  .figure-inline {
    float: right;
    width: 38%;
    max-width: none;
    margin: 0.4rem 0 1.5rem 2.5rem;
  }
}

/* ---------- Social icons ---------- */

.social {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.9rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  /* The circular frame echoes the ring around the mark in Katie's logo. */
  border: 1px solid var(--green-light);
  color: var(--green);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.social a:hover,
.social a:focus-visible {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
  transform: translateY(-2px);
}

.social svg { width: 21px; height: 21px; }
