/*
Theme Name: Fysis
Theme URI: https://fysis.se/
Author: Mikael Linder
Author URI: https://fysis.se/
Description: Eget tillgängligt tema för fysis.se – en snabb väg ut ur skärmen och in i rörelse.
Version: 0.1.2
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: fysis
*/

:root {
	--fysis-ink: #0b191b;
	--fysis-ink-soft: #173033;
	--fysis-paper: #f2f4e9;
	--fysis-lime: #c9ff4a;
	--fysis-coral: #ff765b;
	--fysis-blue: #9edcf1;
	--fysis-line: rgba(11, 25, 27, 0.18);
	--fysis-radius: 28px;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--fysis-paper);
	color: var(--fysis-ink);
	scroll-behavior: smooth;
}

body {
	background: var(--fysis-paper);
	color: var(--fysis-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

body.fysis-timer-active {
	background: var(--fysis-ink);
	color: var(--fysis-paper);
}

a {
	color: inherit;
}

button,
input {
	font: inherit;
}

button {
	color: inherit;
}

[hidden] {
	display: none !important;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
	outline: 4px solid var(--fysis-coral);
	outline-offset: 4px;
}

.fysis-skip-link {
	background: var(--fysis-lime);
	color: var(--fysis-ink);
	font-weight: 800;
	left: 12px;
	padding: 12px 16px;
	position: fixed;
	top: -100px;
	z-index: 10000;
}

.fysis-skip-link:focus {
	top: 12px;
}

.fysis-shell {
	margin: 0 auto;
	max-width: 1600px;
	min-height: 100svh;
	overflow: hidden;
	padding: 0 clamp(20px, 4.3vw, 72px);
}

.fysis-site-header {
	align-items: center;
	border-bottom: 1px solid var(--fysis-line);
	display: flex;
	height: 92px;
	justify-content: space-between;
	position: relative;
	z-index: 10;
}

.fysis-brand {
	align-items: center;
	display: flex;
	gap: 12px;
	text-decoration: none;
}

.fysis-mark {
	height: 38px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 3.5;
	width: 38px;
}

.fysis-brand > span {
	font-size: 31px;
	font-weight: 900;
	letter-spacing: -0.07em;
	line-height: 1;
}

.fysis-purpose {
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.17em;
}

.fysis-mobile-homescreen {
	display: none;
}

.fysis-site-footer {
	align-items: center;
	border-top: 1px solid var(--fysis-line);
	display: flex;
	font-size: 11px;
	font-weight: 780;
	justify-content: space-between;
	letter-spacing: 0.06em;
	min-height: 72px;
	text-transform: uppercase;
}

.fysis-site-footer > div,
.fysis-site-footer nav {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.fysis-site-footer nav a {
	text-underline-offset: 4px;
}

.fysis-kicker {
	align-items: center;
	display: flex;
	font-size: 12px;
	font-weight: 900;
	gap: 10px;
	letter-spacing: 0.14em;
	margin: 0 0 25px;
	text-transform: uppercase;
}

.fysis-kicker > span {
	background: var(--fysis-coral);
	border-radius: 99px;
	display: inline-block;
	height: 10px;
	width: 10px;
}

.fysis-hero {
	display: grid;
	gap: 5vw;
	grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
	min-height: calc(100svh - 164px);
	padding: clamp(50px, 7vh, 88px) 0 50px;
}

.fysis-hero-copy {
	max-width: 760px;
}

.fysis-hero h1,
.fysis-activity-main h1,
.fysis-generator-copy h1,
.fysis-prose h1,
.fysis-timer-view h2,
.fysis-done-view h2 {
	font-size: clamp(64px, 8.7vw, 142px);
	font-weight: 920;
	letter-spacing: -0.077em;
	line-height: 0.82;
	margin: 0;
}

.fysis-lead {
	font-size: clamp(18px, 1.55vw, 25px);
	font-weight: 560;
	letter-spacing: -0.02em;
	line-height: 1.38;
	margin: 34px 0 32px;
}

.fysis-primary-button {
	align-items: center;
	background: var(--fysis-lime);
	border: 0;
	border-radius: 100px;
	box-shadow: 0 0 0 2px var(--fysis-ink);
	color: var(--fysis-ink);
	cursor: pointer;
	display: flex;
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 850;
	gap: 28px;
	justify-content: space-between;
	max-width: 465px;
	min-height: 76px;
	padding: 10px 14px 10px 31px;
	text-decoration: none;
	transition: box-shadow 160ms ease, transform 160ms ease;
	width: 100%;
}

.fysis-primary-button > b {
	align-items: center;
	background: var(--fysis-ink);
	border-radius: 50%;
	color: var(--fysis-lime);
	display: flex;
	flex: 0 0 auto;
	font-size: 29px;
	font-weight: 500;
	height: 50px;
	justify-content: center;
	width: 50px;
}

.fysis-primary-button:not(.is-disabled):hover {
	box-shadow: 5px 6px 0 var(--fysis-ink);
	transform: translate(-2px, -3px);
}

.fysis-primary-button.is-disabled {
	cursor: default;
	opacity: 0.62;
}

.fysis-primary-button.fysis-compact {
	font-size: 17px;
	min-height: 66px;
	padding-left: 25px;
}

.fysis-primary-button.fysis-compact > b {
	height: 43px;
	width: 43px;
}

.fysis-text-link,
.fysis-back-link,
.fysis-timer-done,
.fysis-test-sound {
	background: transparent;
	border: 0;
	border-bottom: 1px solid currentColor;
	cursor: pointer;
	font-weight: 780;
	padding: 4px 0;
	text-decoration: none;
}

.fysis-text-link {
	display: block;
	margin: 22px 0 44px 30px;
	width: max-content;
}

.fysis-trust-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 11px;
	font-weight: 760;
	gap: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fysis-trust-row i {
	background: var(--fysis-ink);
	border-radius: 50%;
	height: 3px;
	opacity: 0.4;
	width: 3px;
}

.fysis-exit-visual {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 490px;
	position: relative;
}

.fysis-screen-shape {
	background: var(--fysis-ink);
	border: 3px solid var(--fysis-ink);
	border-radius: 55px;
	box-shadow: inset 0 0 0 14px var(--fysis-paper);
	height: min(34vw, 520px);
	min-height: 390px;
	min-width: 300px;
	position: relative;
	transform: rotate(5deg);
	width: min(27vw, 410px);
}

.fysis-screen-dot {
	background: var(--fysis-ink);
	border-radius: 99px;
	bottom: 24px;
	height: 7px;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	width: 60px;
}

.fysis-exit-arrow {
	align-items: center;
	background: var(--fysis-lime);
	border: 3px solid var(--fysis-ink);
	border-radius: 50%;
	display: flex;
	height: 49%;
	justify-content: center;
	position: absolute;
	right: -22%;
	top: -11%;
	width: 64%;
}

.fysis-exit-arrow span {
	font-size: clamp(88px, 10vw, 160px);
	font-weight: 200;
	line-height: 1;
	transform: translate(-2px, -6px);
}

.fysis-exit-visual > p {
	background: var(--fysis-coral);
	border: 3px solid var(--fysis-ink);
	font-size: 11px;
	font-weight: 950;
	letter-spacing: 0.12em;
	line-height: 1.25;
	margin: -40px 0 0 -32%;
	padding: 15px 20px;
	position: relative;
	transform: rotate(-6deg);
}

.fysis-activity-layout,
.fysis-generator-layout {
	display: grid;
	gap: clamp(28px, 5vw, 80px);
	grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
	min-height: calc(100svh - 164px);
	padding: 34px 0 60px;
	position: relative;
}

.fysis-back-link {
	align-self: start;
	border: 0;
	left: 0;
	opacity: 0.74;
	position: absolute;
	top: 31px;
}

.fysis-activity-main {
	max-width: 760px;
	padding-top: 76px;
}

.fysis-activity-main h1 {
	font-size: clamp(59px, 7vw, 112px);
}

.fysis-activity-intro {
	font-size: clamp(18px, 1.7vw, 25px);
	font-weight: 590;
	line-height: 1.35;
	margin: 27px 0 35px;
	max-width: 610px;
}

.fysis-steps {
	list-style: none;
	margin: 0;
	max-width: 720px;
	padding: 0;
}

.fysis-steps li {
	align-items: center;
	border-top: 1px solid var(--fysis-line);
	display: grid;
	font-size: clamp(16px, 1.2vw, 19px);
	font-weight: 630;
	gap: 22px;
	grid-template-columns: 43px 1fr;
	line-height: 1.45;
	padding: 17px 0;
}

.fysis-steps b {
	align-items: center;
	background: var(--fysis-ink);
	border-radius: 50%;
	color: var(--fysis-paper);
	display: flex;
	font-size: 13px;
	height: 36px;
	justify-content: center;
	width: 36px;
}

.fysis-low-load {
	border-bottom: 1px solid var(--fysis-line);
	border-top: 1px solid var(--fysis-line);
	margin-top: 10px;
	max-width: 720px;
}

.fysis-low-load summary {
	cursor: pointer;
	display: flex;
	font-size: 15px;
	font-weight: 800;
	justify-content: space-between;
	list-style: none;
	padding: 19px 0;
}

.fysis-low-load p {
	line-height: 1.5;
	margin: 0;
	padding: 0 45px 21px 0;
}

.fysis-safety {
	font-size: 12px;
	font-weight: 650;
	opacity: 0.68;
}

.fysis-start-card {
	align-self: center;
	background: var(--fysis-blue);
	border: 3px solid var(--fysis-ink);
	border-radius: var(--fysis-radius);
	box-shadow: 9px 10px 0 var(--fysis-ink);
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3vw, 42px);
	transform: rotate(1.8deg);
}

.fysis-start-card > p {
	font-size: 12px;
	font-weight: 950;
	letter-spacing: 0.15em;
	margin: 0;
}

.fysis-start-card > strong {
	font-size: clamp(65px, 6vw, 96px);
	letter-spacing: -0.08em;
	line-height: 1;
	margin: 15px 0 5px;
}

.fysis-start-card > span {
	font-size: 13px;
	font-weight: 650;
	margin-bottom: 22px;
}

.fysis-sound-choice {
	align-items: center;
	display: flex;
	font-size: 14px;
	font-weight: 750;
	gap: 10px;
	margin: 0 0 8px;
}

.fysis-sound-choice input {
	accent-color: var(--fysis-ink);
	height: 20px;
	width: 20px;
}

.fysis-test-sound {
	align-self: flex-start;
	font-size: 13px;
	margin: 0 0 25px 30px;
}

body.fysis-timer-active .fysis-shell {
	background: var(--fysis-ink);
}

body.fysis-timer-active .fysis-site-header,
body.fysis-timer-active .fysis-site-footer {
	border-color: rgba(242, 244, 233, 0.2);
}

.fysis-timer-view {
	align-items: center;
	color: var(--fysis-paper);
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100svh - 164px);
	padding: 45px 0 65px;
	text-align: center;
}

.fysis-kicker.fysis-light > span {
	background: var(--fysis-lime);
}

.fysis-timer-view h2 {
	color: var(--fysis-lime);
	font-size: clamp(64px, 8.5vw, 130px);
}

.fysis-timer {
	font-size: clamp(68px, 10vw, 150px);
	font-variant-numeric: tabular-nums;
	font-weight: 220;
	letter-spacing: -0.07em;
	line-height: 1;
	margin: 34px 0 8px;
}

.fysis-timer-view > p:not(.fysis-kicker) {
	font-size: 14px;
	font-weight: 600;
	opacity: 0.73;
}

.fysis-timer-done {
	color: var(--fysis-paper);
	margin-top: 28px;
	opacity: 0.75;
}

.fysis-done-view {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100svh - 164px);
	padding: 65px 20px;
	text-align: center;
}

