/* Silkpath: the public pages (about, features, guides). © Raj Meena. All rights reserved.
   The same classical look as the app: Cormorant Garamond headings, Lora text, the gold accent. Dark by default, light when the device asks for it. */
:root {
  --sp-mark: "⁠​‌‌‌​​‌‌​‌‌​‌​​‌​‌‌​‌‌​​​‌‌​‌​‌‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​​‌‌‌​‌​​‌‌‌​​‌​​‌‌​‌‌​‌⁠";
  color-scheme: dark;
  --bg: #1b1918; --surface: #23211f; --text: #ebe7e2; --muted: color-mix(in srgb, #ebe7e2 68%, transparent);
  --accent: #e1ad66; --accent-strong: #facb8d; --line: color-mix(in srgb, #ebe7e2 14%, transparent);
  --good: oklch(0.78 0.1 150); --bad: oklch(0.72 0.14 28);
  --heading: "Cormorant Garamond", Georgia, serif; --body: "Lora", Georgia, serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --script: "Mrs Saint Delafield", "Snell Roundhand", "Segoe Script", cursive;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f2f2; --surface: #eae9e9; --text: #201f1d; --muted: color-mix(in srgb, #201f1d 70%, transparent);
    --accent: #7d5411; --accent-strong: #5a3b0a; --line: color-mix(in srgb, #201f1d 16%, transparent);
    --good: oklch(0.48 0.09 150); --bad: oklch(0.5 0.15 28);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16.5px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.skip { position: absolute; left: 12px; top: -60px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--accent); border-radius: 4px; z-index: 5; }
.skip:focus { top: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--script); font-size: 46px; line-height: 1; color: var(--accent); text-decoration: none; transform: rotate(-3deg); padding: 2px 10px 6px 2px; }
.brand:hover { color: var(--accent-strong); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; font-size: 14.5px; }
.nav a { color: var(--text); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.cta { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.cta:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cta.solid { background: var(--accent); color: var(--bg); }
.cta.solid:hover { background: var(--accent-strong); color: var(--bg); }

/* the article */
main { padding: 26px 0 40px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin: 0 0 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); }
.page { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 48px; align-items: start; }
.page.wide { grid-template-columns: minmax(0, 1fr); }
article { min-width: 0; max-width: 760px; }
.kicker { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.12; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 56px); margin: 0 0 16px; font-weight: 500; }
h2 { font-size: clamp(26px, 3.2vw, 33px); margin: 44px 0 12px; padding-top: 6px; }
h3 { font-size: 22px; margin: 28px 0 8px; }
p { margin: 0 0 16px; text-wrap: pretty; }
.answer { font-size: 18.5px; line-height: 1.65; padding: 16px 20px; margin: 0 0 18px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 0 6px 6px 0; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.byline a { color: var(--muted); }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin: 0 0 7px; }
li::marker { color: var(--accent); }
code { font-family: var(--mono); font-size: .86em; padding: 1px 5px; border-radius: 3px; background: color-mix(in srgb, var(--text) 9%, transparent); }
pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; padding: 16px 18px; margin: 0 0 20px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
pre code { padding: 0; background: none; font-size: inherit; }
.tbl { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-family: var(--heading); font-size: 17px; font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td.y { color: var(--good); } td.n { color: var(--bad); }
.note { padding: 14px 18px; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 15px; }
.note strong { color: var(--accent); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 4px 44px; min-height: 32px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font: 600 17px/28px var(--heading); text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.cards li { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.cards h3 { margin: 0 0 6px; font-size: 20px; }
.cards p { margin: 0; font-size: 14.5px; color: var(--muted); }
.cards a { text-decoration: none; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { position: relative; cursor: pointer; padding: 10px 0 10px 26px; font-family: var(--heading); font-size: 21px; font-weight: 600; line-height: 1.25; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transition: transform .15s; }
.faq details[open] > summary::before { transform: rotate(45deg); top: 16px; }
.faq details > div { padding: 0 0 10px 26px; }
.cta-box { margin: 40px 0 0; padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cta-box h2 { margin: 0 0 8px; font-size: 27px; }
.cta-box p { color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* the side column */
aside { position: sticky; top: 20px; font-size: 14.5px; }
aside h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--body); font-weight: 500; color: var(--muted); margin: 0 0 10px; padding: 0; }
aside ul { list-style: none; padding: 0; margin: 0 0 26px; }
aside li { margin: 0; border-left: 1px solid var(--line); }
aside li a { display: block; padding: 5px 0 5px 14px; color: var(--text); text-decoration: none; }
aside li a:hover, aside li a[aria-current="page"] { color: var(--accent); }
aside li:has(a[aria-current="page"]) { border-left-color: var(--accent); }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 20px; padding: 30px 0 26px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.foot h2 { font-family: var(--body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin: 0 0 10px; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 5px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.sig-line { display: inline-flex; align-items: baseline; gap: 10px; font-style: italic; }
.sig { font-family: var(--script); font-style: normal; font-size: 36px; line-height: 1; color: var(--accent); transform: rotate(-4deg); display: inline-block; padding: 0 10px 2px 4px; text-decoration: none; }
.foot .sig { color: var(--accent); }

@media (max-width: 900px) {
  .page { grid-template-columns: minmax(0, 1fr); gap: 0; }
  aside { position: static; margin-top: 34px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top .wrap { gap: 6px 14px; }
  .brand { font-size: 40px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 2px 14px; font-size: 14px; }
  .top .cta { margin-left: auto; min-height: 36px; padding: 0 14px; font-size: 14px; }
  .answer { font-size: 17px; padding: 14px 16px; }
  th, td { padding: 8px 10px; }
}
@media print { .top .nav, .top .cta, aside, .cta-box, .foot-grid { display: none; } body { background: #fff; color: #000; } }
