:root {
  --bg: #ffffff;
  --bg-rise: #fff5ee;
  --ink: #1a100c;
  --ink-soft: rgba(26, 16, 12, 0.66);
  --ink-faint: rgba(26, 16, 12, 0.46);
  --accent: #f5931e;
  --accent-ink: #ffffff;
  --accent-soft: #feebd2;
  --line: rgba(26, 16, 12, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1rem;
  white-space: nowrap;
}

.brand img {
  border-radius: 9px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.25rem);
  flex-wrap: wrap;
}

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
  min-height: 3.1rem;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn.primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000);
  border-color: color-mix(in srgb, var(--accent) 60%, #000);
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
}

.btn.ghost {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}

.btn.ghost:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

.button {
  padding-bottom: 0.15rem;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2.2rem 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.5rem;
}

a {
  color: var(--accent);
}

.meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.fine {
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.lang-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.lang-chip .flag {
  font-size: 1.2rem;
  line-height: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switch a {
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  opacity: 1;
}

@media (max-width: 640px) {
  nav .lang-switch {
    display: inline-flex;
  }

  nav .lang-switch a {
    display: inline-flex;
    font-size: 0.95rem;
  }
}

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  background: var(--bg);
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 14px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(26, 16, 12, 0.06);
}

thead {
  background: var(--bg-rise);
}

footer.page-foot {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  nav a:not(.btn) {
    display: none;
  }

  .top {
    padding-top: 1.1rem;
    padding-bottom: 0.8rem;
  }
}