.fysis-done-mark {
	align-items: center;
	background: var(--fysis-lime);
	border: 3px solid var(--fysis-ink);
	border-radius: 50%;
	display: flex;
	font-size: 54px;
	font-weight: 900;
	height: 100px;
	justify-content: center;
	margin-bottom: 25px;
	transform: rotate(-6deg);
	width: 100px;
}

.fysis-done-view h2 {
	font-size: clamp(80px, 10vw, 150px);
}

.fysis-done-view > p:not(.fysis-kicker) {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.5;
	margin: 27px auto 35px;
	max-width: 530px;
}

.fysis-done-view .fysis-primary-button {
	max-width: 390px;
}

.fysis-done-view .fysis-text-link {
	margin: 22px 0 0;
}

.fysis-share-status {
	font-size: 13px !important;
	margin: 14px 0 0 !important;
	min-height: 20px;
}

.fysis-generator-layout {
	grid-template-columns: minmax(0, 0.95fr) minmax(350px, 0.7fr);
	padding-top: 100px;
}

.fysis-generator-copy h1 {
	font-size: clamp(62px, 7vw, 108px);
}

.fysis-generator-copy > p:last-child {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	max-width: 520px;
}

.fysis-filter-card {
	align-self: center;
	background: var(--fysis-ink);
	border-radius: var(--fysis-radius);
	color: var(--fysis-paper);
	padding: clamp(24px, 3vw, 40px);
}

