/* Kihon: one page, paper and ink, one accent. */

@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/InstrumentSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/InstrumentSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/InstrumentSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/SourceSerif4-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); }

:root {
  --paper: #EDE8DE;
  --panel: #E4DED1;
  --ink: #191714;
  --stone: #57503F;
  --cinnabar: #A93826;
  --hairline: #C4BBA7;

  --sans: "Instrument Sans", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;

  --gutter: clamp(24px, 5vw, 72px);
  --rule: 6px;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p, h1, h2 { margin: 0; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

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

/* Column */
.page {
  max-width: 1100px;
  padding: clamp(56px, 6vw, 88px) var(--gutter) clamp(40px, 4.5vw, 64px);
}

/* Section heads, all Instrument Sans 500 at 22px */
h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Dividers: the mark's base bar spanning the text column */
.services, .decide, .contact {
  border-top: var(--rule) solid var(--ink);
  padding-top: clamp(40px, 4vw, 56px);
}

/* 1. Opening */
.lockup {
  position: relative;
  display: inline-block;
  font-family: var(--sans);
  font-size: clamp(40px, 4.4vw, 64px);
  padding-bottom: 0.40em;
  max-width: 100%;
}
.lockup .word {
  display: block;
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1;
  margin-right: -0.26em;
  text-transform: uppercase;
}
.lockup .bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.17em;
  display: block;
}
.lockup .bar path { fill: var(--ink); }

.lead {
  font-size: 24px;
  line-height: 1.5;
  max-width: 36ch;
  margin-top: clamp(72px, 8vw, 120px);
  margin-bottom: clamp(72px, 8vw, 120px);
}

/* 2. Two services, equal weight, side by side */
.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 72px;
  margin-bottom: clamp(72px, 7.5vw, 112px);
}
.service h2 { margin-bottom: 20px; }
.service p { max-width: 62ch; }

/* 3. How we decide */
.decide { margin-bottom: clamp(72px, 7.5vw, 112px); }
.decide h2 { margin-bottom: 20px; }
.decide p { max-width: 64ch; }
.decide p + p { margin-top: 4px; }

/* 4. Contact. The one cinnabar element on the page. */
.contact .accent {
  font-weight: 600;
  font-size: clamp(32px, 2.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cinnabar);
}
.contact .accent + p { margin-top: clamp(32px, 2.8vw, 40px); }
.contact .button {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  text-decoration: none;
}
.contact .button:hover { background: var(--ink); color: var(--paper); }

/* 5. Foot. The base bar as the foot rule. */
.foot {
  margin-top: clamp(96px, 11vw, 160px);
  border-top: var(--rule) solid var(--ink);
  padding-top: 16px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Narrow screens: the services stack, Build your team first */
@media (max-width: 720px) {
  .services { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .service h2, .decide h2 { margin-bottom: 16px; }
  .decide p + p { margin-top: 8px; }
  .contact .button { margin-top: 24px; }
}
@media (max-width: 520px) {
  :root { --rule: 5px; }
}
