@font-face {
  font-family: "Marmusi Sans";
  src: url("/assets/marmusi-sans-400.e16c80a42a.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Marmusi Sans";
  src: url("/assets/marmusi-sans-600.34e04d27d7.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* The colours of the logo: its grey, a darker step of it for text and rules,
     and the two ends of its orange gradient. Orange is an accent only; as text
     on white it would be too faint. */
  --grey: #58595b;
  --dark: #2f3032;
  --orange: #f15a29;
  --orange-light: #fbb040;
  --accent: linear-gradient(90deg, var(--orange-light), var(--orange));
  --ink: #1f2022;
  --ink-soft: #414246;
  --muted: #5f6166;
  --line: #dcdad5;
  --paper: #f6f4ef;
  --focus: #1d4ed8;
  --sans: "Marmusi Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
  text-wrap: balance;
}

p,
dl,
dd,
ul,
ol {
  margin: 0;
}

/* An empty marker instead of "none" keeps the list semantics in Safari. */
ul,
ol {
  padding: 0;
  list-style-type: "";
}

a {
  color: var(--dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

.wrap {
  width: min(100% - 2 * var(--gutter), 70rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: 0.75rem;
  left: -100rem;
  z-index: 1;
  padding: 0.5rem 1rem;
  background: #fff;
}

.skip:focus {
  left: 0.75rem;
}

/* Header */

.header {
  border-bottom: 1px solid var(--line);
}

.header__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-block: 0.875rem;
}

.header__logo {
  padding-block: 0.25rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(0.75rem, 3vw, 2.25rem);
}

.nav a {
  padding-block: 0.5rem;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover {
  border-color: var(--line);
}

.nav a[aria-current="page"] {
  border-color: var(--orange);
}

/* Shared pieces */

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  max-width: 40rem;
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--dark);
  border-radius: 2px;
  background: var(--dark);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  border-color: var(--grey);
  background: var(--grey);
}

.button--ghost {
  background: transparent;
  color: var(--dark);
}

.button--ghost:hover {
  color: #fff;
}

.button--light {
  border-color: #fff;
  background: #fff;
  color: var(--dark);
}

.button--light:hover {
  border-color: var(--paper);
  background: var(--paper);
}

.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
  vertical-align: middle;
  white-space: nowrap;
}

/* On its own line under a reference that is not confirmed yet */
.experience .badge {
  margin: 0.8rem 0 0;
}

.nowrap {
  white-space: nowrap;
}

.note {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Hero and page heads */

.hero,
.head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero__in {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero h1 {
  font-size: clamp(2.375rem, 1.5rem + 3.6vw, 3.875rem);
  letter-spacing: -0.02em;
}

.head .wrap {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.head h1 {
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.125rem);
  letter-spacing: -0.02em;
}

/* Key facts, set like a ledger: a heavy rule on top, hairlines between rows */

/* The heavy rule is a transparent border that shows the gradient of the logo
   painted under it. */
.ledger,
.example {
  border: 1px solid var(--line);
  border-top: 0.375rem solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--accent) border-box;
}

.ledger div {
  display: grid;
  grid-template-columns: 5.75rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.15rem 1.4rem;
}

.ledger div + div {
  border-top: 1px solid var(--line);
}

.ledger dt,
.facts dt {
  font-weight: 600;
  line-height: 1;
  color: var(--dark);
}

.ledger dt {
  font-size: 2.125rem;
}

.ledger dd {
  font-size: 1rem;
  color: var(--ink-soft);
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section--paper {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

/* An illustrative photo across the page, between two sections. The file is a 3:1
   band with its objects in the middle third; wide screens trim the wall above
   and the desk below. */

.photo {
  border-top: 1px solid var(--line);
}

.photo img {
  width: 100%;
  aspect-ratio: 3 / 1;
  max-height: max(22rem, 14vw);
  object-fit: cover;
  object-position: 50% 65%;
}

.title {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  letter-spacing: -0.015em;
}

/* A short bar in the gradient of the logo */
.title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 0.375rem;
  margin-top: 1rem;
  background: var(--accent);
}

.intro {
  max-width: 42rem;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.cards,
.steps,
.reasons,
.examples,
.columns,
.facts {
  display: grid;
  gap: 2.25rem 2.5rem;
  margin-top: 2.75rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.cards--short {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.cards li {
  padding-top: 1.1rem;
  border-top: 2px solid var(--dark);
}

.cards h3,
.steps h3,
.reasons h3,
.columns h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--ink);
}

.cards p,
.steps p,
.reasons p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

.steps {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1;
  color: var(--dark);
}

.reasons {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2rem 4rem;
}

/* Call to action */

.cta {
  --focus: #fff;
  background: var(--dark);
  color: #d9d8d5;
}

.cta__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 3rem;
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
}

.cta h2 {
  max-width: 36rem;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  color: #fff;
}

.cta p {
  max-width: 36rem;
  margin-top: 0.6rem;
}

/* Price list */

/* How a list item is billed, on its own line under the item */
.unit {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

.examples {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 1.5rem;
}

.example {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.4rem;
}

.example h3 {
  font-size: 1.375rem;
}

.example > p {
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.params {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  margin-block: 1.25rem 1.5rem;
  font-size: 0.9375rem;
}

.params dt {
  color: var(--muted);
}

.params dd {
  font-weight: 600;
  text-align: right;
}

/* A sum the way it is written in a ledger: items, then a double rule and the total */
.sum {
  width: 100%;
  margin-top: auto;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.sum th,
.sum td {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  vertical-align: baseline;
}

.sum th {
  padding-right: 1rem;
  font-weight: 400;
  color: var(--ink-soft);
  text-align: left;
}

.sum td {
  text-align: right;
  white-space: nowrap;
}

.sum tfoot th,
.sum tfoot td {
  padding-top: 0.85rem;
  border-top: 4px double var(--dark);
  font-weight: 600;
  color: var(--dark);
}

.sum tfoot td {
  font-size: 1.5rem;
  line-height: 1.1;
}

.columns {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2.5rem 4rem;
}

.list {
  margin-top: 1rem;
}

.intro + .list {
  margin-top: 1.5rem;
}

.list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-top: 1px solid var(--line);
}

.list li::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 0;
  width: 0.7rem;
  height: 0.1875rem;
  background: var(--orange);
}

/* References */

.facts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.facts div {
  padding-top: 1.1rem;
  border-top: 2px solid var(--dark);
}

.facts dt {
  font-size: 2.5rem;
}

.facts dd {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

.experience {
  margin-top: 2.75rem;
}

.experience > li {
  display: grid;
  gap: 1.25rem 3rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
}

.experience h3 {
  font-size: 1.5rem;
}

.experience h3 + p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.experience .list {
  margin-top: 0;
}

.experience .list li:first-child {
  border-top: 0;
}

/* A client's own words in place of the list of tasks. The bar and the text
   stand where the dashes and the text of a list do. */
.quote,
.quote blockquote {
  margin: 0;
}

.quote blockquote {
  padding-left: 1.4125rem;
  border-left: 0.1875rem solid var(--orange);
  font-size: 1.125rem;
}

.quote figcaption {
  margin-top: 1.1rem;
  padding-left: 1.6rem;
  color: var(--muted);
}

.quote strong {
  font-weight: 600;
  color: var(--ink);
}

/* Contact */

.contact {
  display: grid;
  gap: 3rem 4.5rem;
}

.contact__mail {
  display: inline-block;
  margin-top: 2.25rem;
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.75rem;
  margin-top: 1.75rem;
}

.title + .details {
  margin-top: 2.25rem;
}

.details dt {
  color: var(--muted);
}

/* Footer */

/* Light, because the logo exists only for a light background. */
.footer {
  background: var(--paper);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer__in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2rem 3rem;
  padding-block: 3rem 2.25rem;
}

.footer__company {
  font-style: normal;
  line-height: 1.7;
}

.footer strong {
  font-weight: 600;
  color: var(--ink);
}

.footer__nav {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
  align-content: start;
}

.footer__legal {
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 30rem) {
  .nav a {
    font-size: 0.9375rem;
  }
}

@media (min-width: 52rem) {
  .experience > li {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

@media (min-width: 60rem) {
  .hero__in {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

@media print {
  .nav,
  .cta,
  .photo,
  .footer__nav,
  .actions,
  .skip {
    display: none;
  }

  .hero,
  .head,
  .section--paper {
    background: none;
  }

  /* Backgrounds are not printed, so the rules drawn with the gradient become solid. */
  .ledger,
  .example {
    border-top-color: var(--dark);
    background: none;
  }

  .title::after {
    height: 0;
    border-top: 0.375rem solid var(--dark);
    background: none;
  }
}
