:root {
  --signal-orange: #E8501A;
  --deep-orange: #B23A0C;
  --ink: #1A1A1A;
  --warm-grey: #4A4640;
  --bone: #F5F1EA;
  --sand: #EAE5DC;
  --line: #D9D2C5;

  --font-head: "Sora", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  --container: 1120px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--warm-grey);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--deep-orange); }

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

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 16px; }

/* Brand lockup: name to the right, vertically centred, gap >= half the logo width */
.brand {
  display: inline-flex; align-items: center; gap: 22px;
  text-decoration: none;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.eyebrow {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-orange);
  margin-bottom: 0.9em;
}
.eyebrow-on-dark { color: var(--signal-orange); }

.lead { font-size: 1.15rem; max-width: 40em; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; transition: background-color .15s, color .15s, border-color .15s;
}
/* Ink on Signal Orange is 4.6:1; Bone on Signal Orange is large-text only */
.button-primary { background: var(--signal-orange); color: var(--ink); }
.button-primary:hover { background: var(--ink); color: var(--bone); }
.section-ink .button-primary:hover { background: var(--bone); color: var(--ink); }
.button-ghost { border-color: var(--ink); color: var(--ink); }
.button-ghost:hover { background: var(--ink); color: var(--bone); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 234, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.button) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.site-nav a:not(.button):hover { color: var(--deep-orange); }
.site-nav .button { padding: 10px 18px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 12px; cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block; width: 24px; height: 2px; background: var(--ink); position: relative;
  transition: transform .2s, background-color .2s;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 96px 0 112px; }
.hero-inner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center;
}
.hero .accent { color: var(--signal-orange); } /* large text: 3.3:1 on Bone is allowed */
.hero-mark { display: flex; justify-content: center; }
.hero-mark img { width: min(360px, 100%); height: auto; padding: 8%; }

/* Sections */
.section { padding: 104px 0; }
.section-ink { background: var(--ink); color: var(--bone); }
.section-ink h2, .section-ink h3 { color: var(--bone); }
.section-head { margin-bottom: 56px; }

.section-ink .lead { color: #D8D2C8; }

/* Products */
.products {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.product-card {
  border: 1px solid #3A3833; border-radius: var(--radius);
  padding: 36px 32px;
  display: flex; flex-direction: column;
}
.product-card h3 { font-size: 1.75rem; font-weight: 700; margin: 0; }
.product-card p { color: #D8D2C8; margin: 0; }
.product-card .product-tag {
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--signal-orange); margin-bottom: 18px;
}
.product-card .product-by { color: var(--bone); font-weight: 600; margin: 4px 0 18px; }
.product-card .product-status {
  margin-top: auto; padding-top: 28px; color: var(--signal-orange); font-weight: 600;
}
.product-card-next { border-style: dashed; }
.product-card:only-child { grid-column: 1 / -1; }
.product-card-next h3 { margin-bottom: 18px; }

/* About */
.company {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start;
  margin-bottom: 72px;
}
.company h2 { margin-bottom: 0; }
.principles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.principles li { border-top: 2px solid var(--ink); padding-top: 20px; }
.principles p { margin: 0; }

/* Contact */
.signup {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.contact-mark { width: 112px; height: auto; margin-bottom: 32px; }
.contact-form {
  display: grid; gap: 18px;
  background: #242321; border: 1px solid #3A3833; border-radius: var(--radius);
  padding: 32px;
}
.contact-form label { display: grid; gap: 6px; }
.contact-form span { font-weight: 600; font-size: 0.95rem; color: var(--bone); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; color: var(--ink); background: var(--bone);
  border: 2px solid transparent; border-radius: 8px; padding: 11px 14px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--signal-orange);
}
.contact-form .button { margin-top: 8px; cursor: pointer; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-tagline { margin: 0; color: var(--ink); font-weight: 600; }
.legal { margin: 0; font-size: 0.9rem; }
.legal a { color: var(--ink); font-weight: 600; text-decoration: none; }
.legal a:hover, .legal a[aria-current="page"] { color: var(--deep-orange); }

/* Error pages */
.error-body { min-height: 100vh; display: flex; flex-direction: column; }
.error-page { flex: 1; display: flex; align-items: center; padding: 80px 0; }
.error-inner { text-align: center; }
.error-mark { width: 120px; height: auto; margin: 0 auto 40px; }
.error-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.error-page .lead { margin-inline: auto; max-width: 32em; }
.error-page .actions { justify-content: center; }

/* Privacy policy */
.legal-page { padding: 88px 0 104px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 0.3em; }
.prose h2 { font-size: 1.4rem; margin: 2.2em 0 0.6em; }
.prose .updated { font-size: 0.95rem; margin-bottom: 2em; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }

/* Responsive */
@media (max-width: 960px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .signup, .company { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bone); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.button) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .button { margin-top: 16px; }

  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-mark { order: -1; justify-content: flex-start; }
  .hero-mark img { width: 160px; padding: 0; }

  .section { padding: 72px 0; }
  .legal-page { padding: 56px 0 72px; }
  .products, .principles { grid-template-columns: 1fr; }
  .company { margin-bottom: 48px; }
  .contact-form { padding: 24px; }
  .contact-mark { width: 96px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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