/* Cedarline Software — one small stylesheet, no external requests */
:root {
  color-scheme: light dark;
  --bg: #f5f2ea;
  --bg-glass: rgba(245, 242, 234, 0.78);
  --surface: #fffdf8;
  --ink: #1d2a24;
  --muted: #546359;
  --line: rgba(29, 42, 36, 0.14);
  --accent: #2e5b47;
  --accent-ink: #ffffff;
  --warm: #9a6414;
  --shadow: 0 1px 2px rgba(29, 42, 36, 0.06), 0 14px 32px -18px rgba(29, 42, 36, 0.28);
  --radius: 18px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1613;
    --bg-glass: rgba(15, 22, 19, 0.78);
    --surface: #16201b;
    --ink: #e8efe9;
    --muted: #9db0a5;
    --line: rgba(232, 239, 233, 0.14);
    --accent: #7cc9a3;
    --accent-ink: #0c1511;
    --warm: #e0a94f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 32px -18px rgba(0, 0, 0, 0.7);
  }
}

@media (prefers-contrast: more) {
  :root { --line: currentColor; --muted: var(--ink); }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* the hero lines bleed past the edge on purpose */
  overflow-wrap: break-word;
}

a { color: inherit; text-underline-offset: 0.2em; touch-action: manipulation; -webkit-tap-highlight-color: rgba(46, 91, 71, 0.18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(68rem, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  padding: 0.6rem 1rem; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header: a translucent layer, content scrolls underneath */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 600 1.05rem/1 var(--sans); letter-spacing: 0.005em; }
.mark { width: 1.6rem; height: 1.6rem; color: var(--accent); }
.bar nav { display: flex; gap: 0.25rem; }
.bar nav a {
  padding: 0.5rem 0.8rem; border-radius: 999px; text-decoration: none;
  font-size: 0.95rem; color: var(--muted);
}
.bar nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }

@media (prefers-reduced-transparency: reduce) {
  .bar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Hero */
.hero { position: relative; isolation: isolate; padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3.5rem, 9vw, 6rem); }
.eyebrow { margin: 0 0 1.25rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.03; letter-spacing: -0.028em; max-width: 14em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); line-height: 1.15; letter-spacing: -0.017em; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.008em; }
.lede { margin: 1.5rem 0 0; max-width: 34em; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2.25rem 0 0; }
.contours {
  position: absolute; z-index: -1; right: -6%; bottom: 0; width: min(62rem, 120%);
  color: var(--accent); opacity: 0.22; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 25%, transparent 92%);
  mask-image: linear-gradient(to left, #000 25%, transparent 92%);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0 1.4rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 0.98rem/1 var(--sans); text-decoration: none;
  transition: transform 100ms ease-out;
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.section > header { max-width: 38rem; margin-bottom: 2.25rem; }
.section > header p { margin: 0.75rem 0 0; color: var(--muted); text-wrap: pretty; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); padding: 0; margin: 0; list-style: none; }
.card {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 160ms ease-out;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); text-wrap: pretty; }
.status {
  margin-top: auto; padding-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; color: var(--warm);
}
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }

.principles { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; margin: 0; list-style: none; counter-reset: p; }
.principles li { counter-increment: p; padding-top: 1rem; border-top: 1px solid var(--line); }
.principles li::before { content: "0" counter(p); display: block; margin-bottom: 0.6rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); }
.principles p { margin: 0.4rem 0 0; color: var(--muted); text-wrap: pretty; }

/* Text pages */
.prose { padding: clamp(3rem, 8vw, 5.5rem) 0; max-width: 40rem; }
.prose h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 0.5rem; }
.prose h2 { font-size: 1.35rem; margin: 2.25rem 0 0.5rem; letter-spacing: -0.008em; }
.prose p { margin: 0.75rem 0; text-wrap: pretty; }
.prose .meta { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.foot nav { display: flex; gap: 1.25rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 34rem) {
  .bar nav a { padding: 0.5rem 0.55rem; font-size: 0.9rem; }
  .brand span { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .card:hover { transform: none; }
  .btn:active { transform: none; }
}
