/* Self-hosted webfont. font-display: swap avoids invisible text; the
   primary weight (700) is preloaded from the layout head. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2");
}

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

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

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 2px;
}

.site-header {
  padding-inline: 1rem;
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

/* Below 48em the header previously let the nav list and the three-item CTA
   cluster share wrap lines unpredictably with the logo, which read as
   cluttered right where the primary/secondary/low-emphasis CTA hierarchy
   matters most (R10 review). Force each group onto its own full-width row,
   in the same DOM order, so tab order and visual order stay identical. */
@media (max-width: 47.999em) {
  .site-nav,
  .site-actions {
    flex-basis: 100%;
  }
}

.site-footer {
  border-top: 1px solid var(--color-rule);
  padding-block: 2rem 1.5rem;
}

.site-footer__wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 40em) {
  .site-footer__wrap {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }
}

.site-footer__identity {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__nav-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 40em) {
  .site-footer__nav-group {
    align-items: flex-end;
  }
}

.site-footer__nav .site-nav__list {
  gap: 0.25rem 1.25rem;
}

.site-footer__mark {
  opacity: 0.7;
}

.site-footer__contact {
  font-style: normal;
  font-size: var(--font-size-small);
  color: var(--color-ink-70);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-footer__entity {
  font-weight: 700;
  color: var(--color-ink);
}

.site-footer__contact a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-rule);
  text-underline-offset: 0.15em;
}

/* Red pen as decoration, ink as text — the same fix applied to .site-nav__link above and for the
   identical reason: recoloring 15px text into red-pen-on-paper measures 4.06:1, below WCAG AA's
   4.5:1 for text this size (CLAUDE.md §5.2). The underline itself already carries the red-pen
   accent on hover/focus; only the text color needs to stay on ink. */
.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
  text-decoration-color: var(--color-red-pen);
}

main {
  padding-block: 0;
  overflow-x: clip;
}

/* Layout primitive: every full-bleed section wraps its content in .wrap so
   the section itself can carry an edge-to-edge background (the light/dark
   band rhythm) while the content stays centered and readable. */
.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 40em) {
  .wrap {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 60em) {
  .wrap {
    padding-inline: 2rem;
  }
}

p,
li {
  max-width: var(--measure);
}

h1 {
  font-size: var(--font-size-hero);
  font-weight: 700;
  letter-spacing: var(--heading-tracking);
}

.brand-mark {
  display: inline-flex;
  flex-shrink: 0;
}

.brand-mark__icon {
  width: 40px;
  height: 41px;
}

.brand-mark__horizontal {
  display: none;
  width: 208px;
  height: 40px;
}

@media (min-width: 30em) {
  .brand-mark__icon {
    display: none;
  }

  .brand-mark__horizontal {
    display: block;
  }
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.25rem 0.875rem;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.375rem;
  font-weight: 700;
  font-size: var(--font-size-small);
  color: var(--color-ink);
  text-decoration: none;
}

/* Red pen as decoration, ink as text — the text itself stays on the ink/paper contrast pair
   (verified 4.5:1+) at every state; hover/focus is signalled by the brand's own red-pen
   underline device, never by recoloring 15px bold text into red-pen-on-paper (4.06:1, below
   WCAG AA's 4.5:1 for text this size, per CLAUDE.md §5.2's own "verify red pen on paper before
   using it for small text; prefer ink"). */
.site-nav__link:hover,
.site-nav__link:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--color-red-pen);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

/* Call-to-action hierarchy, shared by the header and footer so both read as
   the same three-tier set: Start a Project (primary, filled red), Pitch Us
   (secondary, visibly distinct, never a second primary) and Talk with us
   (persistent, low-emphasis text link). */
.site-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.75rem;
}

/* Red pen as decoration, ink as text — same contrast reasoning as
   .site-nav__link and .site-footer__contact a above (CLAUDE.md §5.2). */
.site-actions__talk {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.125rem;
  font-weight: 700;
  font-size: var(--font-size-small);
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-rule);
  text-underline-offset: 0.15em;
}

.site-actions__talk:hover,
.site-actions__talk:focus-visible {
  text-decoration-color: var(--color-red-pen);
}

/* The header and footer CTA buttons reuse .cta/.cta--primary (BRAND_SYSTEM.md
   §5.1's "red pen... the primary CTA, nothing else") at a size that fits a
   persistent nav bar rather than the larger, page-content CTA elsewhere. */
.site-header .cta,
.site-footer .cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  font-size: var(--font-size-small);
}

/* Secondary CTA (Pitch Us): visibly distinct from the primary, never a
   second filled-red control — red stays scarce (BRAND_SYSTEM.md §5.3). */
.cta--secondary {
  background: transparent;
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
}

/* The border above adds height on top of .site-header/.site-footer .cta's padding,
   so without this, Pitch Us renders taller than Start a Project and Talk with us —
   shifting the row's cross-axis centering off-pixel. Trim the block padding by the
   border width so all three site-actions controls land on the same 44px row height. */
