/* zithron.com: warm off-white, deep ink navy, one accent. Headings in Manrope (self-hosted,
   SIL Open Font License, /fonts/OFL.txt); body text in the device's own fonts. No outside files. */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The accent: Zithron's own colour. */
  --accent: #0e766c;
  --accent-strong: #0a5a53;
  --accent-ink: #ffffff;
  --accent-soft: #dcefeb;

  --bg: #f7f5f0;
  --bg-soft: #efebe3;
  --surface: #fffdf9;
  --border: #e3ded3;
  --ink: #14213d;
  --text: #1f2534;
  --text-2: #4a5163;
  --muted: #6a7082;
  --footer-bg: #14213d;
  --footer-text: #c9cfdd;
  --footer-muted: #959db2;
  --footer-link: #ffffff;
  --focus: var(--accent);

  --radius: 14px;
  --shadow-1: 0 1px 2px rgb(20 33 61 / 0.06), 0 2px 8px rgb(20 33 61 / 0.05);
  --shadow-2: 0 2px 4px rgb(20 33 61 / 0.06), 0 10px 28px rgb(20 33 61 / 0.09);
  --section: 80px;
  --measure: 65ch;
  --max: 1120px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-head: 'Manrope', var(--font);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4fcfbf;
    --accent-strong: #84e0d4;
    --accent-ink: #04201d;
    --accent-soft: #123130;

    --bg: #0e1424;
    --bg-soft: #121a2d;
    --surface: #161e33;
    --border: #273150;
    --ink: #eef1f8;
    --text: #dde2ec;
    --text-2: #aab2c5;
    --muted: #8a93aa;
    --footer-bg: #0a0f1c;
    --footer-text: #b4bccd;
    --footer-muted: #858ea5;
    --footer-link: #eef1f8;

    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.3), 0 2px 8px rgb(0 0 0 / 0.2);
    --shadow-2: 0 2px 4px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.35);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  /* One continuous underline, not broken under letters like p, y and g. */
  text-decoration-skip-ink: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 750;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p,
li,
dd {
  max-width: var(--measure);
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 10;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* Header and wordmark */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 24px;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
}

.logo::after {
  content: '.';
  color: var(--accent);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.site-header nav ul {
  gap: 0 4px;
}

.site-header nav a {
  text-decoration-skip-ink: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 550;
}

.site-header nav a::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 1px;
  background: transparent;
}

.site-header nav a:hover {
  color: var(--ink);
}

.site-header nav a:hover::after {
  background: var(--border);
}

.site-header nav a[aria-current='page'] {
  color: var(--ink);
}

.site-header nav a[aria-current='page']::after {
  background: var(--accent);
}

/* Sections: one rhythm everywhere */
.hero,
.section,
.band {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.page-head {
  padding-top: var(--section);
  padding-bottom: 8px;
}

.page-head + .section {
  padding-top: 32px;
}

/* Home hero */
.hero {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 0.3em;
}

.eyebrow {
  font-family: var(--font-head);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-2);
  max-width: 36em;
}

.hero .lead {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.5;
  margin: 0;
  max-width: 28em;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 28px 0 0;
  font-weight: 650;
  font-size: 1.05rem;
}

.hero-links a {
  /* Inline, so the words, the space and the arrow share one underline. */
  display: inline-block;
  padding: 8px 0;
}

.hero-art {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  justify-self: end;
}

.hero-art .t-ink {
  fill: var(--ink);
}

.hero-art .t-acc {
  fill: var(--accent);
}

.hero-art .t-acc-2 {
  fill: var(--accent);
  fill-opacity: 0.45;
}

.hero-art .t-soft {
  fill: var(--accent);
  fill-opacity: 0.12;
}

.hero-art .t-line {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
}

.hero-art .t-circle {
  fill: var(--accent);
  fill-opacity: 0.16;
}

.hero-art .t-circle-ink {
  fill: var(--ink);
  fill-opacity: 0.08;
}

@media (prefers-color-scheme: dark) {
  .hero-art .t-ink {
    fill-opacity: 0.7;
  }
}

/* Home content */
.intro p {
  font-size: 1.2rem;
  color: var(--text-2);
}

.section-title {
  margin: 56px 0 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.what {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.what > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 24px;
  border-top: 3px solid var(--accent);
}

.what h3 {
  font-size: 1.15rem;
}

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

.what h3 a span {
  color: var(--accent);
}

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

.what p {
  color: var(--text-2);
  margin: 0;
}

.more {
  margin-top: 20px;
  font-weight: 600;
}

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

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.values h2 {
  font-size: 1.15rem;
}

.values h2::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 16px;
}

