@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* Minimal drafting theme taken from logo.png: grey linework on white,
   green globe (brand) and red pencil (highlight). */
:root {
  --paper: #ffffff;
  --ink: #1f1f1f;
  --ink-soft: #6b6b6b;
  --line: #e4e4e4;
  --line-strong: #bdbdbd;
  --brand: #43a84b;
  --brand-dark: #2c7332;
  --highlight: #e04848;

  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light;
  color: var(--ink);
  background-color: var(--paper);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
}

/* Logo */
.logo {
  display: block;
  width: 396px;
  max-width: 100%;
  height: auto;
}

/* Small uppercase label used for section titles, stats and meta */
.label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Section title: "01 — Title" */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-title .num {
  color: var(--brand);
  font-weight: 600;
}

/* Hairline panel with drafting corner marks */
.panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.panel::before,
.panel::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.panel::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.panel::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

.panel.interactive {
  cursor: pointer;
}

.panel.interactive:hover {
  border-color: var(--line-strong);
}

.panel.interactive:hover::before,
.panel.interactive:hover::after {
  border-color: var(--highlight);
}

/* Square tag for categories */
.tag {
  display: inline-block;
  border: 1px solid currentColor;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Fine section hatching for bars */
.hatch-brand {
  background-image: repeating-linear-gradient(-45deg, var(--brand) 0 1px, transparent 1px 5px);
  border: 1px solid var(--brand-dark);
  transition: border-color 0.2s ease;
}

.group:hover .hatch-brand {
  background-image: repeating-linear-gradient(-45deg, var(--highlight) 0 1px, transparent 1px 5px);
  border-color: var(--highlight);
}

/* Vertical timeline */
.timeline-line {
  border-left: 1px solid var(--line-strong);
}

.timeline-month-dot {
  background: var(--brand);
}

.timeline-project-dot {
  border: 1px solid var(--ink);
  background: var(--paper);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.group:hover .timeline-project-dot {
  border-color: var(--highlight);
  background-color: var(--highlight);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--line-strong);
}

/* Footer */
.footer-link {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--highlight);
}

.footer-link[aria-current="page"] {
  color: var(--brand-dark);
}

.lang-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-link:hover {
  color: var(--highlight);
}

.lang-link[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

/* Text pages (About, Services, Privacy) */
.prose-page {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
}

.prose-page p + p {
  margin-top: 1rem;
}

.prose-page h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
}

.prose-page ul {
  margin-top: 0.75rem;
}

.prose-page li {
  position: relative;
  padding-left: 1.5rem;
}

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

.prose-page li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.75rem;
  border-top: 1px solid var(--brand);
}

.prose-page a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose-page a:hover {
  color: var(--highlight);
}

.prose-page strong {
  font-weight: 500;
}

/* Tab bar (EU compliance page): drawn boxes on a dark baseline; the selected tab is checkered */
.tab-bar {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--ink);
}

.tab-link {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 0.95rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-bottom: none;
  margin-right: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-link .num {
  color: var(--brand);
  font-weight: 600;
}

/* Number and label share one chip; the padding is constant so the bar doesn't shift on selection */
.tab-link .num,
.tab-link .tab-text {
  padding: 0.15rem 0.35rem;
}

.tab-link .num {
  padding-right: 0.3rem;
}

.tab-link .tab-text {
  padding-left: 0.3rem;
}

.tab-link:hover {
  color: var(--highlight);
  z-index: 1;
}

.tab-link[aria-selected="true"] {
  z-index: 2;
  color: var(--ink);
  font-weight: 600;
  border-color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-conic-gradient(rgba(67, 168, 75, 0.3) 0 25%, transparent 0 50%);
  background-size: 12px 12px;
}

/* Thick green baseline under the selected tab */
.tab-link[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 3px;
  background: var(--brand);
}

/* Labels sit on a white chip so they stay readable over the checkers */
.tab-link[aria-selected="true"] .num,
.tab-link[aria-selected="true"] .tab-text {
  background: var(--paper);
}

.tab-link[aria-selected="true"] .num {
  color: var(--brand-dark);
}

/* Toggle buttons (filters, list choices) */
.choice {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.35rem 0.75rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.choice:hover {
  color: var(--highlight);
  border-color: var(--line-strong);
}

.choice[aria-pressed="true"] {
  color: var(--brand-dark);
  border-color: var(--brand);
}

/* Analytics consent banner (res/js/consent.js) */
.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--brand);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.consent-banner p {
  flex: 1 1 20rem;
  margin: 0;
}

.consent-banner a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  gap: 0.5rem;
}
