/* 1337code — X builder cheatsheet (Rico @_heyrico, 2026) + last30days rooms.
   Layers: #fff surface, #fcfcfc paper, #f0f0f0 rules. Two weights. 10px radius.
   No Inter. SF Pro / system-ui + mono for the agent paste. One cobalt mark. */
:root {
  color-scheme: light;
  --paper: #fcfcfc;
  --ink: #292929;
  --muted: #5d5d5d;
  --subtle: #7f7f7f;
  --card: #ffffff;
  --accent: #1537c9;
  --accent-soft: #eef1ff;
  --line: #f0f0f0;
  --good: #0b7a4b;
  --warn: #a33b12;
  --shadow: none;
  --radius: 10px;
  --control-h: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.15px;
  min-height: 100vh;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 88%, white);
  backdrop-filter: blur(10px);
  z-index: 4;
}

.mark {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}

.mark span { color: var(--accent); }

.site-head nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
}

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

.site-head nav a:hover,
.site-head nav a[aria-current="page"] {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  padding: 56px 0 28px;
  align-items: end;
}

.spine {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 10px;
}

.spine i {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
}

.spine i.on { background: var(--accent); width: 40px; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

h1, h2, .display, .card h3 {
  font-family: -apple-system, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.31px;
  font-weight: 500;
}

h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.12;
  margin: 10px 0 16px;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 48px 0 14px;
}

.lede {
  color: var(--muted);
  max-width: 38em;
  font-size: 16px;
  line-height: 26px;
}

.lede strong { color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 48px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 148px;
}

.card:hover { border-color: var(--accent); }

.card .n {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.card h3 {
  font-size: 18px;
  line-height: 24px;
  margin: 8px 0 8px;
}

.card p { color: var(--muted); font-size: 15px; }

.pill {
  display: inline-block;
  margin-top: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  height: 20px;
}

.try, .prompt {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0 28px;
  box-shadow: var(--shadow);
}

.prompt pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--ink);
  margin: 8px 0 12px;
}

.try p { color: var(--muted); margin-bottom: 12px; }

label {
  display: block;
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

input[type="url"], input[type="text"], input[type="date"] {
  width: 100%;
  max-width: 36em;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

button.act {
  margin-top: 12px;
  margin-right: 8px;
  background: var(--accent);
  color: #f7f8ff;
  border: 0;
  border-radius: var(--radius);
  height: var(--control-h);
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.out {
  margin-top: 12px;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
}

.seeds { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.seeds button {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 28px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.todo-list { list-style: none; margin-top: 16px; }
.todo-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.todo-list li.done span { text-decoration: line-through; color: var(--muted); }
.warn { color: var(--warn); }

.note {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  color: var(--muted);
  margin: 28px 0;
}

.prose { max-width: 40em; }
.prose p { margin: 0 0 14px; color: var(--muted); }
.prose p strong { color: var(--ink); }
.prose ul { margin: 0 0 16px 1.2em; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #f7f8ff;
  text-decoration: none;
  border-radius: var(--radius);
  height: var(--control-h);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}
.btn.ghost {
  background: var(--card);
  color: var(--accent);
  border: 1px solid var(--line);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 22px;
}

code { color: var(--accent); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }

footer.site-foot {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.newsletter {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 36px 0 0;
}
.newsletter h2 { margin-top: 0; }
.newsletter p { color: var(--muted); margin: 0 0 12px; }
.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.newsletter label { margin: 0; }
.newsletter input[type="email"] { max-width: 22em; }
.newsletter .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.newsletter button.act { margin-top: 0; }

.sisters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: 100%;
  font-size: 13px;
}
.sisters a { color: var(--muted); text-decoration: none; }
.sisters a:hover { color: var(--accent); }

.build-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 16px; padding-top: 32px; }
  .spine { flex-direction: row; }
  .spine i { width: 18px; height: 3px; }
  .spine i.on { width: 28px; }
  .grid { grid-template-columns: 1fr; }
  .site-head { flex-wrap: wrap; }
  h1 { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
