:root {
  color-scheme: light dark;
  --paper: #f4f1ea;
  --ink: #1a1a1a;
  --card: #fcfaf5;
  --field: #eae6dc;
  --line: #d9d4ca;
  --muted: #55514b;
  --accent: #ff5a1f;
  font-family: system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141414;
    --ink: #f4f1ea;
    --card: #1e1e1d;
    --field: #2b2b29;
    --line: #44423f;
    --muted: #c6c0b7;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.masthead, footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.2rem; }
.masthead { border-block-end: 1px solid var(--line); }
footer { border-block-start: 1px solid var(--line); margin-block-start: 4rem; font-size: .95rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.brand img { border-radius: 25%; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
nav a { padding: .5rem .75rem; border-radius: 99rem; text-decoration: none; font-weight: 650; }
nav a:hover, select:hover { background: var(--field); }
nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.language { display: flex; align-items: center; gap: .5rem; }
.select-wrap { position: relative; min-width: 0; }
.select-wrap::after {
  content: "";
  position: absolute;
  inset-inline-end: .85rem;
  inset-block-start: 43%;
  width: .4rem;
  height: .4rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
select { appearance: none; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 99rem; padding: .5rem .8rem; padding-inline-end: 2rem; max-width: min(13rem, 55vw); }
.layout { padding-block-start: clamp(2.5rem, 7vw, 5rem); }
h1, h2, p { margin-block-start: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.13; margin-block-end: 1.25rem; }
.page-title { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.title::after { content: ""; display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--accent); margin-inline-start: .14em; }
h2 { font-size: 1.35rem; line-height: 1.35; margin-block-end: .6rem; }
p { margin-block-end: .9rem; }
p:last-child { margin-block-end: 0; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--muted); max-width: 44rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.2rem, 3vw, 2rem); }
.article { max-width: 49rem; }
.sections { display: grid; gap: .85rem; margin-block-start: 2rem; }
.contact { border-inline-start: 4px solid var(--accent); }
.contact a { display: inline-block; font-weight: 730; }
@media (max-width: 44rem) {
  .masthead nav { width: 100%; }
}
[hidden] { display: none !important; }
