/* Base elements, buttons, utilities. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 350;
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
:where(ul[role='list'], ol[role='list']) { list-style: none; padding: 0; } /* zero specificity so .wrap padding wins */
strong, b { font-weight: 600; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--orange-deep); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Type roles ---------- */

.h-section {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-card {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}
.h-card a { text-decoration: none; }
.h-step {
  font-size: var(--text-md);
  font-weight: 550;
  line-height: var(--leading-snug);
}
.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.6em 1.15em;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 52px; padding: 0.8em 1.5em; font-size: var(--text-md); }

.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #FF8F2B; color: var(--ink); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-quiet { color: var(--ink); background: transparent; padding-inline: 0.7em; }
.btn-quiet:hover { background: rgba(16, 24, 21, .06); color: var(--ink); }

.btn-onimage { border-color: rgba(255, 255, 255, .85); color: var(--white); background: rgba(16, 24, 21, .18); }
.btn-onimage:hover { background: var(--white); color: var(--ink); }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* Strong text link: the quieter secondary action in a section. */
.link-strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.link-strong:hover { color: var(--orange-deep); }

/* ---------- Mockup placeholders ---------- */
/* Unverified content is wrapped in .ph. Highlighting can be switched off in the mockup bar. */

.ph {
  background: rgba(255, 121, 0, .14);
  outline: 1.5px dashed rgba(168, 74, 0, .55);
  outline-offset: 1px;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ph-off .ph { background: none; outline: 0; }

/* A whole block of sample content (e.g. projects). */
.ph-block { position: relative; outline: 1.5px dashed rgba(168, 74, 0, .55); outline-offset: 14px; }
.ph-block::before {
  content: attr(data-ph-label);
  position: absolute; top: -26px; left: 0;
  padding: 2px 8px;
  background: var(--orange-tint); color: var(--orange-deep);
  font-size: 12px; font-weight: 500;
  border-radius: 2px;
}
.ph-off .ph-block { outline: 0; }
.ph-off .ph-block::before { display: none; }
