/* offcut.studio. One sans (Instrument Sans) for everything said, one mono (IBM Plex Mono) for small labels and numbers.
   White paper, near-black ink, and one signal orange: the cut in the wordmark, and the one link to something on sale.
   No text under 13 px (playbook rule 134 i). */

@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(fonts/instrument-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/plex-mono-500.woff2) format("woff2"); }

:root {
  --paper: #ffffff;
  --ink: #111110;
  --ink-2: #4f4f4a;
  --ink-3: #75756f;
  --rule: #e3e3df;
  --stage: #f2f2ef;
  --signal: #ff4d00;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --gap: clamp(16px, 2vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num { font: 500 13px/1 var(--mono); letter-spacing: 0.04em; color: var(--ink-3); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.mark { display: inline-flex; align-items: baseline; gap: 3px; font: 600 26px/1 var(--sans); letter-spacing: -0.045em; text-decoration: none; }
.mark svg { width: 11px; height: 15px; transform: translateY(1px); }
.nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav a { font: 500 15px/1 var(--sans); text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }

/* Hero: who Offcut is, in two lines and one sentence. */
.hero { padding-top: clamp(72px, 10vw, 152px); padding-bottom: clamp(64px, 8vw, 120px); }
.hero h1 { font-weight: 500; font-size: clamp(38px, 8.4vw, 132px); line-height: 0.95; letter-spacing: -0.048em; max-width: 13.5ch; text-wrap: balance; }
.hero .lede { margin-top: clamp(28px, 3vw, 44px); max-width: 30ch; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.35; letter-spacing: -0.012em; color: var(--ink-2); text-wrap: pretty; }

/* The work: each piece shown big, then what it is. */
.case { padding-bottom: clamp(104px, 13vw, 200px); }
.case-media { border-radius: 10px; overflow: hidden; }
.case-media.map { background: #efe7d3; }
.case-media.map img { width: 100%; }
.case-text { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-top: clamp(28px, 3.4vw, 48px); }
.case-title { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 18px; }
.case-title h2 { font-weight: 500; font-size: clamp(28px, 3.5vw, 52px); line-height: 1.04; letter-spacing: -0.036em; text-wrap: balance; }
.case-body { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 28px; padding-top: 30px; }
.case-body p { color: var(--ink-2); text-wrap: pretty; }

.facts { border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.facts dt { font: 500 13px/1.75 var(--mono); color: var(--ink-3); }

.cta { align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 17px; text-decoration: none; padding: 13px 20px 13px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); transition: background-color 0.2s ease; }
.cta span { color: var(--signal); transition: transform 0.2s ease; }
.cta:hover { background: #2a2a28; }
.cta:hover span { transform: translate(2px, -2px); }

/* Sector University: three more frames from the course under the map. */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }

/* Trace: three screens on a stage, stepped. */
.case-media.stage { background: var(--stage); display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(14px, 3.4vw, 56px); padding: clamp(36px, 6vw, 96px) clamp(16px, 4vw, 64px) 0; align-items: start; max-height: clamp(380px, 52vw, 760px); }
.stage img { border-radius: clamp(14px, 2.2vw, 34px); box-shadow: 0 0 0 1px rgba(17, 17, 16, 0.08), 0 40px 60px -36px rgba(17, 17, 16, 0.5); }
.stage img:nth-child(2) { margin-top: 9%; }
.stage img:nth-child(3) { margin-top: 18%; }

/* Apex Academy: words only, on ink, until its pictures come. */
.case.dark { padding-bottom: 0; margin-bottom: clamp(104px, 13vw, 200px); }
.case.dark .wrap { background: var(--ink); color: var(--paper); border-radius: 10px; padding-top: clamp(48px, 7vw, 112px); padding-bottom: clamp(48px, 7vw, 112px); max-width: calc(var(--max) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.case.dark .case-text { padding-top: 0; }
.case.dark .num, .case.dark dt { color: #9c9c95; }
.case.dark .case-body p { color: #c9c9c3; }
.case.dark .facts, .case.dark .facts div { border-color: #33332f; }

/* How we work */
.studio { padding-bottom: clamp(104px, 13vw, 200px); }
.studio h2 { font-weight: 500; font-size: clamp(28px, 3.5vw, 52px); line-height: 1.04; letter-spacing: -0.036em; padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--ink); }
.principles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: p; }
.principles li { counter-increment: p; padding-top: 28px; display: flex; flex-direction: column; gap: 12px; padding-right: clamp(0px, 2vw, 32px); }
.principles li::before { content: "0" counter(p); font: 500 13px/1 var(--mono); color: var(--ink-3); margin-bottom: 10px; }
.principles h3 { font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.025em; }
.principles p { color: var(--ink-2); text-wrap: pretty; }

/* Contact */
.contact { padding-bottom: clamp(88px, 11vw, 160px); }
.contact h2 { font: 500 13px/1 var(--mono); color: var(--ink-3); margin-bottom: 24px; }
.contact a.email { display: inline-block; font-weight: 500; font-size: clamp(36px, 8vw, 128px); line-height: 1; letter-spacing: -0.05em; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.contact a.email:hover { color: var(--signal); border-color: var(--signal); }
.contact p { margin-top: 28px; color: var(--ink-2); max-width: 36ch; }

footer { border-top: 1px solid var(--rule); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px 24px; padding-top: 24px; padding-bottom: 32px; font-size: 14px; color: var(--ink-3); }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* A plain document page (customer help, privacy). */
.doc { max-width: 760px; margin-left: 0; padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(88px, 11vw, 160px); }
.doc h1 { font-weight: 500; font-size: clamp(40px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.045em; }
.doc .intro { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); }
.doc .updated { display: block; margin-top: 16px; font: 500 13px/1.4 var(--mono); color: var(--ink-3); }
.doc h2 { font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.025em; margin: clamp(48px, 6vw, 72px) 0 14px; padding-top: 24px; border-top: 1px solid var(--rule); scroll-margin-top: 24px; text-wrap: balance; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.1em; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }
.doc .terms { margin-top: 18px; }
.doc .code { font: 500 15px/1.4 var(--mono); color: var(--ink); background: var(--stage); padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.doc dl.facts { margin-top: 18px; }
.doc dl.facts div { grid-template-columns: 168px 1fr; font-size: 16px; padding: 12px 0; }
.doc dl.facts dd { color: var(--ink-2); }

@media (max-width: 900px) {
  .case-title, .case-body { grid-column: 1 / -1; }
  .case-body { padding-top: 0; }
  .principles { grid-template-columns: 1fr; }
  .principles li { padding-right: 0; padding-bottom: 8px; }
}
@media (max-width: 640px) {
  .nav { gap: 18px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip img:first-child { grid-column: 1 / -1; }
  .case-media.stage { padding-top: 28px; }
  .case.dark .wrap { border-radius: 8px; }
  .doc dl.facts div { grid-template-columns: 1fr; gap: 2px; }
  footer .wrap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cta, .cta span { transition: none; } }
