:root {
  --ink: #14241c;
  --ink-soft: #3d5348;
  --paper: #f4efe4;
  --paper-2: #ebe4d4;
  --panel: #fffdf8;
  --pine: #16382b;
  --pine-2: #1f4d3b;
  --moss: #2f6a52;
  --copper: #b45a32;
  --line: #d7d0c0;
  --shadow: 0 18px 40px rgba(22, 56, 43, 0.08);
  --radius: 18px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 8% -10%, #e7f0e4 0%, transparent 60%),
    radial-gradient(900px 420px at 100% 0%, #f7e4d4 0%, transparent 55%),
    var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  line-height: 1.55;
}

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

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: var(--panel);
  padding: 8px 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--paper) 86%, white);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-tag {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
  color: var(--ink);
}

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

.hero {
  padding: 56px 0 28px;
}

.kicker {
  font-family: "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--moss);
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 16ch;
  margin: 0 0 16px;
}

.lede {
  max-width: 62ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--pine);
  color: #f7f3ea;
}

.btn-primary:hover {
  background: var(--pine-2);
  color: #fff;
}

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

.grid {
  display: grid;
  gap: 16px;
}

.apps {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding-bottom: 56px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.muted {
  color: var(--ink-soft);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.92rem;
}

.legal {
  padding: 40px 0 72px;
}

.legal h1 {
  max-width: none;
}

.legal h2 {
  margin-top: 32px;
  font-size: 1.35rem;
}

.legal ul {
  padding-left: 1.2em;
}

.notice {
  background: #f8e8dc;
  border: 1px solid #e2c2b0;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

@media (max-width: 720px) {
  .header-row {
    align-items: flex-start;
    padding: 12px 0;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 32px;
  }
}
