/* Olexyn Systems LLC: company site. One stylesheet, no build step.
   Palette: warm paper, ink, one oxide accent for the links a reviewer needs.
   Type: system serif for the legal name and titles, system sans for the rest. */

:root {
  color-scheme: light dark;
  --paper: #f5f3ee;
  --ink: #1c1b18;
  --muted: #5f5b53;
  --rule: #d9d5cc;
  --accent: #8c3d1c;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171613;
    --ink: #ebe8e1;
    --muted: #a7a297;
    --rule: #34322d;
    --accent: #e3a37c;
  }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1100px) {
  :root { --gutter: 48px; }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin-inline: auto;
}

/* Links: accent only where the link leaves the page (email, product, legal cross-links).
   Header and footer links stay ink so the accent keeps its meaning. */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip:focus {
  top: 0.5rem;
}

/* Header */
.site-header {
  padding-block: 1rem;
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.5rem;
}

.wordmark:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--muted);
}

.lang,
.site-footer a {
  color: var(--ink);
  text-decoration-color: var(--rule);
}

.lang:hover,
.site-footer a:hover {
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
}

.lang {
  font-size: 0.9375rem;
  display: inline-block;
  padding-block: 0.625rem;
}

/* Main */
main {
  flex: 1;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

/* Home: intro on the left, the record on the right. The record is the focal point
   on desktop because verification is a fact-matching task; on phones it stacks. */
.home {
  display: grid;
  gap: 3rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.45;
  max-width: 34ch;
  margin: 0 0 1.5rem;
}

.note {
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
}

.label {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.record dl {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.record .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.125rem 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.record dt {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

.record dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.product {
  margin-top: 0.5rem;
}

.product-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.product p {
  margin: 0 0 0.75rem;
  max-width: 48ch;
}

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

@media (min-width: 560px) {
  .record .row {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}

@media (min-width: 880px) {
  .home {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 8vw, 7rem);
    row-gap: 3rem;
    align-items: start;
  }

  .intro {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .record,
  .product {
    grid-column: 2;
  }

  .product {
    margin-top: 0;
  }
}

/* Legal pages and 404: a single measure of prose */
.doc {
  max-width: var(--measure);
}

.doc h1 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  margin-bottom: 0.5rem;
}

.doc .meta {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 2.5rem;
}

.doc h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 2.25rem 0 0.625rem;
}

.doc p {
  margin: 0 0 1rem;
}

.doc .alt {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.site-footer p {
  margin: 0;
  padding-block: 0.625rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.site-footer nav a {
  display: inline-block;
  padding-block: 0.625rem;
}
