/* Joura web — brand tokens from 03_DESIGN/DESIGN_SYSTEM.md */
:root {
  --deep-green: #1e3a34;
  --deep-green-pressed: #17302b;
  --sage: #7fb08a;
  --mint: #ddf1e3;
  --sand: #faf9f7;
  --peach: #f7c9b8;
  --sky: #d7e8f7;
  --text: #142a27;
  --text-muted: #4f5f5b;
  --border: #e3e1dc;
  --surface: #ffffff;
  --font-heading: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --max: 720px;
  color-scheme: light;
}

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

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--deep-green);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 1.75rem;
}

p,
li {
  max-width: 68ch;
}

a {
  color: var(--deep-green);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: color 200ms ease;
}

a:hover {
  color: var(--deep-green-pressed);
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--deep-green);
  color: var(--sand);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  padding: 1.25rem 1.5rem;
}

.site-header .inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--deep-green);
  min-height: 44px;
}

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

.site-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  color: var(--deep-green);
  transition: background-color 200ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: var(--mint);
}

main {
  padding: 1rem 1.5rem 4rem;
}

.doc {
  max-width: var(--max);
  margin: 0 auto;
}

.doc .meta {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.doc ul,
.doc ol {
  padding-left: 1.4rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.doc th {
  color: var(--deep-green);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

.callout {
  background: var(--mint);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--deep-green);
  color: var(--sand);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.button:hover {
  background: var(--deep-green-pressed);
  color: var(--sand);
}

.button.secondary {
  background: transparent;
  color: var(--deep-green);
  border: 2px solid var(--deep-green);
}

.button.secondary:hover {
  background: var(--mint);
}

/* Landing */
.hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero .mark {
  width: 96px;
  height: 96px;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 34ch;
}

.hero .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero .fine {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.features {
  max-width: 1040px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: none;
}

.features .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

.features .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--deep-green);
}

.features h2 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

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

.principles {
  max-width: 1040px;
  margin: 3rem auto 0;
  background: var(--deep-green);
  color: var(--sand);
  border-radius: 28px;
  padding: 2rem 1.5rem;
}

.principles h2 {
  color: var(--sand);
  margin-top: 0;
}

.principles p {
  margin: 0.25rem 0;
  color: #d9e3df;
}

.principles a {
  color: var(--mint);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
    padding-top: 4rem;
  }
  .principles {
    padding: 2.5rem;
  }
}
