/* ==========================================================================
   MB Daivina — corporate stylesheet
   Swiss/International: strict grid, grotesque type, one accent.
   Softened palette: grey ground, warm-black ink, reduced contrast.
   ========================================================================== */

:root {
  --bg:        #ECEDEB;
  --bg-alt:    #E3E5E2;
  --ink:       #24272A;
  --ink-mid:   #454B50;
  --muted:     #6C737A;
  --rule:      #D0D3CF;
  --accent:    #16505F;
  --accent-lo: #DDE4E5;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gut: clamp(1.25rem, 5vw, 4rem);
  --max: 68rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Accent hairline across the very top — the one piece of ornament. */
body::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--accent);
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.021em;
  line-height: 1.14;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 1.35rem + 2.9vw, 3.6rem); }
h2 { font-size: clamp(1.3rem, 1.12rem + 0.72vw, 1.65rem); }
h3 { font-size: 1.0625rem; letter-spacing: -0.005em; }

p { margin: 0 0 1.35rem; max-width: 62ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: min(100% - (var(--gut) * 2), var(--max)); margin-inline: auto; }

.label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ header */

.masthead { border-bottom: 1px solid var(--rule); }

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-block: 1.4rem;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.masthead__right { display: flex; align-items: center; gap: 1.5rem; }

.nav { display: flex; gap: 1.4rem; }
.nav a {
  font-size: 0.9375rem;
  color: var(--ink-mid);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.lang {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  transition: border-color .15s ease, color .15s ease;
}
.lang:hover { color: var(--accent); border-color: var(--accent); }

/* -------------------------------------------------------------------- hero */

.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.25rem, 5vw, 4rem); }
.hero h1 { max-width: 20ch; }

.hero__sub {
  margin-top: 1.6rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--ink-mid);
  max-width: 56ch;
  line-height: 1.64;
}

.hero--page { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 3vw, 2rem); }
.hero--page h1 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.85rem); }

/* Strict two-column section grid. */
.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  padding-block: clamp(2.5rem, 5.5vw, 4rem);
  border-top: 1px solid var(--rule);
}
@media (min-width: 52rem) {
  .grid { grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; }
}
.grid > .label { padding-top: 0.3rem; }

.grid h2 { margin-bottom: 1rem; }
.grid h2 + p { margin-top: 0; }

/* ----------------------------------------------------------------- details */

.details { margin: 0; display: grid; gap: 0; }

.details > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.details > div:first-child { border-top: 1px solid var(--rule); }
@media (min-width: 34rem) {
  .details > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; }
}

.details dt { font-size: 0.875rem; color: var(--muted); }
.details dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------- prose */

.prose h2 { margin-block: 2.25rem 0.85rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-block: 1.5rem 0.5rem; }
.prose ul { max-width: 62ch; padding-left: 1.15rem; margin: 0 0 1.35rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--muted); }

/* ------------------------------------------------------------------ footer */

.colophon {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.25rem, 5vw, 3.25rem) 1.85rem;
  font-size: 0.9375rem;
  color: var(--ink-mid);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.colophon__grid {
  display: grid;
  gap: 1.75rem 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .colophon__grid { grid-template-columns: 1.6fr 1fr; } }

.colophon__legal {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}

.colophon p { margin-bottom: 0.25rem; max-width: 42ch; }
.colophon a { color: var(--accent); }
.colophon ul { list-style: none; margin: .35rem 0 0; padding: 0; }
.colophon li { margin-bottom: 0.25rem; }

.colophon__base {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Accessibility */
.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 0.5rem; top: 0.5rem;
  background: var(--accent); color: #fff;
  padding: 0.7rem 1.1rem; z-index: 10; text-decoration: none;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
