:root {
  --bg: #f6f3ee;
  --surface: #fffdf9;
  --ink: #1d1b18;
  --muted: #6b655c;
  --line: #e4ddd2;
  --accent: #b4532a;
  --shot-bg: #ece6dc;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface: #1f1d1a;
    --ink: #eeeae3;
    --muted: #a39c91;
    --line: #34302b;
    --accent: #e58a5c;
    --shot-bg: #272420;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
code { font: 0.9em var(--mono); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; }

.top, main, .foot { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 28px; padding-bottom: 28px;
}
.brand { font: 600 20px var(--serif); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-weight: 400; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--accent); }

.hero { padding: 72px 0 56px; max-width: 760px; }
.hero h1 {
  font: 400 clamp(40px, 7vw, 68px)/1.05 var(--serif);
  letter-spacing: -0.02em; margin: 0 0 24px;
}
.lede { font-size: 20px; color: var(--muted); margin: 0; }
.lede a { color: var(--ink); }

.block { padding: 40px 0; border-top: 1px solid var(--line); }
.block h2 {
  font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin: 0 0 28px;
}
h3 { font: 600 26px/1.2 var(--serif); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
h3 a { text-decoration: none; }
.icon { border-radius: 7px; flex: none; }
.meta { font: 13px var(--mono); color: var(--muted); margin: 14px 0 0; }

.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.app {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: grid; grid-template-columns: 170px 1fr;
}
.app .shot { background: var(--shot-bg); display: block; overflow: hidden; }
.app .shot img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; object-position: top; display: block; }
.app .body { padding: 26px 26px 24px; display: flex; flex-direction: column; }
.app .body p { margin: 0; }
.app .more { margin-top: auto; padding-top: 18px; font-weight: 500; font-size: 15px; text-decoration: none; color: var(--accent); }
.app.wide { grid-column: 1 / -1; grid-template-columns: 1.3fr 1fr; }
.app.wide .shot img { max-height: 380px; object-position: center; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
.card h3 { font-size: 22px; }
.card p { margin: 0; }
.omarchy ul { list-style: none; padding: 0; margin: 14px 0 0; }
.omarchy li { padding: 8px 0; border-top: 1px dashed var(--line); font-size: 15px; color: var(--muted); }
.omarchy li a { color: var(--ink); font-weight: 500; }
#desktop .cards { align-items: start; }

.foot { padding-top: 40px; padding-bottom: 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

@media (max-width: 820px) {
  .apps, .cards { grid-template-columns: 1fr; }
  .app, .app.wide { grid-template-columns: 1fr; }
  .app .shot img { max-height: 260px; }
  .top nav a:not(:last-child) { display: none; }
}
@media (max-width: 480px) {
  .top, main, .foot { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 40px 0 36px; }
  .lede { font-size: 18px; }
}

.card { display: flex; flex-direction: column; }
.card .links { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.card .links a { font-weight: 500; font-size: 15px; text-decoration: none; color: var(--accent); }
.card .links a:hover { text-decoration: underline; }
#agents .apps { align-items: stretch; }
