/* P-Square: shared styles for every page.
   Values are taken 1:1 from the original design files. Brand rules live in CLAUDE.md. */

:root {
  --cream: #EFEBDE;
  --charcoal: #2E2E2E;
  --raspberry: #C55E84;
  --sage: #95A775;
  --dark-green: #3F5B36;
  --blush: #F3DCE3;   /* light pink used in the design (About accent, Clients, service pages) */
  --white: #FFFFFF;

  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

a { color: var(--charcoal); }
a:hover { color: #000000; }
:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--cream); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--charcoal); color: var(--cream);
  padding: 12px 20px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--cream); }

.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.accent { color: var(--raspberry); }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.band { padding: 96px 0; }
.stack { display: flex; flex-direction: column; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: start; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.h2 { margin: 0; font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.h2-lg { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.copy { display: flex; flex-direction: column; gap: 20px; font-size: 19px; line-height: 1.55; }
.copy p { margin: 0; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-size: 17px; padding: 16px 28px;
}
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover { background: #000000; color: var(--cream); }
.btn-outline { border: 2px solid var(--charcoal); padding: 14px 26px; }
.btn-cream { background: var(--cream); color: var(--charcoal); }
.btn-cream:hover { background: var(--white); color: var(--charcoal); }
.btn-lg { font-size: 18px; padding: 18px 32px; }
.btn-outline.btn-lg { padding: 16px 30px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Header */
.site-header {
  max-width: 1200px; margin: 0 auto; padding: 28px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.logo { display: block; line-height: 0; }
.logo img { height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 16px; font-weight: 500; }
.site-nav a { text-decoration: none; padding: 4px 0; }
.site-nav .nav-cta { background: var(--charcoal); color: var(--cream); padding: 12px 20px; font-weight: 700; }
.site-nav .nav-cta:hover { background: #000000; color: var(--cream); }

/* Header: "Free resources" dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.dropdown-panel {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 20; min-width: 300px;
  background: var(--white); border-top: 4px solid var(--raspberry); padding: 20px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: 0 8px 24px rgba(46, 46, 46, 0.12);
}
.site-nav .dropdown-panel a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; padding: 0; }
.dropdown-panel strong { font-size: 16px; }
.dropdown-panel span { font-size: 14px; color: #3A3A3A; }

/* Home: hero */
.hero {
  padding-top: 48px; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center;
}
.hero-title { margin: 0; font-size: clamp(64px, 9vw, 128px); line-height: 0.9; font-weight: 800; letter-spacing: -0.03em; }
.hero-lede { margin: 0; font-size: 22px; line-height: 1.45; max-width: 520px; }
.portrait { position: relative; justify-self: center; width: 100%; max-width: 320px; }
.portrait-block { position: absolute; left: -28px; bottom: -28px; width: 55%; height: 45%; background: var(--raspberry); }
.portrait-grid {
  position: absolute; right: -32px; top: -32px; width: 112px; height: 112px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.portrait-grid .o { border: 2px solid var(--sage); }
.portrait-grid .s { background: var(--sage); }
.portrait-grid .r { background: var(--raspberry); }
.portrait img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* Home: about (dark green) */
.about { background: var(--dark-green); color: var(--cream); }
.about a { color: var(--cream); }
.about .blush { color: var(--blush); }
.about-inner { gap: 72px; }
.about-divider { border-top: 2px solid rgba(239, 235, 222, 0.4); padding-top: 56px; }

/* Who I work with (top of the services band) */
.who { gap: 48px; }
.who p { margin: 0; font-size: 20px; line-height: 1.55; }
.h2-tight { line-height: 1; }

/* Home: services */
.services { background: var(--sage); color: var(--charcoal); }
.services-inner { gap: 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--white); border-top: 6px solid var(--charcoal); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { margin: 0; font-size: 28px; font-weight: 800; }
.card p { margin: 0; font-size: 17px; line-height: 1.55; }
.card a { font-weight: 700; font-size: 16px; margin-top: auto; }

/* How it works (dark green band) */
.how-band { background: var(--dark-green); color: var(--cream); }
.how { gap: 40px; }
.how-intro { gap: 12px; }
.how-intro p { margin: 0; font-size: 19px; line-height: 1.5; max-width: 640px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.steps li { border-top: 2px solid var(--blush); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.step-num { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--blush); }
.steps strong { font-size: 21px; }
.step-text { font-size: 16px; line-height: 1.5; }

/* Home: clients */
.clients { background: var(--cream); padding: 80px 0; }
.clients-inner { gap: 32px; }
.clients h2 { margin: 0; font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.logo-slot { height: 88px; border: 2px dashed var(--charcoal); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; }

/* Closing call to action (every page) */
.call-band { background: var(--raspberry); color: var(--white); padding: 112px 0; }
.call { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.call h2 .serif-italic { color: var(--cream); }
.call h2 { margin: 0; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; font-weight: 800; letter-spacing: -0.03em; }
.call-email { font-size: 20px; font-weight: 700; color: var(--white); }
.call-email:hover { color: var(--cream); }

/* Footer */
.site-footer { background: var(--dark-green); color: var(--cream); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 32px 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 15px;
}

/* Service sections (01–03) */
.service { padding: 96px 0; }
.service-cream { background: var(--cream); }
.service-blush { background: var(--blush); }
.service-inner { gap: 40px; }
.service-head { gap: 20px; }
.service-title { margin: 0; font-size: clamp(48px, 7vw, 88px); line-height: 0.95; font-weight: 800; letter-spacing: -0.03em; }
.best-for { margin: 0; font-size: 20px; line-height: 1.6; max-width: 760px; text-align: left; }
.best-for .serif-italic { font-size: 1.25em; }
.service-detail { gap: 48px; border-top: 2px solid var(--charcoal); padding-top: 32px; }
.service-detail .stack { gap: 12px; }
.service-detail h3 { margin: 0; }
.service-detail p { margin: 0; font-size: 19px; line-height: 1.6; }

/* Small screens: tighter side padding so text has room (layout otherwise as designed) */
@media (max-width: 600px) {
  .wrap, .site-header, .footer-inner { padding-left: 24px; padding-right: 24px; }
  .site-header { padding-top: 20px; padding-bottom: 20px; row-gap: 16px; }
  .site-nav { gap: 8px 20px; }
  .dropdown-panel { left: 0; right: auto; min-width: 0; width: min(300px, calc(100vw - 48px)); }
  .hero, .split { grid-template-columns: minmax(0, 1fr); }
  .band, .service, .call-band { padding-top: 72px; padding-bottom: 72px; }
  .portrait { max-width: 260px; margin: 16px 0 28px; }
  .portrait-grid { right: -16px; top: -24px; width: 84px; height: 84px; gap: 6px; }
  .portrait-block { left: -16px; bottom: -16px; }
}

/* Small spacing helpers used by the page markup */
.hero-copy { gap: 28px; }
.about-head { gap: 16px; }
h2.eyebrow { margin: 0; }
/* Comfortable tap size (24px+) for standalone text links */
.card a, .call-email { padding: 3px 0; }

/* Client logos: same grid and 88px cells as the original placeholder boxes */
.logo-item { height: 88px; display: flex; align-items: center; justify-content: center; }
.logo-item img { max-height: 40px; max-width: 80%; width: auto; height: auto; }
.logo-item img[src*="rippling"], .logo-item img[src*="merantix"] { max-height: 56px; }
@media (max-width: 600px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-item { height: 72px; }
}
