:root {
  --bg: #f7f3ee;
  --text: #3f2d22;
  --muted: #704a32;
  --line: #e4d8cc;
  --card: #fffdf9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  color: var(--text);
}

.wrap {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

header {
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.langs {
  margin: 8px 0 0;
  font-size: 0.9rem;
  white-space: nowrap;
}

.langs a {
  text-decoration: none;
}

.langs a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.tag {
  margin: 8px 0 0 46px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.25rem;
  margin: 32px 0 10px;
}

p,
li {
  font-size: 1.02rem;
}

ul {
  padding-left: 1.2em;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 24px 0;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.store-urls {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
  word-break: break-all;
}
