/* d1fpc3.com | /build/for/*
   Hand-written guide pages that answer one buying question each (what it costs, what to buy,
   build or subscribe). Same language as /build/: ink on warm off-white, a serif for the lines
   meant to be read, hairline rules. Each page links a live demo and ends in a short quote form. */
@font-face { font-family: 'Inter'; src: url('/echelon/assets/fonts/inter-var-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/profile/fonts/newsreader-latin.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  color-scheme: light;
  --bg: #f5f2ea; --card: #fbf9f4; --hover: rgba(28, 25, 20, 0.06);
  --ink: #1a1815; --text: #4f4b44; --faint: #736e64; --good: #2f7d4f;
  --rule: rgba(28, 25, 20, 0.13); --rule-2: rgba(28, 25, 20, 0.24);
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0b0a; --card: #141311; --hover: rgba(244, 240, 230, 0.07);
  --ink: #f1eee7; --text: #aaa49a; --faint: #827c71; --good: #6fc08f;
  --rule: rgba(244, 240, 230, 0.12); --rule-2: rgba(244, 240, 230, 0.24);
}
html { font-size: clamp(16px, calc(0.42vw + 10px), 22px); -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
body { min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 0.9375rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
p, li { text-wrap: pretty; }
.page { width: 100%; max-width: 35rem; margin: 0 auto; padding: 4.75rem 1.25rem 3rem; }

.top { position: fixed; z-index: 5; top: max(1rem, env(safe-area-inset-top)); left: max(1rem, env(safe-area-inset-left)); height: 2.5rem; padding: 0 .85rem; border-radius: 1.25rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--faint); text-decoration: none; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: color .2s ease; }
.top:hover { color: var(--ink); }
.top svg { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.crumbs { font-size: .75rem; color: var(--faint); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
h1 { margin-top: .7rem; font: 600 2.35rem/1.06 var(--sans); letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.answer { margin-top: 1rem; font: 400 1.3125rem/1.42 var(--serif); color: var(--ink); }
.answer + p { margin-top: .8rem; }
.dated { margin-top: 1rem; font-size: .75rem; color: var(--faint); }

h2 { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); font: 400 1.25rem/1.35 var(--serif); color: var(--ink); }
h3 { margin-top: 1.4rem; font: 600 .9375rem/1.4 var(--sans); color: var(--ink); }
.page p { margin-top: .7rem; }
.page ul.list { margin: .7rem 0 0 1.1rem; }
.page ul.list li { margin-top: .3rem; }
b, strong { color: var(--ink); font-weight: 600; }

/* the live demo card */
.demo { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: 1.4rem; padding: .9rem; border: 1px solid var(--rule); border-radius: 1rem; background: var(--card); text-decoration: none; transition: border-color .25s ease, transform .4s var(--ease); }
.demo:hover { border-color: var(--rule-2); transform: translateY(-2px); }
.demo .ph { aspect-ratio: 420 / 760; border-radius: .9rem; padding: .2rem; background: #141311; overflow: hidden; }
.demo .ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: .72rem; }
.demo small { display: block; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.demo b { display: block; margin-top: .2rem; font-size: 1rem; }
.demo span.d { display: block; margin-top: .25rem; font-size: .8125rem; line-height: 1.5; color: var(--text); }
.demo .go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem; font-size: .8125rem; font-weight: 550; color: var(--ink); }
.demo .go svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.demo:hover .go svg { transform: translateX(2px); }

/* price block */
.price { margin-top: 1.2rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: 1.05rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.price b { font: 600 1rem/1.4 var(--sans); }
.price .n { text-align: right; font: 600 1.25rem/1.2 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price .n small { display: block; font-size: .75rem; font-weight: 400; color: var(--faint); letter-spacing: 0; }
.price p { grid-column: 1 / -1; margin-top: .2rem !important; font-size: .875rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1rem; }
@media (max-width: 32rem) { .cols { grid-template-columns: 1fr; gap: .2rem; } }
.cols h3 { margin-top: .4rem; font-size: .8125rem; }
.cols ul { list-style: none; margin-top: .3rem; font-size: .875rem; }
.cols li { position: relative; padding-left: 1.1rem; margin-top: .3rem; }
.cols li::before { content: ''; position: absolute; left: 0; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--ink); opacity: .55; }
.cols .no li::before { background: none; border: 1.5px solid var(--faint); opacity: .8; }

/* comparison table: scrolls sideways on phones instead of squashing */
.table { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--rule); border-radius: .8rem; }
table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: .8125rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; color: var(--ink); background: var(--hover); font-size: .75rem; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
tr.us td { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.note { margin-top: .6rem; font-size: .75rem; color: var(--faint); }

/* faq */
details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq { margin-top: .8rem; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; font-weight: 550; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary svg { flex: none; width: .9rem; height: .9rem; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; transition: transform .35s var(--ease); }
details[open] summary svg { transform: rotate(45deg); }
details p { margin-top: 0 !important; padding: 0 0 1rem; font-size: .875rem; }

/* related guides */
.related { list-style: none; margin-top: .8rem; }
.related li + li { border-top: 1px solid var(--rule); }
.related a { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; text-decoration: none; font-size: .9rem; color: var(--ink); }
.related a span { color: var(--faint); font-size: .8125rem; white-space: nowrap; }
.related a:hover span { color: var(--ink); }

/* the short quote form */
.ask { margin-top: 1.2rem; padding: 1.15rem 1.1rem 1.2rem; border: 1px solid var(--rule); border-radius: .9rem; background: var(--card); }
.ask label { display: block; margin-top: .9rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.ask label:first-of-type { margin-top: 0; }
.ask input, .ask textarea { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--rule-2); background: transparent; padding: .6rem 0 .55rem; border-radius: 0; }
.ask textarea { min-height: 4.5rem; resize: vertical; line-height: 1.55; }
.ask input:focus, .ask textarea:focus { outline: none; border-bottom-color: var(--ink); }
.ask .row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; }
.btn { height: 2.75rem; padding: 0 1.2rem; border-radius: .5rem; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 500 .875rem/1 var(--sans); white-space: nowrap; cursor: pointer; text-decoration: none; transition: transform .3s var(--ease); }
.btn.line { background: transparent; color: var(--ink); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; }
.status { font-size: .8125rem; color: var(--faint); }
.status.err { color: #b4432f; }
.leave-blank { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer { margin-top: 2.6rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); font-size: .75rem; color: var(--faint); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
