/* Nomad Hub Holdings Inc: company site styles. No external fonts or assets. */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #15171c;
  --muted: #585d68;
  --rule: #e2dfd6;
  --accent: #1d5b47;

  --st-test-bg: #fff1cc;
  --st-test-fg: #6e4a00;
  --st-active-bg: #dff1e8;
  --st-active-fg: #185240;
  --st-arch-bg: #eceae4;
  --st-arch-fg: #4a4e57;

  --todo-bg: #ffe9a8;
  --todo-fg: #5c4100;

  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #181b21;
    --ink: #ecebe6;
    --muted: #a6aab3;
    --rule: #2a2e36;
    --accent: #7fcaa9;

    --st-test-bg: #3a2e10;
    --st-test-fg: #f2cf78;
    --st-active-bg: #15332a;
    --st-active-fg: #90d7b9;
    --st-arch-bg: #262a31;
    --st-arch-fg: #b8bcc4;

    --todo-bg: #4a3b00;
    --todo-fg: #ffe07a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 720px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  font: 600 13px/1 var(--sans); letter-spacing: 0.02em;
}
.site-header nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 15px; }
.site-header nav a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .site-header nav { display: none; }
}

/* Hero */
.hero { padding-top: 72px; padding-bottom: 48px; }
.eyebrow {
  margin: 0 0 16px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.01em;
  margin: 0 0 20px; max-width: 18ch;
}
.lede { margin: 0; max-width: 60ch; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }

/* Sections */
.section { padding-top: 40px; padding-bottom: 40px; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* Product cards */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; margin: 4px 0 0; }
.card p { margin: 0; color: var(--muted); }
.card-link { margin-top: auto; padding-top: 8px; font-weight: 500; }
p.card-link { color: var(--muted); font-weight: 400; font-style: italic; }

.status {
  align-self: flex-start;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 999px;
}
.status-testing { background: var(--st-test-bg); color: var(--st-test-fg); }
.status-active { background: var(--st-active-bg); color: var(--st-active-fg); }
.status-archived { background: var(--st-arch-bg); color: var(--st-arch-fg); }

/* Company facts */
.facts {
  margin: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden;
}
.facts > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 20px; }
.facts > div + div { border-top: 1px solid var(--rule); }
@media (min-width: 640px) {
  .facts > div { grid-template-columns: 200px 1fr; gap: 24px; }
}
.facts dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.facts dd { margin: 0; }

.contact p { max-width: 60ch; margin: 12px 0 0; }

/* Placeholder marker: anything with this class must be replaced before going live */
.todo {
  background: var(--todo-bg); color: var(--todo-fg);
  padding: 1px 6px; border-radius: 4px; font-size: 0.95em;
}

/* Legal pages */
.prose { max-width: 68ch; padding-top: 56px; padding-bottom: 40px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); max-width: none; }
.prose h2 { font-size: 22px; margin: 36px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: 24px; }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; padding-bottom: 32px;
  color: var(--muted); font-size: 14px;
}
.foot p { margin: 0; }
.site-footer nav a { color: var(--muted); margin-right: 20px; }
.site-footer nav a:last-child { margin-right: 0; }
.site-footer nav a:hover { color: var(--ink); }
