/* evensoft.co.za. A specification sheet: section names in a left column, entries ruled off on the right.
   The one decorative element is the spirit level in the hero. No web fonts, no images, no JavaScript. */

:root {
  --paper: #f5f7f6;
  --ink: #10262b;
  --muted: #45595e;
  --rule: #10262b;
  --faint: #c9d4d5;
  --accent: #0b6b57;
  --accent-ink: #ffffff;
  --fluid: #d3e8df;
  --sans: system-ui, -apple-system, "Segoe UI", Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #132327;
    --ink: #e5eeec;
    --muted: #a6b8b9;
    --rule: #e5eeec;
    --faint: #2f474c;
    --accent: #6fd0b0;
    --accent-ink: #0d1f22;
    --fluid: #1f3e3a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
}

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.25rem 0.5rem; z-index: 1; }

.bar, main, .foot { max-width: 64rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.wordmark { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.bar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; }
.bar nav a { color: var(--ink); text-decoration: none; }
.bar nav a:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 3.5rem 0 4.5rem; max-width: 46rem; }
.level { display: block; width: min(20rem, 100%); height: auto; margin-bottom: 2.5rem; overflow: visible; }
.level .vial { fill: var(--fluid); stroke: var(--rule); stroke-width: 1.5; }
.level .mark { stroke: var(--rule); stroke-width: 1.5; }
.level .bubble { fill: var(--paper); stroke: var(--rule); stroke-width: 1.5; animation: settle 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes settle {
  0% { transform: translateX(-70px); }
  55% { transform: translateX(9px); }
  80% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 1.5rem; max-width: 16ch; }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--muted); max-width: 38rem; margin: 0 0 2rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: 3px;
}
.button:hover { text-decoration: underline; }

/* Specification sheet */
.sheet {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  column-gap: 2rem;
  border-top: 1.5px solid var(--rule);
  padding: 1.25rem 0 3rem;
}
.sheet h2 { font-size: 1.05rem; font-weight: 700; margin: 0.15rem 0 1rem; letter-spacing: -0.01em; }
.sheet dl { margin: 0; }
.sheet dl > div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  column-gap: 2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--faint);
}
.sheet dl > div:first-child { padding-top: 0; }
.sheet dt { font-weight: 600; }
.sheet dd { margin: 0; color: var(--muted); max-width: 36rem; }
.when { display: block; font-size: 0.9rem; font-variant-numeric: tabular-nums; margin-top: 0.2rem; }
.contact p { margin: 0 0 1.25rem; max-width: 36rem; }

@media (max-width: 960px) {
  .sheet { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sheet dl > div { grid-template-columns: minmax(0, 1fr); }
  .sheet dd { margin-top: 0.25rem; }
  .hero { padding: 2rem 0 3rem; }
}

/* Text pages */
.prose { max-width: 40rem; padding: 2rem 0 4rem; }
.prose h1 { font-size: 2.2rem; }
.prose p { margin: 0 0 1.1rem; }

.foot {
  border-top: 1.5px solid var(--rule);
  padding-top: 1.25rem;
  padding-bottom: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.foot p { margin: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .level .bubble { animation: none; }
}

@media print {
  .bar nav, .skip, .cta, .level { display: none; }
  body { background: #fff; color: #000; }
}