.fysis-filter-card fieldset {
	border: 0;
	border-bottom: 1px solid rgba(242, 244, 233, 0.2);
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
	margin: 0 0 22px;
	padding: 0 0 22px;
}

.fysis-filter-card legend {
	color: var(--fysis-lime);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.14em;
	margin-bottom: 12px;
}

.fysis-filter-card label {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
}

.fysis-filter-card input {
	accent-color: var(--fysis-lime);
	height: 18px;
	width: 18px;
}

.fysis-filter-card .fysis-primary-button {
	margin-top: 30px;
}

.fysis-generator-error {
	color: var(--fysis-coral);
	font-weight: 750;
}

.fysis-content {
	min-height: calc(100svh - 164px);
	padding: clamp(55px, 8vw, 110px) 0;
}

.fysis-prose {
	font-size: 18px;
	line-height: 1.65;
	margin: 0 auto;
	max-width: 850px;
}

.fysis-prose h1 {
	font-size: clamp(54px, 7vw, 100px);
	margin-bottom: 40px;
}

.fysis-prose h2 {
	font-size: clamp(28px, 4vw, 44px);
	letter-spacing: -0.04em;
	line-height: 1.1;
	margin-top: 55px;
}

.fysis-prose a {
	font-weight: 750;
	text-underline-offset: 4px;
}