.site-header .cta--secondary,
.site-footer .cta--secondary {
  padding-block: calc(0.6rem - 2px);
}

.cta--secondary:hover,
.cta--secondary:focus-visible {
  background: var(--color-ink);
  color: var(--color-paper);
}

/* Section bands — the light/dark rhythm as the page scrolls. Tokens only,
   no new colors: paper (default), paper-deep, and ink. */

.band-paper-deep {
  background: var(--color-paper-deep);
}

.band-ink {
  background: var(--color-ink);
  color: var(--color-paper);
}

/* Ink mark — a small reused device: a loose, hand-drawn red-pen loop or
   underline, echoing the brand's own "red pen" editorial mark (approved
   palette, BRAND_SYSTEM.md §5.1). Used twice on this page: once around the
   primary CTA, once under "The deal". It is a single decorative flourish,
   not a systematic annotation language (that remains reserved/undesigned,
   B-4) — the wrapped content's own text/markup is untouched so it never
   interferes with content assertions or the accessible name. */
.ink-mark {
  position: relative;
  display: inline-block;
}

.ink-mark--center {
  display: block;
  text-align: center;
}

.ink-mark__ink {
  position: absolute;
  color: var(--color-red-pen);
  pointer-events: none;
  overflow: visible;
}

.ink-mark__ink--loop {
  inset: -0.7em -0.9em;
  width: calc(100% + 1.8em);
  height: calc(100% + 1.4em);
}

.ink-mark__ink--underline {
  left: 50%;
  bottom: -0.35em;
  width: 6.5rem;
  height: 0.9rem;
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: no-preference) {
  .cta--primary {
    transition: transform 0.15s ease;
  }

  .cta--primary:hover {
    transform: translateY(-1px);
  }
}

/* Home page */

.hero {
  padding-block: 2rem 3rem;
}

.hero__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.hero__mark {
  width: min(58vw, 240px);
  height: auto;
  margin-inline: auto;
  transform: rotate(-4deg);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero__content h1 {
  font-size: clamp(2.25rem, 1.45rem + 3.6vw, 4rem);
  max-width: 16ch;
}

@media (min-width: 60em) {
  .hero {
    padding-block: 3.5rem 4.5rem;
  }

  .hero__wrap {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    text-align: left;
  }

  .hero__mark {
    width: min(26vw, 320px);
    flex-shrink: 0;
    transform: rotate(-2deg);
  }

  .hero__content {
    align-items: flex-start;
    max-width: 34rem;
  }

  .hero__content h1 {
    max-width: none;
  }

  .hero__qualifier {
    max-width: none;
  }
}

.hero__qualifier {
  font-size: var(--font-size-subheading);
  font-weight: 700;
  color: var(--color-ink-70);
  max-width: 28ch;
}

.cta {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--font-size-body);
  padding: 1rem 2rem;
  border-radius: 4px;
  position: relative;
}

.cta--primary {
  background: var(--color-red-pen);
  color: var(--color-white);
}

.cta--primary:hover {
  opacity: 0.9;
}

.section {
  padding-block: 3.5rem;
}

.section h2 {
  font-size: var(--font-size-section-heading);
  font-weight: 700;
  letter-spacing: var(--heading-tracking);
  margin-block-end: 1rem;
}

.lede {
  font-size: var(--font-size-subheading);
}

/* Two paths — Start a Project is the dominant control (filled red button,
   red accent border); Pitch Us is visibly secondary (outlined button, muted
   background, ink accent border), never a second primary (BRAND_SYSTEM.md
   §5.3; WEBSITE_BRIEF.md §5). */
.paths {
  display: grid;
  gap: 1.5rem;
  margin-block-start: 0.5rem;
}

