:root {
  --ink: #0F1B2D;
  --doorlight: #E8A33D;       /* logo wedge, decorative accents, text on ink */
  --doorlight-deep: #925E11;  /* small text on white or paper only */
  --paper: #EEF0F2;
  --white: #FFFFFF;
  --font-display: 'Sora', sans-serif;
  --font-text: 'IBM Plex Sans', sans-serif;
}

/* sora-latin-600-normal */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/sora-latin-600-normal.woff2) format('woff2');
}
/* ibm-plex-sans-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');
}
/* ibm-plex-sans-latin-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2');
}

/* Site styles. Colors and fonts come only from brand-tokens.css variables. */

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin: 0; }

a { color: var(--doorlight-deep); text-underline-offset: 0.2em; }

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

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
}

.prose { max-width: 65ch; }

/* Logo: the SVGs already carry more than one pillar width of clear space.
   The mark alone has less, so it gets extra margin when it is shown. */
.site-header { padding-block: 1rem; }
.site-header picture { display: block; width: max-content; }
@media (max-width: 319px) {
  .site-header .logo { margin: 4px; }
}
@media (min-width: 768px) {
  .site-header .logo { width: 240px; }
}

/* Hero, on Ink */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 10vw, 6rem) clamp(2rem, 6vw, 3.5rem);
}
.eyebrow {
  color: var(--doorlight);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 8vw, 4.25rem);
  line-height: 1.1;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}
.subhead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  max-width: 40ch;
  margin-bottom: 2rem;
}
.button {
  display: inline-block;
  background: var(--doorlight);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: background-color 150ms ease;
}
.button:hover { background: var(--paper); }

.motif { width: 100%; max-width: 560px; margin-top: clamp(2.5rem, 7vw, 4rem); }

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 5rem); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--paper); }

.hero :focus-visible,
.section--ink :focus-visible,
.site-footer :focus-visible { outline-color: var(--doorlight); }

.divider .motif { margin: 0 auto; padding-block: 0 clamp(2rem, 5vw, 3rem); }

/* What we do */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.card {
  background: var(--paper);
  border-top: 4px solid var(--doorlight);
  padding: 1.5rem;
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--doorlight-deep);
}
.step h3 { margin-top: 0.3rem; }

/* Operations walkthrough */
/* Same measure as .prose so the video lines up with the paragraph above it */
.walkthrough { margin: clamp(2rem, 5vw, 3rem) 0 0; max-width: 65ch; }
.walkthrough video {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
  background: var(--ink);
}
.walkthrough figcaption { margin-top: 1rem; }
.section--ink a { color: var(--doorlight); }

/* Contact */
.contact-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration-color: var(--doorlight);
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}
.contact-link:hover { color: var(--doorlight-deep); }

/* Footer, on Ink */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 2rem;
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* 404 page: the hero fills the space between header and footer */
.not-found { min-height: 100vh; display: flex; flex-direction: column; }
.not-found main { flex: 1; }
