/* sigelo relay — one stylesheet: no web fonts, no scripts, nothing fetched. Paper, ink and wax. */
:root {
  --bg: #f7f2e8; --paper: #fcf9f2; --fg: #1f1a17; --muted: #6b625a; --line: #e3d9c6; --code: #efe7d6;
  --accent: #9b2226; --accent-hover: #7a1a1d; --on-accent: #fcf9f2; --link: #9b2226; --art: #9b2226;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1d1916; --paper: #26211d; --fg: #efe7d8; --muted: #b5aa9b; --line: #3d3530; --code: #2e2823;
    --accent: #9b2226; --accent-hover: #b4292e; --on-accent: #fcf9f2; --link: #ec8d8f; --art: #ec8d8f; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.0625rem/1.65 var(--sans); overflow-wrap: break-word; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 3px; }

/* header and footer */
.top { border-bottom: 1px solid var(--line); }
.bar { max-width: 62rem; margin: 0 auto; padding: 1rem 20px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; }
.wordmark { font: 700 1.45rem/1 var(--serif); color: var(--fg); text-decoration: none; letter-spacing: .01em; }
.wordmark:hover { color: var(--link); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .98rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--link); }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
footer { border-top: 1px solid var(--line); margin-top: 4.5rem; }
footer .bar { padding: 1.6rem 20px 2.4rem; color: var(--muted); font-size: .95rem; }
footer .wordmark { font-size: 1.15rem; color: var(--muted); }
footer summary { color: var(--muted); font-size: .98rem; cursor: pointer; list-style: none; }
footer summary::-webkit-details-marker { display: none; }
footer summary:hover, footer details[open] summary { color: var(--link); }
footer li:has(> details[open]) { flex-basis: 100%; }
footer details ul { margin-top: .5rem; }
footer details span { color: var(--fg); font-size: .98rem; }
main > .untranslated { color: var(--muted); font-size: .92rem; margin-top: 1.4rem; }

/* the text column; cards and the drawing take more room */
main { max-width: 62rem; margin: 0 auto; padding: 0 20px; }
main > * { max-width: 42rem; margin-left: auto; margin-right: auto; }
main > .cards, main > .drawing { max-width: 62rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin-top: 2.6rem; margin-bottom: 1rem; }
h2 { font-size: 1.45rem; margin-top: 2.6rem; margin-bottom: .6rem; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
p, ul, ol, pre, .table { margin-top: 0; margin-bottom: 1.1rem; }
li { margin-bottom: .45rem; }
strong { font-weight: 650; }
code, pre { font-family: var(--mono); font-size: .88em; background: var(--code); border-radius: 6px; }
code { padding: .08em .35em; overflow-wrap: anywhere; }
pre { padding: .85rem 1rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); }
pre code { padding: 0; background: none; font-size: 1em; border-radius: 0; }
[dir="rtl"] code, [dir="rtl"] pre { direction: ltr; unicode-bidi: isolate; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border-bottom: 1px solid var(--line); padding: .55em .6em; text-align: start; vertical-align: top; }
th { font-weight: 650; border-bottom-width: 2px; }
td:first-child, th:first-child { padding-inline-start: 0; }
.center { text-align: center; } .right { text-align: right; }

/* home: hero, drawing, cards */
.hero { padding: 1rem 0 .4rem; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 4.2rem); margin: 1.4rem 0 .6rem; }
.hero h1 + p { font: 600 clamp(1.25rem, 4.8vw, 1.55rem)/1.35 var(--serif); margin-bottom: 1.1rem; }
.cta { margin: 1.6rem auto 1.4rem; }
.cta p { margin: 0; }
.cta a { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 650;
  padding: .85rem 1.4rem; border-radius: 10px; border: 1px solid var(--accent); }
.cta a:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.drawing { margin: 1.4rem auto 2rem; }
.art-svg { display: block; width: 100%; max-width: 34rem; height: auto; margin: 0 auto; }
.art { fill: none; stroke: var(--art); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art-paper { fill: var(--paper); }
.art-dot { fill: var(--art); }
.art-dash { stroke-dasharray: 2 9; }
.art-label { fill: var(--muted); font: 25px var(--sans); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; margin: 2.6rem auto 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; }
.card.pro { border-color: var(--accent); }
.card p { margin-bottom: .7rem; }
.card h3 + p { color: var(--muted); }
.card p:nth-of-type(2) { font: 700 1.3rem/1.3 var(--serif); margin: .2rem 0 .7rem; }
.card p:last-child { margin: auto 0 0; padding-top: .6rem; }
.card p:last-child a { font-weight: 600; }
.card.pro p:nth-of-type(3) { color: var(--link); font-weight: 650; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }

/* pro: the plans, side by side, stacked on a phone; the best one in the accent */
main > .plans { max-width: 62rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.6rem 1.1rem; margin: 2.4rem auto 1.6rem; }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.4rem 1.3rem; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--accent); box-shadow: 0 8px 24px rgba(155, 34, 38, .12); }
.plan > p:first-child { position: absolute; top: -.75rem; inset-inline-start: 1.2rem; margin: 0; padding: .3rem .7rem; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 650 .75rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.plan h3 em { font: 650 .72rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--link);
  border: 1px solid currentColor; border-radius: 999px; padding: .28rem .55rem; }
.plan h3 + p { color: var(--muted); margin: .7rem 0 .2rem; }
.plan h3 + p strong { display: block; color: var(--fg); font: 700 2.5rem/1.1 var(--serif); letter-spacing: -.01em; }
.plan h3 + p + p:not(:last-child) { color: var(--muted); font-size: .88rem; margin: 0; }
.plan > p:last-child { margin: auto 0 0; padding-top: 1.2rem; }
.plan > p:last-child a { display: block; text-align: center; font-weight: 650; text-decoration: none; padding: .75rem 1rem;
  border-radius: 10px; border: 1px solid var(--link); color: var(--link); }
.plan > p:last-child a:hover, .plan.best > p:last-child a { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.plan.best > p:last-child a:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.plans + p, .plans + p + p { color: var(--muted); font-size: .92rem; margin-bottom: .5rem; }

/* connect: the numbered steps */
.steps ol { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0; }
.steps li { counter-increment: step; position: relative; margin: 0; margin-inline-start: 1.1rem; padding: 0 0 1.5rem; padding-inline-start: 2.1rem; border-inline-start: 1px solid var(--line); }
.steps li:last-child { border-inline-start-color: transparent; padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: -1.1rem; top: -.15rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font: 700 1rem/2.2rem var(--sans); text-align: center; }
.steps li > p:first-child { margin-bottom: .6rem; }
.steps pre { margin-bottom: .7rem; }
