/* Services&Co · site.css
   Brand Guidelines 20260916
   #1 the name is the logo · #2 Inter only: Light, Regular, Medium · #3 Ink, Paper, Graphite
   #5 simple and true. When in doubt, choose the quieter option. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: fallback;
}

:root {
  color-scheme: light;

  --ink: #0D0D0D;
  --paper: #FFFFFF;
  --graphite: #6E6E6E;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Spacing: multiples of 8 */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --gutter: clamp(20px, 4.4vw, 64px);
  --section: clamp(64px, 8.9vw, 128px);
  --measure: 28em; /* in em so the line length holds as the type scales: 56 to 63 characters */
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
h1, h2, h3, p, ul, li, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
b, strong { font-weight: 500; }
i, em, cite, address, dfn { font-style: normal; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Accessibility */
.skip {
  position: absolute; left: var(--gutter); top: -120px; z-index: 10;
  padding: var(--s1) 0; background: var(--paper); color: var(--ink);
}
.skip:focus { top: var(--s2); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Links: underlined, in the text colour */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: var(--graphite);
  transition: text-decoration-color 220ms cubic-bezier(.16, 1, .3, 1);
}
a:hover { text-decoration-color: currentColor; }

/* Frame */
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
main { flex: 1; }

/* Header: the name, an ink rule beneath */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; min-height: 92px; }
.logotype {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 17px; font-weight: 500; line-height: 1; white-space: nowrap;
  text-decoration: none; color: var(--ink);
}

/* Type. Tracking follows Inter's own curve: tighter as size grows, never crowded. */
.display {
  font-size: clamp(48px, 7.2vw, 104px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-left: -0.05em; /* optical: the round G sits inside the edge; this lines it up with the text below */
  text-wrap: balance;
}
.lead {
  max-width: var(--measure);
  font-size: clamp(18px, 1.46vw, 21px);
  letter-spacing: -0.015em;
  line-height: 1.5;
  text-wrap: pretty;
}
.statement {
  max-width: 22em;
  font-size: clamp(28px, 3.06vw, 44px);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-wrap: balance;
}
.statement span { display: block; }

/* Home: cover */
.cover { padding-block: clamp(80px, 10vw, 144px) var(--section); }
.cover .lead { margin-top: var(--s5); }

/* Home: sections open with a label, a meta and an ink rule */
.section { padding-bottom: var(--section); }
.head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--ink);
  font-size: 14px; line-height: 1.4;
}
.head h2 { font-size: 14px; font-weight: 500; }
.head span { color: var(--graphite); text-align: right; }

.section .statement { margin-top: var(--s4); }
.section .lead { margin-top: var(--s3); }

/* Home: why firms join */
.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5);
  padding-top: var(--s4);
}
.points h3 {
  font-size: clamp(24px, 1.95vw, 28px);
  font-weight: 300;
  letter-spacing: -0.019em;
  line-height: 1.2;
  text-wrap: balance;
}
.points p { margin-top: var(--s2); max-width: 17.5em; color: var(--graphite); text-wrap: balance; }

/* Home: contact */
.email {
  display: inline-block;
  margin-top: 40px;
  padding-block: var(--s1);
  font-size: clamp(18px, 1.46vw, 21px);
  letter-spacing: -0.015em;
  line-height: 1.5;
}

/* Footer: the legal statement */
.site-footer { border-top: 1px solid var(--graphite); }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s1) var(--s3);
  padding-block: var(--s2);
  font-size: 13.5px; line-height: 1.55; color: var(--graphite);
}
.site-footer .legal span { white-space: nowrap; }
.site-footer .legal .sep,
.site-footer .legal .addr { white-space: normal; }
.site-footer a { display: inline-block; padding-block: 12px; color: var(--graphite); white-space: nowrap; }

/* Long-form pages: privacy notice, 404 */
.doc { padding-block: clamp(48px, 6.7vw, 96px) var(--section); }
.doc .inner { max-width: 66ch; }
.doc h1 { font-size: clamp(34px, 3.9vw, 56px); font-weight: 300; letter-spacing: -0.024em; line-height: 1.1; text-wrap: balance; }
.doc .meta { margin-top: var(--s2); font-size: 13.5px; color: var(--graphite); }
.doc .intro { margin-top: var(--s5); font-size: 18px; line-height: 1.55; letter-spacing: -0.01em; }
.doc section { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--ink); }
.doc h2 { margin-bottom: var(--s2); font-size: clamp(19px, 1.67vw, 24px); font-weight: 500; letter-spacing: -0.018em; line-height: 1.3; text-wrap: balance; }
.doc p, .doc li { text-wrap: pretty; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: var(--s2); }
.doc li { padding-block: var(--s1); border-bottom: 1px solid var(--graphite); }
.doc li:first-child { border-top: 1px solid var(--graphite); }
.doc li strong { display: block; }

/* Tablet */
@media (max-width: 1024px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 0; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s5); }
}

/* Tablet, narrow: the legal line sets on two lines, company and address, then registration */
@media (min-width: 601px) and (max-width: 900px) {
  .site-footer .legal .sep:nth-child(4) { display: block; height: 0; overflow: hidden; }
}

/* Mobile */
@media (max-width: 600px) {
  .site-header .wrap { min-height: 68px; }
  .cover .lead { margin-top: var(--s3); }
  .section .statement { margin-top: var(--s3); }
  .section .lead { margin-top: var(--s2); }
  .points { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .points > div { padding-block: var(--s3); border-bottom: 1px solid var(--graphite); }
  .points > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .points p { margin-top: var(--s1); max-width: none; }
  .email { margin-top: var(--s3); }
  .site-footer .legal > span { display: block; }
  .site-footer .legal .sep { display: none; }
}
