/* ScribbleMonk Studio — 2026 rebuild
   Cream-ground editorial system. No framework, no build step, no JS. */

:root {
  --paper:  #FFFCF5;   /* default ground, ~70% of surface. never pure white */
  --ink:    #1A1A1A;   /* all type. never pure black */
  --orange: #F05225;   /* brand primary, sampled from SM_monk.png */
  --green:  #0B4F3F;   /* the serious block: nonprofit */
  --blue:   #2B2AF0;   /* cool counterweight: services */
  --amber:  #FFC53D;   /* highlights only. ink-on-amber only, never white */

  /* ponytail: display face is one variable. `Anton` gives the literal
     phamilypharma look; Bricolage has a hand to it, which suits an
     illustration studio better. Swap this line to change the whole page. */
  --font-display: "Bricolage Grotesque", "Anton", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;

  --pill: 3rem;
  --pad: clamp(1.25rem, 5vw, 6rem);
  --gap: clamp(1rem, 2.2vw, 2rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; border-radius: var(--pill); z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- type ---------- */

.display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 95, "wght" 700;
  font-weight: 700;
  text-transform: lowercase;
  font-size: clamp(2.75rem, 7.5vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.display--sm { font-size: clamp(2rem, 4.5vw, 3.75rem); }

.mark { color: var(--orange); }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0 0 1.5rem;
}
.eyebrow--light { opacity: 0.8; }

.muted { opacity: 0.7; font-size: 0.9375rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border: 0;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 140ms ease, opacity 140ms ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--ink    { background: var(--ink);    color: var(--paper); }
.btn--orange { background: var(--orange); color: var(--ink); }   /* ink on orange = 4.7:1 */
.btn--paper  { background: var(--paper);  color: var(--ink); }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 140ms ease;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { opacity: 0.6; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--gap);
  padding: 1rem var(--pad);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}

/* SM_monk.png is the full lockup (mark + script wordmark). The circle mark
   sits at x107-354, y17-265 of the 466x469 file, so crop to it rather than
   repeating the wordmark at every size. */
.mark-crop {
  display: block; overflow: hidden; border-radius: 50%; flex: none;
  width: var(--m, 30px); height: var(--m, 30px);
}
.mark-crop img {
  max-width: none;
  width: calc(var(--m, 30px) * 466 / 248);
  margin-left: calc(var(--m, 30px) * -107 / 248);
  margin-top:  calc(var(--m, 30px) * -17 / 248);
}
.mark-crop--sm { --m: 30px; }

.nav__brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  text-decoration: none; letter-spacing: -0.02em;
  margin-right: auto;
}

.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  transition: color 140ms ease;
}
.nav__links a:hover { color: var(--orange); }

.nav__cta { padding: 0.6rem 1.35rem; font-size: 0.9375rem; }

/* ponytail: nav wraps to a second row on small screens instead of a JS
   hamburger drawer. The nav CTA is dropped there because the hero repeats it. */
@media (max-width: 780px) {
  .nav { flex-wrap: wrap; row-gap: 0.6rem; padding-bottom: 0.85rem; }
  .nav__cta { display: none; }
  .nav__links {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
  }
}

/* ---------- hero ---------- */

.hero {
  --monk: clamp(80px, 12vw, 170px);
  position: relative;
  padding: clamp(3rem, 9vw, 8rem) var(--pad) clamp(4rem, 8vw, 7rem);
}

.hero .display { max-width: 16ch; }

/* keep the eyebrow clear of the mascot sitting in the top-right corner */
.hero .eyebrow { padding-right: calc(var(--monk) + 1rem); }

.hero__monk {
  --m: var(--monk);
  position: absolute;
  top: clamp(1rem, 4vw, 4rem);
  right: var(--pad);
  pointer-events: none;
}

.hero__foot {
  display: flex; flex-wrap: wrap; align-items: end;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

.hero__note { max-width: 34ch; margin: 0; opacity: 0.75; }

/* ---------- shared section head ---------- */

.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 52ch; }
.section-head p { margin: 1rem 0 0; opacity: 0.75; }

/* ---------- work ---------- */

.work { padding: clamp(3rem, 7vw, 7rem) var(--pad); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}

.tile { grid-column: span 4; margin: 0; }

.tile img {
  width: 100%;
  border-radius: var(--pill);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 160ms ease;
}

