/* Kelpas — house palette only, plus a functional error red. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/source-serif-4-500.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-600.woff2") format("woff2");
}

:root {
  --ink: #121a26;
  --brass: #c19a5b;
  --slate: #3a4f63;
  --paper: #f4f1ea;
  --danger: #7a2e2e;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --wrap: 1120px;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 28%, transparent);
  --raised: color-mix(in srgb, white 42%, var(--paper));
  --band: color-mix(in srgb, var(--ink) 4%, var(--paper));
  --focus: 2px solid var(--brass);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: auto;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--slate);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus {
  outline: none;
}

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

::selection {
  background: color-mix(in srgb, var(--brass) 55%, white);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 0.9rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--brass);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 6.5rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  height: 5.4rem;
  width: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

body.nav-open .nav-toggle-bars {
  background: transparent;
}

body.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--brass);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.nav-cta:hover,
.nav-cta[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--brass);
  flex: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.75fr);
  gap: 3.5rem;
  align-items: end;
  padding: 4.25rem 0 3.75rem;
}

.hero h1,
.page-title {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 5.2vw, 4.45rem);
  max-width: 12ch;
}

.lede {
  max-width: 38rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}

.muted {
  color: var(--slate);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.button:hover {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--paper);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.button.ghost:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
}

.button.on-dark {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

.button.on-dark:hover {
  background: color-mix(in srgb, var(--paper) 82%, var(--brass));
  border-color: color-mix(in srgb, var(--paper) 82%, var(--brass));
  color: var(--ink);
}

.index-card {
  border: 1px solid var(--line-strong);
  background: var(--raised);
  padding: 1.15rem 1.25rem 0.35rem;
}

.index-card h2 {
  margin: 0.2rem 0 0.8rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.index-card ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.index-card li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.index-card a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.index-card a:hover {
  text-decoration: underline;
}

.index-num {
  color: var(--brass);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.index-card small {
  display: block;
  margin-top: 0.15rem;
  color: var(--slate);
  font-weight: 400;
}

.band {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section {
  padding: 3.75rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
}

.brand-grid,
.role-grid,
.figure-grid {
  display: grid;
  gap: 1.25rem;
}

.brand-grid {
  grid-template-columns: 1fr 1fr;
}

.brand-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--raised);
  border: 1px solid var(--line);
}

.logo-well {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 17.5rem;
  padding: 2.75rem 2.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

a.logo-well:hover {
  background: color-mix(in srgb, var(--brass) 8%, var(--raised));
}

.card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card-body h3 a:hover {
  text-decoration: underline;
}

.logo-well img {
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 15.5rem;
}

.prose h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.55rem;
}

.logo-sine-wide {
  width: min(36rem, 100%);
  height: auto;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  padding: 1.35rem 1.4rem 1.5rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1.85rem;
}

.card-body p:last-child {
  margin-bottom: 0;
}

.meta-label {
  margin: 0;
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link {
  margin-top: auto;
  color: var(--ink);
  font-weight: 600;
}

.role-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.role {
  padding-top: 0.9rem;
  border-top: 2px solid var(--brass);
}

.role h3 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
}

.cta-band {
  background: var(--ink);
  color: var(--paper);
}

.cta-band .wrap {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.cta-band h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.cta-band p {
  margin: 0;
  max-width: 38rem;
  color: color-mix(in srgb, var(--paper) 88%, var(--brass));
}

.page {
  padding-bottom: 1rem;
}

.page-hero {
  padding: 3.25rem 0 0.5rem;
  max-width: 42rem;
}

.page-title.narrow {
  max-width: none;
}

.prose {
  max-width: 42rem;
  padding-bottom: 1rem;
}

.prose p,
.prose li {
  font-size: 1.06rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.35rem;
  margin: 0 0 1.1rem;
  color: var(--slate);
  font-size: 0.92rem;
}

.crumbs a {
  color: var(--slate);
}

.product-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.7fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.75rem 0 0.5rem;
}

.model {
  margin: 0.15rem 0 0.9rem;
  font-size: clamp(3rem, 6vw, 4.8rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}


.product-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  padding: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.product-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  padding: 2rem;
  background: var(--raised);
  border: 1px solid var(--line);
}

.notice {
  margin: 1.6rem 0 0;
  padding: 1rem 1.15rem 0.15rem;
  border-left: 3px solid var(--brass);
  background: color-mix(in srgb, var(--brass) 14%, var(--paper));
}

.notice strong {
  font-weight: 600;
}

.figure-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

figure {
  margin: 0;
  background: var(--raised);
  border: 1px solid var(--line);
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
}

figcaption {
  padding: 0.8rem 1rem 0.95rem;
  color: var(--slate);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

figcaption span {
  color: var(--ink);
  font-weight: 600;
}

.param {
  margin-top: 1.5rem;
  border: 1px solid var(--ink);
  background: var(--raised);
}

.param h2 {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.param dl {
  margin: 0;
}

.param dl > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--line);
}

.param dl > div:first-child {
  border-top: 0;
}

.param dt {
  font-weight: 600;
  color: var(--slate);
}

.param dd {
  margin: 0;
}

.caption {
  margin: 0.75rem 0 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.brand-hero-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 0 1.5rem;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 36rem) minmax(14rem, 18rem);
  gap: 3rem;
  align-items: start;
  padding: 1.5rem 0 3rem;
}

.form-note {
  color: var(--slate);
  font-size: 0.98rem;
}

form {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--slate) 45%, var(--paper));
  background: white;
  color: var(--ink);
  font: inherit;
  border-radius: 0;
}

.field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: var(--focus);
  outline-offset: 1px;
  border-color: var(--ink);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--danger);
  font-size: 0.92rem;
}

.side-note {
  padding-top: 0.4rem;
  color: var(--slate);
}

.side-note h2 {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
}

.thanks {
  max-width: 36rem;
  padding: 1.4rem 1.35rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--raised);
}

.thanks h2 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding: 2.75rem 0 1.5rem;
}

.footer-logo {
  display: inline-block;
  line-height: 0;
}

.footer-logo img {
  height: 6.4rem;
  width: auto;
}

.site-footer h2 {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.site-footer a {
  color: var(--paper);
  text-decoration-color: color-mix(in srgb, var(--paper) 35%, transparent);
}

.site-footer a:hover {
  color: var(--brass);
}

.fine {
  padding: 1rem 0 1.6rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  font-size: 0.9rem;
}

.fine p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .product-top,
  .form-layout,
  .cta-band .wrap,
  .brand-grid,
  .figure-grid,
  .role-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2rem;
    padding-top: 2.75rem;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .cta-band .wrap {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .logo-well {
    min-height: 14rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .brand img {
    height: 4.3rem;
  }

  .header-bar {
    flex-wrap: wrap;
    min-height: 5.2rem;
  }

  .site-nav {
    display: none;
    flex: 1 0 100%;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 0.35rem 0 0.85rem;
  }

  body.nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 2.9rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin: 0.85rem 0 0.35rem;
    justify-content: center;
    border-radius: 999px;
    border-bottom: 1px solid var(--ink);
  }

  .footer-logo img {
    height: 5.2rem;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.5rem));
  }

  .param dl > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .hero h1,
  .page-title,
  .model {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .cta-band,
  .actions {
    display: none !important;
  }

  body {
    background: white;
  }

  a {
    text-decoration: none;
  }
}
