:root { --cream: #fff9ea; --text: #5a3d2b; --wood: #dc9a78; }
/* The site's style. The colors come from src/site.config.ts: the build puts
   them in :root as --cream, --text and --wood, above this file. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0; min-height: 100vh; display: flex; flex-direction: column;
	background: var(--cream); color: var(--text);
	font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	overflow-wrap: break-word;
}
a { color: inherit; text-decoration-color: var(--wood); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

header.site { padding: 1rem; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; }
main { flex: 1; width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 1rem 2.5rem; }
footer.site { border-top: 2px solid color-mix(in srgb, var(--wood) 45%, transparent); padding: 1rem; font-size: .9rem; }
footer.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: .5rem 0 1rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .25rem; }
h2, h3 { scroll-margin-top: 1rem; }
h2 .anchor, h3 .anchor { text-decoration: none; }
section + section { margin-top: 3rem; padding-top: 1rem; border-top: 2px dashed color-mix(in srgb, var(--wood) 60%, transparent); }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .3rem; }
code { font: .9em ui-monospace, monospace; background: color-mix(in srgb, var(--wood) 20%, transparent); padding: .05em .3em; border-radius: .3em; }
mark { background: #ffe08a; color: var(--text); padding: 0 .15em; border-radius: .2em; }

.langs { margin: .5rem 0 1rem; font-weight: 700; }
.draft { border: 2px dashed var(--wood); border-radius: .75rem; padding: .75rem 1rem; }
.toc { margin: 0 0 1.5rem; }
.toc summary { cursor: pointer; font-weight: 700; }
.table { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid color-mix(in srgb, var(--text) 18%, transparent); }
th { background: color-mix(in srgb, var(--wood) 22%, transparent); }

.button {
	display: block; margin: .75rem 0; padding: .9rem 1rem; border-radius: 999px; border: 2px solid var(--wood);
	background: var(--wood); color: var(--text); font-weight: 800; font-size: 1.15rem; text-align: center; text-decoration: none;
}
.button.secondary { background: transparent; }
.button.disabled { opacity: .55; cursor: not-allowed; }

/* A short page in the middle of the screen: the house link and not found. */
.card main { max-width: 24rem; padding-top: 1.5rem; text-align: center; }
.card .code { font: 700 1.6rem ui-monospace, monospace; letter-spacing: .15em; }
.small { font-size: .8rem; opacity: .8; word-break: break-all; }

/* The home page. */
.hero { text-align: center; padding: 1.5rem 0 .5rem; }
.hero .logo { display: block; margin: 0 auto .5rem; }
.hero h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.lead { font-size: 1.15rem; max-width: 30rem; margin: 0 auto 1rem; }
.hero .button { max-width: 22rem; margin: 1rem auto; }
.hero + section { border-top: 0; margin-top: 1rem; }
.features { list-style: none; padding: 0; }
.features li { padding: .6rem .9rem; border-radius: .75rem; background: color-mix(in srgb, var(--wood) 14%, transparent); }
