/* Jmix site. Colors and fonts follow the iOS app design system */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg-primary: #f6f7f3;
  --bg-secondary: #ffffff;
  --main-text: #151515;
  --text-secondary: #6b7062;
  --accent-text: #18210d;
  --tint: #b6f23a;
  --sf-on-light: #3e6a06;
  --sf-on-dark: #b9c29e;
  --border: rgba(24, 33, 13, 0.1);
  --shadow: 0 1px 2px rgba(24, 33, 13, 0.04), 0 8px 24px rgba(24, 33, 13, 0.06);

  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 12px;
  --content: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #050604;
    --bg-secondary: #15180f;
    --main-text: #f2f5ea;
    --text-secondary: #8d9384;
    --sf-on-light: #90c227;
    --border: rgba(242, 245, 234, 0.1);
    --shadow: none;
  }

  .hero {
    border: 1px solid rgba(182, 242, 58, 0.14);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--main-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sf-on-light);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--tint);
  color: var(--accent-text);
}

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

.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 20px;
}

/* Reading progress */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  background: var(--tint);
  transform-origin: left;
  transform: scaleX(0);
}

/* Hero */
.hero {
  margin-top: 24px;
  padding: 48px 40px;
  border-radius: var(--radius-l);
  background: var(--accent-text);
  color: #f2f5ea;
  position: relative;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sf-on-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-lead {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--sf-on-dark);
  font-size: 17px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(242, 245, 234, 0.08);
  border: 1px solid rgba(242, 245, 234, 0.12);
  color: #f2f5ea;
  font-size: 13px;
  font-weight: 600;
}

.chip-tint {
  background: var(--tint);
  border-color: var(--tint);
  color: var(--accent-text);
}

/* Layout */
.doc {
  margin: 32px auto 64px;
}

/* Sections */
.section {
  padding: 32px;
  margin-bottom: 16px;
  border-radius: var(--radius-l);
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
}

.section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
}

.section-num {
  flex: none;
  color: var(--sf-on-light);
  font-size: 16px;
}

.section h3 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.section p,
.section ul {
  margin: 0 0 14px;
}

.section ul {
  padding-left: 22px;
}

.section li {
  margin-bottom: 6px;
}

.section li::marker {
  color: var(--sf-on-light);
}

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

.callout {
  display: flex;
  gap: 14px;
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--tint) 22%, var(--bg-secondary));
  border: 1px solid color-mix(in srgb, var(--tint) 55%, transparent);
}

.callout-icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-text);
  color: var(--tint);
  font-weight: 800;
  font-size: 14px;
}

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

/* Tables */
.table-wrap {
  margin: 16px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

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

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

th {
  background: color-mix(in srgb, var(--border) 50%, var(--bg-secondary));
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

td:first-child {
  font-weight: 600;
  min-width: 150px;
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}

.site-footer .container {
  text-align: center;
}

/* Mobile */
@media (max-width: 600px) {
  .hero {
    padding: 36px 22px;
    border-radius: var(--radius-m);
  }

  .section {
    padding: 24px 20px;
    border-radius: var(--radius-m);
  }

  .section h2 {
    font-size: 22px;
  }
}

@media print {
  .progress {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .doc {
    display: block;
  }

  .hero {
    background: none;
    color: #000;
    padding: 0;
  }

  .hero-lead {
    color: #000;
  }

  .section {
    box-shadow: none;
    padding: 0;
    margin-bottom: 24px;
  }
}

/* Single page: one centered column */
main.container {
  max-width: 860px;
}
