/* Verkholm Inc. — site styles. No external fonts, scripts or trackers. */

:root {
  --paper: #f7f5f0;
  --card: #ffffff;
  --ink: #0e2a30;
  --muted: #4a5b60;
  --line: #e2ddd3;
  --brass: #b07a2a;
  --brass-strong: #8a5a14;
  --brass-soft: #f3e7d3;
  --on-brass: #ffffff;
  --shadow: 0 1px 2px rgb(14 42 48 / 6%), 0 8px 24px rgb(14 42 48 / 6%);
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1a1e;
    --card: #13252b;
    --ink: #e8eeef;
    --muted: #a3b4b8;
    --line: #24393f;
    --brass: #d9a54e;
    --brass-strong: #e5b566;
    --brass-soft: #2a2a1f;
    --on-brass: #0d1a1e;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0d1a1e;
  --card: #13252b;
  --ink: #e8eeef;
  --muted: #a3b4b8;
  --line: #24393f;
  --brass: #d9a54e;
  --brass-strong: #e5b566;
  --brass-soft: #2a2a1f;
  --on-brass: #0d1a1e;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  color-scheme: dark;
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--brass-strong);
  text-underline-offset: 3px;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

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

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

.brand svg {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--brass-soft);
}

@media (max-width: 560px) {
  .nav .nav-optional {
    display: none;
  }
}

/* Hero */

.hero {
  padding: 72px 0 56px;
}

@media (min-width: 720px) {
  .hero {
    padding: 112px 0 88px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-strong);
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 32px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--brass-strong);
  color: var(--on-brass);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--brass-strong) 80%, var(--ink));
}

.button-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--card);
}

.button-ghost:hover {
  border-color: var(--brass);
}

/* Sections */

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .section {
    padding: 88px 0;
  }
}

.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 40px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brass-soft);
  color: var(--brass-strong);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card .icon svg {
  width: 24px;
  height: 24px;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-strong);
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 12px;
}

.principles {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 720px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 48px;
  }
}

.principles li {
  border-left: 3px solid var(--brass);
  padding-left: 18px;
}

.principles h3 {
  margin-bottom: 6px;
}

.principles p {
  margin: 0;
  color: var(--muted);
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

@media (min-width: 720px) {
  .contact-box {
    padding: 40px;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 32px;
  }
}

.contact-box p {
  margin: 0;
  color: var(--muted);
}

.contact-email {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 650;
  overflow-wrap: anywhere;
}

/* Long-form pages (privacy, support) */

.doc {
  padding: 56px 0 88px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  max-width: none;
}

.doc h2 {
  font-size: 1.4rem;
  margin-top: 48px;
}

.doc h3 {
  font-size: 1.1rem;
  margin-top: 28px;
}

.doc p,
.doc li {
  color: var(--ink);
}

.doc .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

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

.doc li + li {
  margin-top: 6px;
}

.callout {
  background: var(--brass-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}

.callout p {
  margin: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.95rem;
  background: var(--card);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 650;
  background: var(--brass-soft);
}

tr:last-child td {
  border-bottom: 0;
}

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: var(--card);
}

.toc p {
  margin: 0 0 6px;
  font-weight: 650;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

/* Keep anchored headings clear of the sticky header */
[id] {
  scroll-margin-top: 80px;
}