.values p {
  color: var(--text-2);
  margin: 0;
}

/* Cards */
.product-card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 32px;
}

.product-card {
  max-width: 760px;
}

.product-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.product-card-head h2,
.product-card-head h3 {
  margin: 0;
}

.product-card-head .badge {
  margin-left: auto;
}

.product-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--ink);
}

.product-mark-hushkin {
  background: #4c5a9c;
}

.product-kind {
  margin: 0;
  color: var(--muted);
}

.products {
  display: grid;
  gap: 20px;
}

.badge {
  font-size: 0.8rem;
  font-weight: 650;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  white-space: nowrap;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 8px 0 0;
}

.more-products {
  margin-top: 32px;
  color: var(--text-2);
  font-size: 1.1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card p {
  color: var(--text-2);
}

.card h2 {
  font-size: 1.2rem;
}

.email {
  font-size: 1.15rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

address {
  font-style: normal;
}

.mailing {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

/* Inner pages */
.page-head .lead {
  margin-bottom: 0.5em;
}

.prose > * {
  max-width: 760px;
}

.prose h2 {
  margin-top: 1.8em;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.checks {
  list-style: none;
  padding: 0 !important;
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.checks.compact li {
  margin-bottom: 0.3em;
}

.facts {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.facts div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.facts div:first-child {
  border-top: 0;
}

.facts dt {
  color: var(--muted);
  font-weight: 600;
}

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

.services {
  margin: 0;
  display: grid;
  gap: 16px;
}

.services div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 20px 24px;
}

.services dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.services dd {
  margin: 0.25em 0 0;
  color: var(--text-2);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 16px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
}

.summary {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.summary p {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
}

.site-footer p {
  margin: 0;
}

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

.site-footer .footer-address {
  margin-top: 4px;
  color: var(--footer-muted);
}

.site-footer nav ul {
  gap: 4px 20px;
}

.site-footer nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a[aria-current='page'] {
  color: var(--footer-link);
  text-decoration: underline;
}

.site-footer :focus-visible {
  outline-color: var(--footer-link);
}

/* Tablets and phones */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-art {
    justify-self: start;
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  :root {
    --section: 52px;
  }

  body {
    font-size: 1rem;
  }

  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header .wrap {
    min-height: 64px;
  }

  .site-header nav ul {
    margin-left: -10px;
    gap: 0;
  }

  .site-header nav a {
    padding: 0 9px;
  }

  .site-header nav a::after {
    left: 9px;
    right: 9px;
  }

  .hero-art {
    max-width: 240px;
  }

  .section-title {
    margin-top: 44px;
  }

  .product-card,
  .card {
    padding: 22px;
  }

  .product-card-head {
    flex-wrap: wrap;
  }

  .product-card-head .badge {
    margin-left: 0;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}

/* Printing: black on white, no menus or decoration, and link addresses written out. */
@media print {
  :root {
    --bg: #ffffff;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --border: #bbbbbb;
    --ink: #000000;
    --text: #000000;
    --text-2: #222222;
    --muted: #444444;
    --accent: #000000;
    --accent-soft: #ffffff;
    --shadow-1: none;
    --shadow-2: none;
    --section: 16pt;
  }

  body {
    display: block;
    font-size: 11pt;
    background: #ffffff;
    color: #000000;
  }

  .skip,
  .site-header nav,
  .site-footer nav,
  .hero-art,
  .hero-links,
  .button {
    display: none !important;
  }

  .site-header,
  .hero,
  .band {
    border: 0;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  .hero-grid {
    display: block;
  }

  .site-footer {
    background: none;
    color: #000000;
    border-top: 1px solid #bbbbbb;
    padding: 12pt 0 0;
  }

  .site-footer a,
  .site-footer .footer-address {
    color: #000000;
  }

  .product-card,
  .card,
  .what > div,
  .services div,
  .facts {
    box-shadow: none;
    border-color: #bbbbbb;
    break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
  }

  a {
    color: #000000;
  }

  main a[href^='http']::after,
  main a[href^='mailto:']::after {
    content: ' (' attr(href) ')';
    font-size: 0.9em;
    font-weight: normal;
    overflow-wrap: anywhere;
  }

  main a[href^='/']::after {
    content: ' (zithron.com' attr(href) ')';
    font-size: 0.9em;
    font-weight: normal;
  }
}

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