/* Sisyphus website. The client's look (client/.../ui/Theme.kt): black, grays and white, Poppins. */

@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(assets/fonts/poppins_regular.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(assets/fonts/poppins_medium.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(assets/fonts/poppins_semibold.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(assets/fonts/poppins_bold.ttf) format("truetype"); }

:root {
	--ink: #0e0e11;
	--surface: #141417;
	--line: rgba(255, 255, 255, 0.1);
	--line-strong: rgba(255, 255, 255, 0.3);
	--text: #ffffff;
	--dim: #c8c8ce;
	--muted: #8a8a92;
	--logo: #e4e4e8;
	--radius: 14px;
	--page: 1100px;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ink);
	color: var(--dim);
	font: 400 1rem/1.65 Poppins, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.125rem; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Buttons: the client's look, a faint fill and border that brighten on hover. */

.button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 20px;
	border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 11px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--text); font: 500 0.95rem/1 Poppins, sans-serif; text-decoration: none; white-space: nowrap;
	transition: background-color 0.15s, border-color 0.15s;
}
.button:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--line-strong); }
/* The main call to action (the Discord button in the hero and the price) is the light one. */
.actions > .button:first-child:not(.button-disabled), .price-buy > .button:not(.button-disabled) { background: var(--logo); border-color: var(--logo); color: var(--ink); }
.actions > .button:first-child:not(.button-disabled):hover, .price-buy > .button:not(.button-disabled):hover { background: var(--text); border-color: var(--text); }
.button-disabled, .button-disabled:hover { color: var(--muted); background: transparent; border-style: dashed; cursor: default; }
.site-header .button { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }

/* Hero: the headline, and the hill with our logo as the boulder. */

.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 88px; }
.hero h1 {
	margin: 0 0 20px; color: var(--text);
	font-size: clamp(2.4rem, 5.6vw, 4.25rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em;
}
.hero p { margin: 0 0 32px; max-width: 34em; font-size: 1.075rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .version { margin: 22px 0 0; color: var(--muted); font-size: 0.875rem; }

/* The hill is a square box: the slope runs from (6%, 90%) to (90%, 16%), and the boulder (our logo,
   22% across) sits on it, rolling up once when the page opens. Its positions are worked out from that
   line: centre = a point on the slope + 11% along the slope's upward normal (-0.66, -0.75). */
.hill { position: relative; width: 100%; aspect-ratio: 1; }
.hill svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hill .slope { stroke: var(--line-strong); stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke; }
.hill .ground { fill: url(#hill-fade); }
.boulder {
	position: absolute; width: 22%; height: 22%; left: 54.9%; top: 11.5%;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
	animation: climb 2.4s cubic-bezier(0.25, 0.7, 0.25, 1) 0.25s both;
}
@keyframes climb {
	from { left: 0.3%; top: 59.6%; transform: rotate(-380deg); }
	to { left: 54.9%; top: 11.5%; transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .boulder { animation: none; } }

/* Sections */

.section { border-top: 1px solid var(--line); padding: 80px 0; }
.section h2 { margin: 0 0 12px; color: var(--text); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.section .lead { margin: 0 0 40px; max-width: 38em; }

/* What it does: one row per category, with what it has today. */

.categories { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.categories li { display: grid; grid-template-columns: 44px 160px 1fr; align-items: center; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.categories .name { color: var(--text); font-weight: 500; }
.categories .has { color: var(--dim); }
.categories .soon { color: var(--muted); }
.icon {
	display: inline-block; width: 26px; height: 26px; background: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.categories .icon { color: var(--logo); justify-self: center; }
.categories .soon-row .icon { color: var(--muted); }

/* How it works: a real sequence, so it's numbered. */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
	content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px;
	border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); font-weight: 600; font-size: 0.95rem;
}
.steps h3 { margin: 0 0 8px; color: var(--text); font-size: 1.075rem; font-weight: 600; }
.steps p { margin: 0; font-size: 0.95rem; }

/* Price */

.price { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.price h2 { margin-bottom: 4px; }
.amount { color: var(--text); font-size: clamp(2.6rem, 6vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.amount span { color: var(--muted); font-size: 1.05rem; font-weight: 400; letter-spacing: 0; }
.price ul { margin: 18px 0 0; padding-left: 1.1em; }
.price li { margin: 4px 0; }
.price .note { margin: 12px 0 0; color: var(--muted); font-size: 0.875rem; text-align: right; }
.price-buy { text-align: right; }

/* Changelog */

.page-head { padding: 64px 0 24px; }
.page-head h1 { margin: 0 0 8px; color: var(--text); font-size: clamp(2.2rem, 5vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.page-head p { margin: 0; }

.timeline { position: relative; margin: 32px 0 96px; padding-left: 0; }
.release { display: grid; grid-template-columns: 140px 1fr; gap: 0 28px; position: relative; padding: 0 0 40px; }
.release::before { content: ""; position: absolute; left: 160px; top: 10px; bottom: -10px; width: 1px; background: var(--line); }
.release:last-child::before { bottom: 0; }
.release::after { content: ""; position: absolute; left: 156px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line-strong); }
.release:first-child::after { background: var(--logo); border-color: var(--logo); }
.release-date { color: var(--muted); font-size: 0.9rem; text-align: right; padding-top: 1px; }
.release h2 { grid-column: 2; margin: 0 0 8px 24px; color: var(--text); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.release ul { grid-column: 2; margin: 0 0 0 24px; padding-left: 1.1em; }
.release li { margin: 4px 0; max-width: 60em; }
.release h2, .release ul { grid-row: auto; }
.release .release-date { grid-row: 1 / span 2; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { margin-left: auto; }

/* Phones */

@media (max-width: 760px) {
	.wrap { padding: 0 16px; }
	.site-header .wrap { gap: 16px; }
	.nav { gap: 16px; }
	.site-header .button { display: none; }
	.hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; gap: 8px; }
	.hill { max-width: 360px; order: -1; justify-self: center; }
	.section { padding: 56px 0; }
	.categories li { grid-template-columns: 32px 1fr; gap: 4px 14px; }
	.categories .icon { grid-row: span 2; }
	.steps { grid-template-columns: 1fr; }
	.price { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
	.price-buy, .price .note { text-align: left; }
	.release { grid-template-columns: 1fr; gap: 0; padding-left: 26px; }
	.release::before { left: 4px; }
	.release::after { left: 0; }
	.release .release-date { grid-row: auto; text-align: left; margin-bottom: 2px; }
	.release h2, .release ul { grid-column: 1; margin-left: 0; }
	.site-footer .legal { margin-left: 0; }
}