.fysis-download-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 35px 0;
}

.fysis-download-grid a {
	background: var(--fysis-lime);
	border: 2px solid var(--fysis-ink);
	border-radius: 20px;
	color: var(--fysis-ink);
	padding: 22px;
	text-decoration: none;
}

.fysis-install-guide {
	max-width: 1120px;
}

.fysis-install-intro {
	font-size: clamp(19px, 2vw, 26px);
	font-weight: 600;
	max-width: 760px;
}

.fysis-install-button {
	margin: 35px 0 15px;
}

.fysis-install-status {
	font-size: 14px;
	font-weight: 750;
	min-height: 24px;
}

.fysis-device-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 55px 0 30px;
}

.fysis-device-card {
	background: var(--fysis-blue);
	border: 3px solid var(--fysis-ink);
	border-radius: var(--fysis-radius);
	box-shadow: 7px 8px 0 var(--fysis-ink);
	padding: clamp(25px, 4vw, 46px);
}

.fysis-device-card-dark {
	background: var(--fysis-ink);
	color: var(--fysis-paper);
}

.fysis-device-label {
	color: inherit;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.15em;
	margin: 0;
}

.fysis-device-card-dark .fysis-device-label {
	color: var(--fysis-lime);
}

.fysis-device-card h2 {
	font-size: clamp(34px, 4vw, 55px);
	margin: 12px 0 30px;
}

