/*
  Viti marketing site. Plain CSS, no build step: the host nginx serves this
  folder straight out of the app checkout (server-config, sites/viti.io).
  No external fonts or scripts, so the page makes no third-party requests.
*/
:root {
  --ink: #17201a;
  --ink-soft: #4a5a4f;
  --paper: #f7f4ee;
  --paper-deep: #efe9dd;
  --line: #d9d2c3;
  --vine: #1f3d2b;
  --vine-bright: #2f6a45;
  --leaf: #a9b354;
  --ochre: #c97b2a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --container: 70rem;
  --gutter: 1rem;
}

* {
  box-sizing: border-box;
}

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--vine);
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--vine-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--vine);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}

.skip:focus {
  left: 0.5rem;
  z-index: 10;
}

/* Header and footer bars */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--vine);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.mark {
  width: 1.9rem;
  height: 1.9rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

@media (max-width: 46rem) {
  .nav {
    gap: 0.85rem;
    font-size: 0.95rem;
  }
}

.nav a,
.site-footer nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover,
.site-footer nav a:hover {
  text-decoration: underline;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--vine);
  background: var(--vine);
  color: var(--paper) !important;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.2;
}

.button:hover {
  background: var(--vine-bright);
  border-color: var(--vine-bright);
}

.button-ghost {
  background: transparent;
  color: var(--vine) !important;
}

.button-ghost:hover {
  background: var(--paper-deep);
  color: var(--vine) !important;
}

.button-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ochre);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.fineprint {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }
}

.block-figure {
  margin: 0;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
}

.block-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.block-figure .row {
  stroke: #d5cdb9;
  stroke-width: 2;
}

.block-figure .ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.block-figure figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--paper-deep);
}

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 46rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

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

.howto {
  margin-top: 3rem;
  max-width: 46rem;
}

.howto ol {
  padding-left: 1.25rem;
  margin: 0;
}

.howto li {
  margin-bottom: 0.75rem;
}

.who-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 46rem) {
  .who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.who-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.contact .lead {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

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