@media (min-width: 48em) {
  .paths {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
  }

  /* The home and Talk pages show exactly two paths (Start a Project,
     Pitch Us) and keep the original asymmetric, dominant-primary layout.
     Pricing reuses .paths for four reference-point plans and stays on the
     plain even grid above/below instead (R10 review: reusing the two-card
     tilt treatment on four cards made three plans sit flat and one tilt,
     which read as accidental rather than designed). */
  .paths--pair {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* Pricing's four reference-point plans are the only .paths use with more
   than two cards; everything else (home, Talk, Pitch Us' Build/Operate
   Mode) is exactly two and stays on the repeat(2, 1fr)/--pair rules above. */
@media (min-width: 64em) {
  .paths--grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.path {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-rule);
  border-top: 4px solid var(--color-ink);
  border-radius: 6px;
  padding: 2rem 1.75rem;
}

.path h3 {
  font-size: var(--font-size-subheading);
  font-weight: 700;
}

.path p {
  flex-grow: 1;
  color: var(--color-ink-70);
}

.path .cta {
  align-self: flex-start;
}

.path--primary {
  border-top-color: var(--color-red-pen);
}

.path--secondary {
  background: var(--color-paper-deep);
}

.path__mark {
  width: 2.75rem;
  height: auto;
}

@media (min-width: 48em) {
  .paths--pair .path--primary {
    transform: rotate(-0.5deg);
  }

  .paths--pair .path--secondary {
    transform: rotate(0.5deg);
  }
}

/* What we build — the loop, in plain customer language rather than a
   factory diagram (CLAUDE.md §3.1). */
.loop {
  list-style: none;
  padding-inline-start: 0;
  margin-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  font-weight: 700;
}

.loop li {
  max-width: none;
  padding: 0.5rem 0.9rem;
  background: var(--color-white);
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  font-size: var(--font-size-small);
}

.loop li:not(:last-child)::after {
  content: "\2192";
  display: inline-block;
  margin-inline: 0.6rem;
  color: var(--color-ink-45);
  font-weight: 400;
}

/* Numbered step sequences — How it works' journey and Pitch Us' selective
   process reused plain <ol><li><h3><p> markup with no styling of its own
   (default browser numerals, unstyled nested headings), the one clear
   "default component styling" gap the R10 review found across the interior
   pages. A plain numbered badge and hairline dividers match the site's
   existing rule/ink vocabulary without inventing the still-undesigned
   technical annotation system (BRAND_SYSTEM.md §6, B-4). */
.step-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block: 1.5rem;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  max-width: none;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 1rem;
  row-gap: 0.35rem;
  padding-block: 1.5rem;
}

.step-list li:first-child {
  padding-block-start: 0;
}

.step-list li:not(:first-child) {
  border-top: 1px solid var(--color-rule);
}

.step-list li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-small);
  color: var(--color-ink);
}

.step-list h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--font-size-subheading);
  font-weight: 700;
  margin: 0;
}

.step-list p {
  grid-column: 2;
  grid-row: 2;
  color: var(--color-ink-70);
  margin: 0;
}

/* Plain content bullet lists (e.g. Start a Project's "start from what you
   have") — the same dash marker already used by .not-list, kept in muted
   ink rather than red pen because this version sits on paper, not ink, and
   a decorative dash this size is adjacent to small body text (CLAUDE.md
   §5.2: verify red pen on paper before small text; prefer ink). */
.content-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.content-list li {
  position: relative;
  padding-inline-start: 1.5rem;
}

.content-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--color-ink-45);
  font-weight: 700;
}

/* Trust strip — principle-level statements only, no contract language
   (CLAUDE.md §3; WEBSITE_BRIEF.md Tier 6). A row of short, equal-weight
   statements rather than a card, so it reads as a strip of fact, not a
   sales pitch. */
.trust-strip {
  list-style: none;
  padding-inline-start: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

.trust-strip li {
  max-width: none;
  font-weight: 700;
}

@media (min-width: 48em) {
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .trust-strip li {
    padding-inline: 1.5rem;
    border-inline-start: 1px solid var(--color-rule);
  }

  .trust-strip li:first-child {
    border-inline-start: none;
  }
}

/* Low-emphasis "in brief" links through to the detail pages — body-weight
   text, never styled as a button, so they never compete with the primary
   CTA (WEBSITE_BRIEF.md §5). */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-rule);
  text-underline-offset: 0.15em;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: var(--color-red-pen);
}

/* What Ugly Baby Labs isn't — the dark beat. Refined, not heavy: one ink
   band, restrained red-pen accents, no extra ornament. List items read as
   struck through, like items crossed off a checklist. */
.section--not__wrap {
  position: relative;
}

.section--not__mark {
  position: absolute;
  top: 0;
  right: 0;
  width: 4.5rem;
  height: auto;
  opacity: 0.9;
}

.band-ink .not-list {
  display: grid;
  gap: 0.75rem 2rem;
  padding-inline-start: 0;
  list-style: none;
  margin-block-end: 0;
  max-width: none;
}

@media (min-width: 40em) {
  .band-ink .not-list {
    grid-template-columns: 1fr 1fr;
  }
}

.not-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  max-width: none;
  text-decoration: line-through;
  text-decoration-color: var(--color-red-pen-on-ink);
  text-decoration-thickness: 0.1em;
  text-decoration-skip-ink: none;
}

.not-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--color-red-pen-on-ink);
  font-weight: 700;
  text-decoration: none;
}

/* Closing CTA — a deliberate card rather than a trailing paragraph,
   echoing the hero's own primary control. */
.section--cta {
  text-align: center;
}

.cta-card {
  max-width: 32rem;
  margin-inline: auto;
  background: var(--color-white);
  border: 1px solid var(--color-rule);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transform: rotate(0.4deg);
}

.cta-card__mark {
  margin-inline: auto;
  margin-block-end: 1rem;
}

.section--cta p {
  color: var(--color-ink-70);
  margin-inline: auto;
}