.fysis-device-card ol {
	display: grid;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fysis-device-card li {
	align-items: flex-start;
	display: grid;
	gap: 14px;
	grid-template-columns: 38px 1fr;
}

.fysis-device-card li > span {
	align-items: center;
	background: var(--fysis-lime);
	border: 2px solid var(--fysis-ink);
	border-radius: 50%;
	color: var(--fysis-ink);
	display: flex;
	font-size: 13px;
	font-weight: 900;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.fysis-device-card li p {
	font-size: 16px;
	font-weight: 650;
	line-height: 1.45;
	margin: 4px 0 0;
}

.fysis-install-note {
	border-left: 8px solid var(--fysis-coral);
	margin-top: 40px;
	max-width: 780px;
	padding: 5px 0 5px 24px;
}

.fysis-install-note p {
	margin-bottom: 0;
}

@media (max-width: 850px) {
	.fysis-shell {
		padding: 0 20px;
	}

	.fysis-site-header {
		height: 76px;
	}

	.fysis-purpose {
		display: none;
	}

	.fysis-mobile-homescreen {
		align-items: center;
		color: var(--fysis-ink-soft);
		display: inline-flex;
		font-size: 11px;
		font-weight: 780;
		gap: 7px;
		line-height: 1.15;
		max-width: 126px;
		text-align: right;
		text-decoration: none;
	}

	.fysis-mobile-homescreen svg {
		flex: 0 0 auto;
		height: 19px;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 1.8;
		width: 19px;
	}

	.fysis-mark {
		height: 32px;
		width: 32px;
	}

	.fysis-brand > span {
		font-size: 27px;
	}

	.fysis-hero {
		display: flex;
		flex-direction: column;
		gap: 44px;
		min-height: auto;
		padding: 48px 0 36px;
	}

	.fysis-hero h1 {
		font-size: clamp(62px, 20vw, 92px);
	}

	.fysis-lead {
		margin: 28px 0;
	}

	.fysis-primary-button {
		min-height: 70px;
		padding-left: 25px;
	}

	.fysis-text-link {
		margin-bottom: 35px;
	}

	.fysis-exit-visual {
		min-height: 420px;
	}

	.fysis-screen-shape {
		height: 410px;
		min-height: 0;
		min-width: 0;
		width: 310px;
	}

	.fysis-exit-arrow {
		right: -9%;
	}

	.fysis-exit-visual > p {
		margin-left: -35%;
	}

	.fysis-activity-layout,
	.fysis-generator-layout {
		display: block;
		min-height: auto;
		padding: 30px 0 55px;
	}

	.fysis-activity-main {
		padding-top: 70px;
	}

	.fysis-activity-main h1 {
		font-size: clamp(60px, 18vw, 84px);
	}

	.fysis-start-card {
		margin: 38px 4px 20px;
	}

	.fysis-timer-view,
	.fysis-done-view {
		min-height: calc(100svh - 148px);
	}

	.fysis-timer-view h2 {
		font-size: clamp(64px, 19vw, 96px);
	}

	.fysis-generator-layout {
		padding-top: 100px;
	}

	.fysis-generator-copy h1 {
		font-size: clamp(58px, 17vw, 82px);
	}

	.fysis-filter-card {
		margin-top: 40px;
	}

	.fysis-site-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
		padding: 24px 0;
	}

	.fysis-site-footer nav {
		gap: 12px 18px;
	}

	.fysis-download-grid {
		grid-template-columns: 1fr;
	}

	.fysis-device-grid {
		grid-template-columns: 1fr;
	}
}

@media (display-mode: standalone) {
	.fysis-mobile-homescreen {
		display: none;
	}
}

@media (max-width: 430px) {
	.fysis-hero {
		padding-top: 39px;
	}

	.fysis-kicker {
		font-size: 10px;
		margin-bottom: 20px;
	}

	.fysis-hero h1 {
		font-size: 18.3vw;
	}

	.fysis-lead br {
		display: none;
	}

	.fysis-trust-row {
		font-size: 9px;
		gap: 7px;
	}

	.fysis-screen-shape {
		height: 365px;
		width: 275px;
	}

	.fysis-exit-visual {
		min-height: 375px;
	}

	.fysis-steps li {
		gap: 14px;
		grid-template-columns: 38px 1fr;
	}

	.fysis-start-card {
		box-shadow: 6px 7px 0 var(--fysis-ink);
	}

	.fysis-filter-card fieldset {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