.tile figcaption {
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.tag {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.61;   /* 4.69:1 on --paper */
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.tile:hover img { transform: translateY(-4px); }

/* deliberate grid breaks — uniformity is the template tell */
.tile--wide { grid-column: span 7; }
.tile--wide img { aspect-ratio: 3 / 2; }
.tile--tall { grid-column: span 5; }
.tile--tall img { aspect-ratio: 3 / 4; }
.tile--drop { margin-top: clamp(0px, 6vw, 5rem); }
.tile--bleed { grid-column: span 12; width: calc(100% + var(--pad)); }
.tile--bleed img {
  aspect-ratio: 21 / 9;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.work__more { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); }

@media (max-width: 900px) {
  .tile, .tile--wide, .tile--tall { grid-column: span 6; }
  .tile--bleed { grid-column: span 12; }
  .tile--drop { margin-top: 0; }
}
@media (max-width: 560px) {
  .tile, .tile--wide, .tile--tall, .tile--bleed { grid-column: span 12; width: 100%; }
  .tile--bleed img { aspect-ratio: 3 / 2; border-radius: var(--pill); }
}

/* ---------- services (ultramarine block) ---------- */

.services {
  background: var(--blue);
  color: #fff;                       /* white on #2B2AF0 = 7.8:1 */
  padding: clamp(3.5rem, 8vw, 8rem) var(--pad);
}
.services .section-head p { opacity: 0.85; }

.svc {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) var(--gap);
  counter-reset: svc;
}
.svc li { counter-increment: svc; }
.svc li::before {
  content: counter(svc, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.35;
  margin-bottom: 0.75rem;
}
.svc h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}
.svc p { margin: 0 0 0.6rem; opacity: 0.88; }
.svc p.svc__proof {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.71;   /* 4.57:1 on --blue, AA small text */
}

/* ---------- nonprofit (deep green block) ---------- */

.np {
  background: var(--green);
  color: var(--paper);               /* paper on #0B4F3F = 9.6:1 */
  padding: clamp(3.5rem, 8vw, 8rem) var(--pad);
}
.np__inner { max-width: 62ch; }
.np__lead { font-size: 1.125rem; margin: 1.5rem 0 2rem; opacity: 0.9; }
.np__list {
  list-style: none; margin: 0 0 2.5rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.np__list li {
  padding: 0.5rem 1.1rem;
  border-radius: var(--pill);
  background: rgba(255,252,245,0.12);
  font-size: 0.9375rem;
}

/* ---------- studio ---------- */

.studio {
  padding: clamp(3.5rem, 8vw, 8rem) var(--pad);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.studio__text p { max-width: 60ch; }
.studio .display { margin-bottom: 1.5rem; }
.studio__values { font-weight: 600; }
.studio__img { border-radius: var(--pill); }

@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .studio__img { max-width: 22rem; }
}

/* ---------- testimonials ---------- */

.says { padding: clamp(3.5rem, 8vw, 8rem) var(--pad); }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--gap);
}
.quotes blockquote {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--amber) 22%, var(--paper));
}
.quotes p { margin: 0 0 1.5rem; }
.quotes footer { display: flex; align-items: center; gap: 0.85rem; }
.quotes footer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quotes footer span { display: block; font-size: 0.875rem; line-height: 1.35; opacity: 0.8; }
.quotes footer strong { display: block; font-size: 1rem; opacity: 1; }

.logos {
  list-style: none; margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: var(--gap);
  align-items: center;
  max-width: 60rem;
}
.logos img { opacity: 0.7; transition: opacity 140ms ease; }
.logos li:hover img { opacity: 1; }

/* ---------- contact (orange block) ---------- */

.contact {
  background: var(--orange);
  color: var(--ink);                 /* ink on orange, not white */
  padding: clamp(3.5rem, 8vw, 8rem) var(--pad);
}
.contact .display { max-width: 14ch; }
.contact__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.contact h3 {
  font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 0.6rem; opacity: 0.7;
}
.contact p { margin: 0 0 0.4rem; font-size: 1.125rem; }
.contact a { text-decoration: none; border-bottom: 2px solid currentColor; }

/* ---------- footer ---------- */

.foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad);
}
.foot__label {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.47; margin: 0 0 1.25rem;   /* 4.67:1 on --ink */
}
.foot__logo { width: 130px; margin-bottom: 2rem; }
.foot__services { margin: 0 0 2rem; opacity: 0.6; max-width: 60ch; }
.foot__social { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot__social a { text-decoration: none; font-weight: 600; transition: color 140ms ease; }
.foot__social a:hover { color: var(--amber); }
.foot__legal { margin: 0; opacity: 0.5; font-size: 0.875rem; }

/* ---------- motion opt-out ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
