/* typedock-site: one stylesheet for every page. Warm paper and ink, the system's serif for display, no scripts. */
:root {
	--paper: #f6f4ef;
	--card: #fffdf8;
	--ink: #1a1916;
	--muted: #67635a;
	--faint: #8d887d;
	--rule: #e2ded3;
	--accent: #1a1916;
	--accent-ink: #f6f4ef;
	--shadow: 0 1px 0 rgb(0 0 0 / 0.04), 0 24px 60px -24px rgb(40 30 10 / 0.28);
	--serif: "New York", ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--paper: #141311;
		--card: #1b1a17;
		--ink: #efece4;
		--muted: #a29d91;
		--faint: #7d796f;
		--rule: #2c2a25;
		--accent: #efece4;
		--accent-ink: #141311;
		--shadow: 0 1px 0 rgb(255 255 255 / 0.03), 0 24px 60px -24px rgb(0 0 0 / 0.7);
	}
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 17px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { display: flex; gap: 1.25rem; font-size: 0.92rem; color: var(--muted); }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { padding: clamp(3.5rem, 10vh, 6.5rem) 0 2.5rem; text-align: center; }
.eyebrow { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
h1 {
	margin: 0 auto 1.2rem;
	max-width: 15ch;
	font: 400 clamp(2.5rem, 7vw, 4.6rem)/1.04 var(--serif);
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.lede { margin: 0 auto 2.2rem; max-width: 38rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1.25rem; margin: 0; }
.button {
	display: inline-flex; align-items: center; gap: 0.55rem;
	padding: 0.85rem 1.5rem;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
	text-decoration: none;
	transition: transform 120ms ease, opacity 120ms ease;
}
.button:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.button svg { width: 1.05em; height: 1.05em; }
.note { color: var(--faint); font-size: 0.88rem; }

/* The app, framed like a Mac window */
.shot { margin: 3rem auto 0; max-width: 64rem; }
.window {
	border-radius: 14px;
	overflow: hidden;
	background: var(--card);
	border: 1px solid var(--rule);
	box-shadow: var(--shadow);
}
.shot figcaption { margin-top: 0.9rem; text-align: center; color: var(--faint); font-size: 0.85rem; }

/* Features */
.features { padding: clamp(3.5rem, 9vh, 6rem) 0 1rem; }
.section-title { margin: 0 0 0.6rem; font: 400 clamp(1.8rem, 4vw, 2.5rem)/1.12 var(--serif); letter-spacing: -0.015em; text-align: center; text-wrap: balance; }
.section-lede { margin: 0 auto 2.75rem; max-width: 34rem; color: var(--muted); text-align: center; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.grid li { background: var(--paper); padding: 1.5rem 1.4rem 1.6rem; }
.grid h3 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; }
.grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.grid .specimen { margin: 0 0 0.9rem; color: var(--ink); font: 400 2rem/1.1 var(--serif); letter-spacing: -0.01em; }
.grid .specimen.sans { font-family: var(--sans); font-weight: 650; letter-spacing: -0.03em; }
.grid .specimen.mono { font: 500 1.45rem/1.35 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; }

/* Closing call to action */
.closing { padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(3rem, 8vh, 5rem); text-align: center; }
.closing .section-title { margin-bottom: 1.5rem; }

/* Prose pages: privacy, terms, support */
.prose { padding: clamp(2.5rem, 8vh, 4.5rem) 0 3rem; }
.prose h1 { margin: 0 0 1rem; max-width: none; font-size: clamp(2.2rem, 5vw, 3.2rem); text-align: left; }
.prose .lede { margin: 0 0 2rem; text-align: left; }
.prose h2 { margin: 2.4rem 0 0.5rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.005em; }
.prose p, .prose li { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { font-weight: 600; }
.prose .updated { margin-top: 3rem; color: var(--faint); font-size: 0.88rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); color: var(--faint); font-size: 0.86rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 1.6rem; padding-bottom: 2.2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }
