/* shiprust.com — hand-written CSS, no build step. Light/dark via data-theme. */
:root {
  --bg: #ffffff;
  --bg-soft: #fafaf9;
  --fg: #1c1917;
  --fg-muted: #78716c;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --accent: #b7410e;
  --accent-fg: #ffffff;
  --accent-soft: #fdf1ea;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.04);
  --radius: 12px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c0a09;
  --bg-soft: #141211;
  --fg: #f5f5f4;
  --fg-muted: #a8a29e;
  --border: #292524;
  --border-strong: #3f3a37;
  --accent: #e8794a;
  --accent-fg: #0c0a09;
  --accent-soft: #2a1a12;
  --card: #141211;
  --shadow: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 13px; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--fg-muted); }
.small { font-size: 13px; }
.icon { width: 1em; height: 1em; vertical-align: -0.15em; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 20px; height: 20px; color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions form { display: contents; }
.icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--fg); cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); }
.icon-sun { display: none; } .icon-moon { display: block; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 8px; font: inherit; font-size: 14px; font-weight: 500; background: var(--card); color: var(--fg); cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--bg-soft); }
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-lg { height: 42px; padding: 0 20px; font-size: 15px; }

/* Hero */
.hero { text-align: center; padding: 88px 0 48px; background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 22px 22px; background-position: center; -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 500; color: var(--fg-muted); border: 1px solid var(--border); background: var(--card); padding: 3px 10px; border-radius: 999px; margin-bottom: 18px; font-family: var(--mono); }
.hero h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 600; letter-spacing: -0.02em; }
.lede { font-size: 17px; color: var(--fg-muted); max-width: 620px; margin: 16px auto 0; }
.lede strong { color: var(--fg); font-weight: 600; }
.cta { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 24px 0 48px; }
.feature { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--fg-muted); font-size: 14px; }

/* What's inside */
.inside { padding: 24px 0 48px; border-top: 1px solid var(--border); }
.inside-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding-top: 40px; }
.inside h2 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--fg-muted); }
.checklist li { padding-left: 22px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.checklist strong { color: var(--fg); font-weight: 600; }

/* Early access */
.pricing { padding: 0 0 80px; }
.price-card { text-align: center; padding: 40px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); max-width: 640px; margin: 0 auto; }
.price-card h2 { font-size: 26px; font-weight: 600; margin: 4px 0 10px; }
.price-card .btn { margin-top: 22px; }

/* Generic pages & forms */
.page { padding: 56px 0 72px; }
.page h1 { font-size: 32px; font-weight: 600; }
.page .lede { margin-left: 0; }
.narrow { max-width: 420px; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form input { font: inherit; font-size: 14px; font-weight: 400; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--card); color: var(--fg); width: 100%; }
.form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .btn { align-self: flex-start; }
.alert { background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-top: 20px; }
.switch { margin-top: 20px; }
.switch a { text-decoration: underline; text-underline-offset: 3px; }
.page > .btn { margin-top: 24px; }
.panel { margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--card); max-width: 560px; }
.panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 14px; }
.panel dt { color: var(--fg-muted); }
.panel dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.panel h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.panel pre { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--border); overflow-x: auto; font-size: 13px; line-height: 1.6; }
.panel pre + p { margin-top: 12px; }
.narrow-wide { max-width: 560px; }
.form textarea { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--card); color: var(--fg); width: 100%; resize: vertical; }
.form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hint { font-size: 12px; font-weight: 400; color: var(--fg-muted); }

/* Projects */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.page-head .btn { flex: none; margin-top: 6px; }
.empty { margin-top: 32px; padding: 40px 24px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); max-width: 640px; }
.empty h2 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.empty p { max-width: 480px; margin: 0 auto 20px; font-size: 14px; }
.project-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.project-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.project-name { font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col .panel { max-width: none; }
.danger { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.btn-danger { color: #b91c1c; border-color: #b91c1c; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
:root[data-theme="dark"] .btn-danger { color: #f87171; border-color: #f87171; }
:root[data-theme="dark"] .btn-danger:hover { background: #f87171; color: #0c0a09; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; }

@media (max-width: 800px) {
  .features, .inside-grid, .two-col { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 1fr; gap: 6px; }
  .page-head, .danger { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 56px; }
  .cta { flex-direction: column; align-items: center; }
}
