/*
Theme Name: RunTeaming Launch
Theme URI: https://runteaming.com/
Author: RunTeaming
Description: The RunTeaming website and Alpha invitation.
Version: 3.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: runteaming
*/

@font-face {
	font-family: "Fira Sans";
	src: url("assets/fonts/FiraSans-Regular.woff2") format("woff2");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Fira Sans";
	src: url("assets/fonts/FiraSans-SemiBold.woff2") format("woff2");
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

@font-face {
	font-family: "Fira Sans";
	src: url("assets/fonts/FiraSans-ExtraBold.woff2") format("woff2");
	font-style: normal;
	font-weight: 800;
	font-display: swap;
}

:root {
	--snow: #f6fbff;
	--white: #ffffff;
	--ink: #0d2b45;
	--ink-soft: #36566d;
	--blue: #1767e8;
	--blue-deep: #0b479f;
	--aqua: #0aa7ba;
	--orange: #ff6b3d;
	--orange-light: #ff8a66;
	--line: #c9deec;
	--line-soft: #deebf3;
	--wash: #eaf5fb;
	--page: min(1160px, calc(100vw - 48px));
	--shadow: 0 24px 70px rgba(13, 43, 69, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
	margin: 0;
	background: var(--snow);
	color: var(--ink);
	font-family: "Fira Sans", "Trebuchet MS", sans-serif;
	font-size: 17px;
	line-height: 1.56;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
p { margin: 0; }
a { color: var(--blue-deep); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.site-shell { width: var(--page); margin-inline: auto; }

.skip-link {
	position: fixed; top: 12px; left: 12px; z-index: 100;
	padding: 10px 14px; border-radius: 8px;
	background: var(--ink); color: var(--white);
	transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

/* Header */
.site-header {
	display: flex; align-items: center; justify-content: space-between; gap: 28px;
	padding-top: 25px; padding-bottom: 25px;
}
.brand {
	display: inline-flex; align-items: center; gap: 12px;
	color: var(--ink); font-size: 20px; font-weight: 800;
	letter-spacing: -.035em; text-decoration: none;
}
.brand__mark {
	display: grid; width: 46px; height: 46px; flex: 0 0 46px;
	place-items: center; overflow: hidden; border-radius: 50%;
	box-shadow: 0 8px 20px rgba(23, 103, 232, .25);
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.public-nav { display: flex; align-items: center; gap: 30px; }
.public-nav a { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.public-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.public-nav .nav-join {
	padding: 10px 18px; border-radius: 999px;
	background: var(--ink); color: var(--white);
}
.public-nav .nav-join:hover { background: var(--blue-deep); text-decoration: none; }

/* Hero */
.hero {
	display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(44px, 7vw, 86px);
	align-items: center; padding-top: 42px; padding-bottom: 108px;
}
.hero__copy { position: relative; z-index: 2; }
.hero h1 { max-width: 9.5ch; font-size: clamp(54px, 7vw, 84px); line-height: .92; letter-spacing: -.065em; }
.hero__intro { max-width: 34em; margin-top: 28px; color: var(--ink-soft); font-size: 20px; line-height: 1.55; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-top: 34px; }
.hero__actions > span { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.button, .action-button {
	display: inline-flex; min-height: 51px; align-items: center; justify-content: center;
	padding: 13px 22px; border: 0; border-radius: 9px;
	font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer;
}
.button--primary, .action-button {
	background: var(--orange); color: #24150f;
	box-shadow: 7px 7px 0 var(--ink);
}
.button--primary:hover, .action-button:hover { background: var(--orange-light); transform: translate(1px, 1px); box-shadow: 6px 6px 0 var(--ink); }

.hero__game { position: relative; min-height: 640px; padding: 0 0 52px 78px; }
.hero__photo {
	height: 588px; overflow: hidden;
	border-radius: 46% 46% 16px 16px;
	background: var(--wash); box-shadow: var(--shadow);
	clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.match-card {
	position: absolute; left: 0; bottom: 0; width: min(440px, 91%);
	padding: 23px 25px 25px; border: 1px solid var(--line-soft); border-radius: 13px;
	background: var(--white); box-shadow: 0 22px 54px rgba(13, 43, 69, .25);
}
.match-card__label { margin-bottom: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.score-line { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; font-size: 18px; }
.score-line span, .score-line strong { font-weight: 600; }
.score-line--you span::after {
	content: "your team"; display: inline-block; margin-left: 8px; padding: 2px 8px;
	border-radius: 999px; background: var(--wash); color: var(--blue-deep);
	font-size: 11px; font-weight: 600; vertical-align: 2px;
}
.match-card__chase {
	display: flex; flex-direction: column; margin-top: 13px; padding: 15px 16px;
	border-left: 6px solid var(--orange); background: #fff0e9; color: var(--ink);
}
.match-card__chase strong { font-size: 19px; }
.match-card__chase span { margin-top: 2px; color: var(--ink-soft); font-size: 14px; }

/* Three actual steps in the weekly game. */
.play-section { padding: 90px 0 98px; background: var(--wash); }
.section-heading { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: end; }
.section-heading h2 { max-width: 13ch; font-size: clamp(40px, 5vw, 60px); }
.section-heading p { max-width: 30em; color: var(--ink-soft); font-size: 19px; }
.play-steps {
	position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px;
	margin: 66px 0 0; padding: 0; list-style: none;
}
.play-steps::before { content: ""; position: absolute; left: 21px; right: 21px; top: 21px; height: 3px; background: var(--line); }
.play-steps li { position: relative; padding-top: 63px; }
.step-number {
	position: absolute; top: 0; left: 0; z-index: 1;
	display: grid; width: 44px; height: 44px; place-items: center;
	border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800;
	box-shadow: 5px 5px 0 var(--orange);
}
.play-steps h3 { font-size: 26px; }
.play-steps p { max-width: 29ch; margin-top: 11px; color: var(--ink-soft); font-size: 16px; }

/* One concentrated field carries the grit. */
.close-match { padding: 92px 0; background: var(--ink); color: var(--white); }
.close-match__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; }
.close-match h2 { max-width: 11ch; font-size: clamp(42px, 5.4vw, 64px); }
.close-match__grid > div:first-child p { max-width: 35em; margin-top: 21px; color: #cce0ec; font-size: 19px; }
.chase-callout {
	display: grid; grid-template-columns: 1fr auto; align-items: end;
	padding: 29px 31px; background: var(--orange); color: #24150f;
	box-shadow: 12px 12px 0 var(--aqua);
	transform: skewY(-1.5deg);
}
.chase-callout > * { transform: skewY(1.5deg); }
.chase-callout p { grid-column: 1 / -1; font-weight: 600; }
.chase-callout strong { display: block; margin-top: 3px; font-size: clamp(68px, 9vw, 94px); line-height: .88; letter-spacing: -.065em; }
.chase-callout span { grid-column: 1; font-size: 16px; }
.chase-callout b { grid-row: 2 / 4; grid-column: 2; align-self: center; font-size: 23px; }

/* Signup */
.join-section {
	display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: start;
	padding-top: 98px; padding-bottom: 104px;
}
.join-section__copy h2 { max-width: 10ch; font-size: clamp(44px, 5vw, 62px); }
.join-section__copy p { max-width: 26em; margin-top: 19px; color: var(--ink-soft); font-size: 18px; }
.signup-area { padding: 29px; border: 1px solid var(--line); background: var(--white); box-shadow: 9px 9px 0 var(--wash); }
.signup-form > label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.signup-row { display: flex; gap: 10px; }
.signup-form input[type=email] {
	flex: 1 1 240px; min-width: 0; padding: 13px 15px;
	border: 1px solid #9ab8ca; border-radius: 8px; background: var(--white); color: var(--ink);
}
.signup-form button {
	padding: 13px 19px; border: 0; border-radius: 8px;
	background: var(--orange); color: #24150f; font-weight: 800; cursor: pointer;
}
.signup-form button:hover { background: var(--orange-light); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
.consent-row input { margin-top: 4px; flex-shrink: 0; accent-color: var(--blue); }
.consent-row label { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.consent-copy { margin-top: 12px; color: var(--ink-soft); font-size: 13.5px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Alpha invitation */
.alpha-page { padding-top: 58px; padding-bottom: 96px; }
.alpha-kicker { margin-bottom: 16px; color: var(--blue-deep); font-weight: 800; }
.alpha-page__intro { max-width: 780px; }
.alpha-page__intro h1 { max-width: 11ch; font-size: clamp(50px, 7vw, 78px); }
.alpha-page__intro > p:last-child { max-width: 37em; margin-top: 24px; color: var(--ink-soft); font-size: 20px; }
.alpha-page__form {
	display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: start;
	margin-top: 70px; padding: 54px; background: var(--ink); color: var(--white);
}
.alpha-page__form h2 { font-size: clamp(36px, 4vw, 48px); }
.alpha-page__form > div:first-child p { margin-top: 17px; color: #cce0ec; }
.alpha-page__form .signup-area { color: var(--ink); box-shadow: 9px 9px 0 var(--orange); }
.alpha-page__ready { max-width: 720px; padding-top: 70px; }
.alpha-page__ready h2 { font-size: clamp(34px, 4vw, 48px); }
.alpha-page__ready ul { display: grid; gap: 10px; margin: 25px 0; padding-left: 22px; }

/* Public guides, policy pages and result pages */
.content-page, .page-body { padding-top: 52px; padding-bottom: 92px; }
.content-page__inner, .page-body { max-width: 760px; }
.content-page h1, .page-body h1 { margin-bottom: 24px; font-size: clamp(42px, 5.5vw, 62px); }
.content-page h2, .page-body h2 { margin: 42px 0 14px; font-size: 30px; }
.content-page h3, .page-body h3 { margin: 30px 0 10px; font-size: 23px; }
.content-page p, .page-body p { margin-bottom: 1em; }
.content-page ul, .content-page ol, .page-body ul, .page-body ol { padding-left: 24px; }
.content-page li, .page-body li { margin-bottom: 9px; }
.content-page table, .page-body table { width: 100%; margin: 22px 0; border-collapse: collapse; }
.content-page th, .content-page td, .page-body th, .page-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.guide-nav { margin-bottom: 36px; padding: 20px 22px; background: var(--wash); }
.guide-nav ul { display: flex; flex-wrap: wrap; gap: 9px 24px; margin: 0; padding: 0; list-style: none; }
.inbox-alert { display: grid; gap: 7px; margin: 27px 0; padding: 21px 22px; border: 3px solid var(--ink); background: #fff0e9; box-shadow: 7px 7px 0 var(--orange); }
.inbox-alert strong { font-size: 22px; line-height: 1.15; }
.inbox-alert span { line-height: 1.5; }

/* Footer */
.site-footer {
	display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 34px;
	align-items: end; padding-top: 40px; padding-bottom: 46px; border-top: 1px solid var(--line);
}
.site-footer__brand p { margin-top: 10px; color: var(--ink-soft); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-links a { color: var(--ink); font-size: 14px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }

@media (max-width: 940px) {
	.hero { grid-template-columns: 1fr; gap: 56px; padding-top: 40px; }
	.hero__copy { max-width: 700px; }
	.hero h1 { max-width: 11ch; }
	.hero__game { width: min(680px, 100%); margin-inline: auto; }
	.section-heading, .close-match__grid, .join-section, .alpha-page__form { grid-template-columns: 1fr; gap: 38px; }
	.join-section__copy h2 { max-width: 14ch; }
	.site-footer { grid-template-columns: 1fr 1fr; }
	.site-footer__legal { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
	:root { --page: min(100% - 36px, 1160px); }
	body { font-size: 16px; }
	.site-header { padding-top: 20px; padding-bottom: 20px; }
	.brand { font-size: 18px; }
	.brand__mark { width: 42px; height: 42px; flex-basis: 42px; }
	.public-nav { gap: 14px; }
	.public-nav > a:first-child { display: none; }
	.public-nav .nav-join { padding: 9px 14px; font-size: 14px; }
	.hero { padding-top: 34px; padding-bottom: 80px; }
	.hero h1 { font-size: clamp(49px, 14vw, 66px); }
	.hero__intro { font-size: 18px; }
	.hero__game { min-height: 552px; padding-left: 20px; }
	.hero__photo { height: 495px; border-radius: 38% 38% 12px 12px; }
	.match-card { width: calc(100% - 24px); padding: 20px; }
	.score-line { font-size: 16px; }
	.play-section, .close-match { padding: 70px 0 78px; }
	.play-steps { grid-template-columns: 1fr; gap: 34px; margin-top: 48px; }
	.play-steps::before { top: 19px; bottom: 19px; left: 21px; right: auto; width: 3px; height: auto; }
	.play-steps li { min-height: 44px; padding: 2px 0 0 64px; }
	.play-steps p { max-width: 34em; }
	.chase-callout { padding: 25px; box-shadow: 8px 8px 0 var(--aqua); }
	.join-section { padding-top: 74px; padding-bottom: 80px; }
	.signup-row { flex-direction: column; }
	.signup-form input[type=email] { flex-basis: auto; width: 100%; }
	.signup-form button { width: 100%; }
	.alpha-page { padding-top: 42px; }
	.alpha-page__intro h1 { font-size: clamp(48px, 13vw, 64px); }
	.alpha-page__form { margin-top: 50px; padding: 34px 24px; }
	.site-footer { grid-template-columns: 1fr; align-items: start; }
	.footer-links { justify-content: flex-start; }
	.site-footer__legal { grid-column: 1; }
}

@media (max-width: 430px) {
	.hero__game { min-height: 515px; padding-left: 0; }
	.hero__photo { height: 455px; }
	.match-card { left: 8px; width: calc(100% - 16px); }
	.score-line--you span::after { display: none; }
	.chase-callout { grid-template-columns: 1fr; }
	.chase-callout b { grid-row: auto; grid-column: 1; margin-top: 11px; }
	.signup-area { padding: 22px; }
}

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