/* The account area: the presentation page's paper and ink, quieter. */
:root {
	--paper: #fbfbfc;
	--mist: #f1f2f4;
	--ink: #15181c;
	--slate: #5a616b;
	--rule: #e2e4e8;
	--amber: #9c5a12;
	--glow: #e0a84f;
	--ok: #1f6b3a;
	--bad: #a3261b;
	--billing: Bahnschrift, "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--amber); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.wrap { width: min(100% - 2rem, 980px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 420px); }

/* Bar */
.bar { background: rgb(251 251 252 / 90%); border-bottom: 1px solid var(--rule); }
.bar .wrap { display: flex; align-items: center; gap: 1.5rem; height: 52px; }
.brand { font: 700 1.05rem/1 var(--billing); font-stretch: 75%; color: var(--ink); text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; font-size: .875rem; }
.bar nav a { color: var(--slate); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink); }
.bar form { margin: 0; }
.count { display: inline-block; min-width: 1.3em; margin-left: .2em; padding: 0 .35em; border-radius: 999px; background: var(--amber); color: #fff; font-size: .75rem; text-align: center; }

main { padding: 3.5rem 0 5rem; }
h1, h2 { font-family: var(--billing); font-stretch: 75%; font-weight: 700; margin: 0 0 1rem; line-height: 1; }
h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.lede { color: var(--slate); margin: 0 0 2rem; }

/* Forms */
label { display: block; margin: 0 0 1.1rem; font-weight: 600; font-size: .9375rem; }
label small { display: block; font-weight: 400; color: var(--slate); }
input[type="email"], input[type="password"], input[type="text"], textarea {
	display: block; width: 100%; margin-top: .35rem; padding: .7rem .8rem;
	border: 1px solid #cfd3d9; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 400;
}
textarea { min-height: 11rem; resize: vertical; }
button, .pill {
	display: inline-block; padding: .65rem 1.3rem; border: 0; border-radius: 999px;
	background: var(--ink); color: #fff; font: 600 .9375rem/1.2 var(--body); text-decoration: none; cursor: pointer;
}
button:hover, .pill:hover { background: #2a2f36; }
.link { padding: 0; background: none; color: var(--slate); font-weight: 400; font-size: .875rem; }
.link:hover { background: none; color: var(--ink); }
.secondary { background: var(--mist); color: var(--ink); }
.secondary:hover { background: var(--rule); }
.after { margin-top: 1.5rem; color: var(--slate); font-size: .9375rem; }

/* Notices */
.notice { margin: 0 0 1.5rem; padding: .8rem 1rem; border-radius: 10px; border-left: 4px solid var(--ok); background: #eef6f0; }
.notice--bad { border-color: var(--bad); background: #fbefed; }

/* Lists */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.rows li { display: flex; gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.rows a { color: var(--ink); font-weight: 600; text-decoration: none; }
.rows a:hover { text-decoration: underline; }
.rows .meta { margin-left: auto; color: var(--slate); font-size: .875rem; white-space: nowrap; }
.empty { color: var(--slate); }
.status { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--mist); color: var(--slate); }
.status--open { background: #fdf1df; color: var(--amber); }
.status--answered { background: #eef6f0; color: var(--ok); }
.tabs { display: flex; gap: .5rem; margin: 0 0 1.5rem; }
.tabs a { padding: .35rem .9rem; border-radius: 999px; color: var(--slate); text-decoration: none; font-size: .875rem; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }

/* A ticket */
.head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.head form { margin: 0; }
.thread { margin: 2rem 0; }
.message { margin: 0 0 1rem; padding: 1rem 1.2rem; border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
.message--staff { background: var(--mist); border-color: transparent; }
.message header { display: flex; gap: .75rem; margin-bottom: .5rem; font-size: .875rem; color: var(--slate); }
.message header b { color: var(--ink); }
.message p { margin: 0 0 .75rem; overflow-wrap: anywhere; }
.message p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card { padding: 1.3rem; border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
.card h2 { margin: 0 0 .6rem; font-size: 1.35rem; }
.card p { margin: 0 0 1rem; color: var(--slate); }

footer { padding: 2rem 0; border-top: 1px solid var(--rule); color: var(--slate); font-size: .8125rem; }

@media (max-width: 560px) {
	.bar nav { gap: .9rem; }
	.rows li { flex-wrap: wrap; }
	.rows .meta { margin-left: 0; width: 100%; }
}

/* Buying and licenses */
.downloads { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .6rem; }
.hint { color: var(--slate); font-size: .875rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1.2rem; font-weight: 400; font-size: .9375rem; }
.consent input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--ink); }
.policy h2 { margin-top: 2rem; font-size: 1.35rem; }
.policy p, .policy li { color: var(--ink); }
.policy ul { padding-left: 1.2rem; }
footer a { color: var(--slate); }
.price { margin: 2rem 0 1rem; font: 700 2rem/1 var(--billing); font-stretch: 75%; }
.price small { display: block; margin-top: .4rem; font: 400 .875rem/1.4 var(--body); color: var(--slate); }
.license { margin: 0 0 1.5rem; }
.license .head { align-items: center; }
.license h3 { margin: 1.5rem 0 .5rem; font-size: 1rem; }
.key { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; }
.key span { color: var(--slate); font-size: .875rem; }
.key code { padding: .35rem .6rem; border-radius: 8px; background: var(--mist); font-size: 1rem; letter-spacing: .03em; overflow-wrap: anywhere; user-select: all; }
.domain { margin-top: 1.2rem; }
.domain label { margin-bottom: .6rem; }
.status--active { background: #eef6f0; color: var(--ok); }
.status--revoked { background: #fbefed; color: var(--bad); }
