:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-deep: #e5ded0;
  --ink: #181612;
  --muted: #6a6257;
  --line: rgba(24, 22, 18, 0.16);
  --surface: rgba(255, 255, 255, 0.62);
  --accent: #9b3f2d;
  --font-ui: ui-rounded, "SF Pro Rounded", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-lcd: "Departure Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

@font-face {
  font-family: "Departure Mono";
  src: url("fonts/DepartureMono-Regular.otf") format("opentype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 4%, rgba(255, 255, 255, 0.78), transparent 38rem),
    linear-gradient(180deg, var(--paper), var(--paper-deep));
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.65;
  font-kerning: normal;
}

.page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(240px, 58vw);
  color: inherit;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--font-lcd);
  font-size: 15px;
  line-height: 1.35;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

nav a,
.language-switch button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-lcd);
  font-size: 14px;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.language-switch button {
  min-width: 42px;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-color: transparent;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.language-switch button.is-active {
  border-color: var(--line);
  background: var(--ink);
  color: var(--paper);
}

main {
  padding-top: 30px;
}

.card {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(24, 22, 18, 0.08);
}

h1,
h2 {
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 700;
}

h2 {
  font-family: var(--font-lcd);
  font-size: 21px;
  font-weight: 400;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.meta {
  color: var(--muted);
  font-family: var(--font-lcd);
  font-size: 14px;
}

footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-lcd);
  font-size: 13px;
}

@media (max-width: 620px) {
  header {
    display: block;
  }

  nav {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .header-actions {
    align-items: flex-start;
  }
}
