/* Fathom landing styles. Tokens are taken from the Fathom app (src/index.css in ifathomllc/fathom).
   Dark is the brand view, so the page stays dark whatever the system theme is. */

@font-face {
	font-family: "Fraunces";
	src: url("/fonts/fraunces-latin.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fraunces";
	src: url("/fonts/fraunces-latin-ext.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Karla";
	src: url("/fonts/karla-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Montserrat";
	src: url("/fonts/montserrat-300-latin.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: dark;

	--bg: #000;
	--bg-glow: rgba(80, 100, 120, 0.18);
	--ink: #eef3f7;
	--ink-bright: #f4f8fc;
	--ink-soft: #9aa7b2;
	--sea: #8b98a4;
	--line: rgba(220, 230, 240, 0.14);
	--card: rgba(6, 8, 10, 0.5);
	--btn-bg: #e8f0f8;
	--btn-bg-hover: #fff;
	--btn-ink: #05070a;
	--clay: #d08468;
	--glow: rgba(200, 220, 255, 0.25);
	--shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
	--logo-filter: drop-shadow(0 0 22px rgba(200, 220, 255, 0.25));

	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Karla", "Segoe UI", system-ui, sans-serif;
	--font-thin: "Montserrat", "Karla", system-ui, sans-serif;
	--radius: 18px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	background-image: radial-gradient(800px 400px at 50% 0, var(--bg-glow), transparent 60%);
	background-repeat: no-repeat;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--sea);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
a:hover {
	color: var(--ink);
}

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

.skip {
	position: absolute;
	left: -999px;
	top: 0.5rem;
	padding: 0.5rem 0.9rem;
	background: var(--btn-bg);
	color: var(--btn-ink);
	border-radius: 999px;
}
.skip:focus {
	left: 0.75rem;
	z-index: 10;
}

.wrap {
	width: min(100% - 2rem, 62rem);
	margin-inline: auto;
}

/* Header */
.site-header {
	padding: 1.5rem 0 0.5rem;
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.logo {
	width: clamp(8.5rem, 40vw, 10.5rem);
	filter: var(--logo-filter);
}
.site-nav {
	display: flex;
	gap: 1.1rem;
	font-size: 0.92rem;
}

/* Hero */
.hero {
	display: grid;
	gap: 2.4rem;
	padding: 2.5rem 0 3rem;
	align-items: center;
}
.eyebrow {
	margin: 0 0 0.7rem;
	color: var(--sea);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--ink-bright);
	margin: 0;
}
h1 {
	font-size: clamp(1.9rem, 7.5vw, 3.1rem);
	line-height: 1.08;
	text-shadow: 0 0 40px var(--glow);
}
h2 {
	font-size: clamp(1.4rem, 5vw, 1.9rem);
	line-height: 1.15;
}
h3 {
	font-size: 1.35rem;
	line-height: 1.15;
}
.lede {
	margin: 1rem 0 0;
	max-width: 34rem;
	color: var(--ink-soft);
	font-size: 1.05rem;
	line-height: 1.5;
}
.hero-art {
	margin: 0;
	justify-self: center;
	width: min(100%, 25rem);
	border-radius: var(--radius);
	border: 1px solid var(--line);
	overflow: hidden;
	box-shadow: var(--shadow), 0 0 80px var(--glow);
	background: #000;
}

/* Store and shop buttons */
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.6rem;
}
.badge {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	min-width: 10.5rem;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--ink);
	text-decoration: none;
	line-height: 1.15;
	transition:
		transform 160ms ease,
		background 160ms ease,
		color 160ms ease;
}
a.badge[href]:hover {
	transform: translateY(-1px);
	background: var(--btn-bg);
	color: var(--btn-ink);
}
.badge small {
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	opacity: 0.8;
}
.badge strong {
	font-size: 1.05rem;
	font-weight: 600;
}
.badge.primary {
	background: var(--btn-bg);
	color: var(--btn-ink);
	border-color: transparent;
}
a.badge.primary[href]:hover {
	background: var(--btn-bg-hover);
}
.badge[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
	background: var(--card);
	color: var(--ink);
	border: 1px dashed var(--line);
}
.badge .soon {
	display: none;
	margin-top: 0.15rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-soft);
}
.badge[aria-disabled="true"] .soon {
	display: block;
}

/* Sections */
section {
	padding: 2.4rem 0;
}
.thin-title {
	margin: 0 0 1.4rem;
	font-family: var(--font-thin);
	font-weight: 300;
	font-size: 1.15rem;
	letter-spacing: 0.06em;
	color: var(--ink);
}

.dictionary {
	max-width: 40rem;
	padding: 1.15rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	backdrop-filter: blur(5px);
}
.dictionary .word {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	color: var(--ink-bright);
}
.dictionary .pos {
	margin: 0.1rem 0 0.5rem;
	color: var(--sea);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.dictionary .def {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.cards {
	display: grid;
	gap: 0.85rem;
	grid-template-columns: 1fr;
	margin: 0;
	padding: 0;
	list-style: none;
}
.card {
	padding: 1.15rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	backdrop-filter: blur(5px);
	transition: transform 160ms ease;
}
.card:hover {
	transform: translateY(-1px);
}
.card .eyebrow {
	margin-bottom: 0.35rem;
}
.card p {
	margin: 0.45rem 0 0;
	color: var(--ink-soft);
	font-size: 0.95rem;
}
.also {
	display: grid;
	grid-template-columns: auto minmax(0, 28rem);
	justify-content: center;
	align-items: stretch;
	column-gap: 0.85rem;
	margin-top: 1.75rem;
}
.also-mark {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0 1rem 0 0;
	font-family: var(--font-thin);
	font-weight: 300;
	font-size: clamp(2.4rem, 6vw, 3.4rem);
	line-height: 0.8;
	color: var(--ink-soft);
	user-select: none;
}
.also-mark::after {
	content: "";
	position: absolute;
	top: 0.15rem;
	right: 0;
	bottom: 0.15rem;
	width: 0.7rem;
	border-top: 1px solid rgba(154, 167, 178, 0.55);
	border-bottom: 1px solid rgba(154, 167, 178, 0.55);
	border-left: 1px solid rgba(154, 167, 178, 0.55);
	border-radius: 12px 0 0 12px;
}
.cards.cards-solo {
	margin: 0;
	grid-template-columns: 1fr;
	justify-items: stretch;
}
.cards-solo .card {
	width: 100%;
	text-align: center;
}

.promise {
	text-align: center;
	padding: 3rem 0;
}
.promise p {
	margin: 0.75rem auto 0;
	max-width: 30rem;
	color: var(--ink-soft);
}

/* Footer */
.site-footer {
	margin-top: 2rem;
	padding: 1.75rem 0 2.5rem;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 0.88rem;
}
.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
	justify-content: space-between;
}
.site-footer nav {
	display: flex;
	gap: 1.2rem;
}

/* Legal and 404 pages */
.doc {
	max-width: 40rem;
	padding: 2.5rem 0 3rem;
}
.doc h1 {
	font-size: clamp(1.7rem, 7vw, 2.2rem);
	margin-bottom: 0.5rem;
}
.doc h2 {
	margin-top: 2rem;
	font-size: 1.15rem;
}
.doc p,
.doc li {
	color: var(--ink-soft);
}
.doc .updated {
	color: var(--sea);
	font-size: 0.88rem;
}
.center {
	text-align: center;
	padding: 5rem 0;
}
.btn {
	display: inline-block;
	margin-top: 1.5rem;
	padding: 0.8rem 1.6rem;
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-ink);
	font-weight: 600;
	text-decoration: none;
}
.btn:hover {
	background: var(--btn-bg-hover);
	color: var(--btn-ink);
}

@media (min-width: 40rem) {
	.cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 58rem) {
	.hero {
		grid-template-columns: 1.1fr 0.9fr;
		padding: 4rem 0 4rem;
		gap: 3.5rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.hero > div,
	.hero-art {
		animation: rise-in 600ms ease both;
	}
	.hero-art {
		animation-delay: 120ms;
	}
	@keyframes rise-in {
		from {
			opacity: 0;
			transform: translateY(12px);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
