/* LiftVeda — coming soon
   One accent colour (terracotta). Light + dark via prefers-color-scheme.
   No external resources: system fonts only. */

:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --ink: #1a1814;
  --muted: #59534a;
  --rule: #e3ddd0;
  --rule-strong: #cfc7b6;
  --accent: #a8391a;
  --accent-soft: #f3e2d9;
  --focus: #a8391a;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 16px;
  --max: 1120px;
  --line: 28px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --surface: #1c1a17;
    --ink: #ede8de;
    --muted: #a9a294;
    --rule: #2a2723;
    --rule-strong: #3b3732;
    --accent: #f0805a;
    --accent-soft: #33201a;
    --focus: #f0805a;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  /* faint ruled-notebook lines */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--line) - 1px),
    var(--rule) calc(var(--line) - 1px),
    var(--rule) var(--line)
  );
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule-strong);
  background: var(--bg);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.status-pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 56px 72px;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--bg);
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero { padding-block: 96px 112px; }
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; }
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.wordmark {
  margin: 0;
  font-weight: 900;
  font-size: clamp(3.25rem, 15vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

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

.tagline {
  margin: 22px 0 0;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lede {
  margin: 14px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.status {
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: 8px;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  background: var(--surface);
}

.status > div {
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status > div + div { border-left: 1px solid var(--ink); }

.status dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.status dd {
  margin: 0;
  font-weight: 700;
}

/* Illustrative log card */

.logcard {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px 14px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgb(0 0 0 / 0.35);
  max-width: 26rem;
  width: 100%;
  justify-self: start;
}

@media (min-width: 900px) {
  .logcard { justify-self: end; transform: rotate(-1.25deg); }
}

.logcard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rule-strong);
}

.logcard__sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.75rem;
}

.logcard table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 0.95rem;
}

.logcard th {
  text-align: left;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0 4px;
}

.logcard td {
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}

.logcard th:not(:first-child),
.logcard td:not(:first-child) { text-align: right; }

.logcard tr.is-active td {
  color: var(--accent);
  font-weight: 700;
  border-bottom-color: transparent;
}

.logcard figcaption {
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section-title {
  margin: 0 0 36px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
}

.features {
  padding-block: 72px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 2px solid var(--ink);
}

@media (min-width: 760px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(odd) { border-right: 1px solid var(--rule-strong); padding-right: 32px; }
  .feature:nth-child(even) { padding-left: 32px; }
}

.feature {
  padding-block: 28px 32px;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--bg);
}

.feature__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

.tag {
  display: inline-block;
  vertical-align: 0.15em;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  white-space: nowrap;
}

.origin {
  padding-block: 72px 88px;
  background: var(--surface);
  border-top: 1px solid var(--rule-strong);
}

.origin__inner { display: grid; gap: 8px; }

@media (min-width: 900px) {
  .origin__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; }
  .origin .section-title { margin-bottom: 0; }
}

.origin__body p {
  margin: 0 0 16px;
  font-size: 1.15rem;
  max-width: 38rem;
}

.origin__body p:last-child { margin-bottom: 0; color: var(--muted); }

/* ---------- Footer ---------- */

.footer {
  border-top: 2px solid var(--ink);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.footer p { margin: 0; }
.footer__note { color: var(--muted); }

/* ---------- 404 ---------- */

.notfound {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding-block: 64px;
}

.notfound .wordmark { font-size: clamp(3rem, 14vw, 7rem); }

.notfound p { color: var(--muted); max-width: 32rem; }

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
}

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

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *,
  .logcard {
    animation: rise 600ms cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero__copy > :nth-child(2) { animation-delay: 60ms; }
  .hero__copy > :nth-child(3) { animation-delay: 120ms; }
  .hero__copy > :nth-child(4) { animation-delay: 180ms; }
  .hero__copy > :nth-child(5) { animation-delay: 240ms; }
  .logcard { animation-delay: 300ms; }

  .status-pill .dot,
  .logcard__sync .dot { animation: pulse 2.4s ease-in-out infinite; }
}

@keyframes rise {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
