/* Self-hosted (SIL OFL, licences next to the files): no font request leaves for Google, so no visitor IP goes with it. */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Space Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/space-mono-400-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Space Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/space-mono-700-latin.woff2") format("woff2");
}

/* ATWT brand tokens, as on atwt.com.br. The product accent (--accent, set on body) is only the dot beside its logo. */
:root {
	--paper: #F3EFE4;
	--paper-2: #ECE6D6;
	--paper-3: #FBF8F0;
	--ink: #141810;
	--ink-70: rgba(20, 24, 16, 0.72);
	--green: #0E9A66;
	--green-deep: #0A6E49;
	--mint: #A8E6C7;
	--forest: #0A1F15;
	--forest-2: #0D2A1C;
	--red: #C4442A;
	--shadow-hard: 6px 6px 0 var(--ink);
	--font-d: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-h: "Fraunces", Georgia, serif;
	--font-m: "Space Mono", ui-monospace, monospace;
	color-scheme: light;
	font-family: var(--font-d);
	color: var(--ink);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	font-size: 16px;
	line-height: 1.55;
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

p {
	margin: 0;
}

/* Paper column: logo, the card, the footer line. */
.side {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 1.25rem 1.25rem 1.5rem;
}

.top {
	align-self: stretch;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.logo-badge {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1;
	color: var(--paper);
	background: var(--green);
	border: 1.5px solid var(--ink);
	border-radius: 9px;
	box-shadow: 2.5px 2.5px 0 var(--ink);
}

.logo-word {
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.card {
	width: 100%;
	max-width: 27rem;
	margin: auto 0;
	padding: 1.75rem 1.5rem;
	background: var(--paper-3);
	border: 1.5px solid var(--ink);
	border-radius: 16px;
	box-shadow: var(--shadow-hard);
}

.footer {
	font-family: var(--font-m);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: center;
	color: var(--ink-70);
}

/* Forest panel: only where there is room for it. */
.panel {
	display: none;
}

.label {
	font-family: var(--font-m);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--green);
}

@media (min-width: 960px) {
	body {
		display: grid;
		grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
	}

	.side {
		padding: 1.75rem clamp(2rem, 4vw, 3.5rem) 2rem;
		border-right: 1.5px solid var(--ink);
	}

	.card {
		padding: 2.25rem 2rem;
	}

	.panel {
		display: flex;
		align-items: center;
		min-height: 100vh;
		min-height: 100dvh;
		padding: clamp(2.5rem, 6vw, 5rem);
		color: var(--paper);
		background-color: var(--forest);
		background-image:
			radial-gradient(620px 420px at 82% 6%, rgba(14, 154, 102, 0.22), transparent 62%),
			repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px);
	}

	.panel-copy {
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
		max-width: 30rem;
	}

	.panel .label {
		display: inline-flex;
		align-items: center;
		gap: 0.625rem;
	}

	.panel .label::before {
		content: "";
		width: 26px;
		height: 1.5px;
		background: var(--green);
	}

	.panel-title {
		font-family: var(--font-h);
		font-size: clamp(2.5rem, 4.2vw, 3.6rem);
		font-weight: 560;
		line-height: 1.04;
		letter-spacing: -0.015em;
	}

	.panel-title em {
		font-weight: 600;
		color: var(--green);
	}

	.panel-body {
		max-width: 34ch;
		font-size: 1.125rem;
		color: var(--mint);
	}
}

/* Card header: the product's logo (with its accent dot) or nothing, then the heading. */
.brand {
	margin-bottom: 1.5rem;
}

.product {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1rem;
}

.product-dot {
	flex: none;
	width: 10px;
	height: 10px;
	background: var(--accent, var(--green));
	border: 1.5px solid var(--ink);
	border-radius: 50%;
}

.logo-img {
	display: block;
	max-width: 12rem;
	max-height: 2.5rem;
}

.brand h1 {
	margin: 0;
	font-family: var(--font-h);
	font-size: clamp(1.625rem, 6.4vw, 2rem);
	font-weight: 560;
	line-height: 1.1;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
}

.form {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.field label {
	font-family: var(--font-m);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.field input {
	width: 100%;
	padding: 0.75rem 0.875rem;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--paper);
	border: 1.5px solid var(--ink);
	border-radius: 10px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	padding: 0.9375rem 1.5rem;
	font: inherit;
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	border: 1.5px solid var(--ink);
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

/* green-deep, not green: paper text on #0E9A66 is 3.1:1, under AA for 15.5 px; on #0A6E49 it is 5.5:1. */
.btn--solid {
	margin-top: 0.25rem;
	color: var(--paper);
	background: var(--green-deep);
	box-shadow: 4px 4px 0 var(--ink);
}

/* The arrow is drawn, not typed, so it stays out of the button's text and accessible name. */
.btn--solid::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.16s ease;
}

.btn--solid:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--ink);
}

.btn--solid:hover::after {
	transform: translateX(3px);
}

.btn--solid:active {
	transform: translate(1px, 1px);
	box-shadow: 2px 2px 0 var(--ink);
}

.btn--ghost {
	color: var(--ink);
	background: transparent;
}

.btn--ghost:hover {
	background: var(--paper-2);
}

.btn--small {
	margin-top: 0.75rem;
	padding: 0.5rem 0.875rem;
	font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
	.btn,
	.btn--solid::after {
		transition: none;
	}

	.btn--solid:hover,
	.btn--solid:hover::after,
	.btn--solid:active {
		transform: none;
	}
}

.question {
	font-family: var(--font-h);
	font-size: 1.375rem;
	font-weight: 560;
	line-height: 1.25;
	text-align: center;
}

.hint {
	font-size: 0.875rem;
	color: var(--ink-70);
}

.links {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px dashed rgba(20, 24, 16, 0.3);
}

a {
	color: var(--ink);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.22em;
}

a:hover {
	color: var(--green-deep);
}

.message {
	margin: 0 0 1.25rem;
	padding: 0.875rem 1rem;
	background: var(--paper);
	border: 1.5px solid var(--ink);
	border-left: 6px solid var(--green);
	border-radius: 10px;
}

.message.error {
	border-left-color: var(--red);
}

ul.message {
	padding-left: 2.25rem;
}

ul.message li + li {
	margin-top: 0.25rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2.5px solid var(--green);
	outline-offset: 2px;
}
