/* albumofmine.com: the Album of Mine brand (repo static/brand/README.md): navy #3B3E64 on white, nothing else. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-full-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-full-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-grotesque-latin-standard-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/fonts/space-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
	color-scheme: light;
	--navy: #3B3E64;
	--navy-deep: #2c2f4d; /* pressed state only */
	--white: #ffffff;
	--tint: #f3f3f7; /* navy at ~6% on white: fields and chips */
	--muted: #6e7090; /* navy, lightened for small print */
	--line: #d9dae4;
	--ink: var(--navy);
	--serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--sans: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
	--mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}


a { color: inherit; text-decoration-color: var(--navy); text-underline-offset: 3px; }

.page { max-width: 760px; margin: 0 auto; padding: 20px 20px 48px; }
.page--thanks { min-height: 100svh; }

.kicker {
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
}
.masthead {
	display: flex;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}
.masthead { align-items: center; }
.masthead .logo { display: block; line-height: 0; }
.masthead .logo img { display: block; height: 36px; width: auto; }

.hero { padding: clamp(40px, 9vw, 88px) 0 40px; }
h1 {
	font-family: var(--serif);
	font-weight: 600;
	font-variation-settings: 'SOFT' 18, 'WONK' 0;
	font-size: clamp(2.5rem, 8.5vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
	max-width: 13ch;
	text-wrap: balance;
}
.page--thanks h1 { margin-top: 10px; }
.lede { font-size: 1.15rem; max-width: 34em; margin: 0 0 14px; color: var(--ink); }

/* The form: one field, one button. */
.join { margin-top: 32px; max-width: 560px; }
.roles { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.roles legend { float: left; margin-right: 6px; padding: 0; }
.roles label { position: relative; cursor: pointer; }
.roles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.roles span {
	display: inline-block;
	padding: 6px 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--tint);
	font-size: 0.95rem;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.roles input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.roles input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }

.field {
	display: flex;
	gap: 8px;
	padding: 6px;
	background: var(--tint);
	border: 1px solid var(--ink);
	border-radius: 14px;
	box-shadow: 0 10px 30px -20px rgba(59, 62, 100, 0.55);
}
.field input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 1.1rem;
	padding: 12px 10px;
	color: var(--ink);
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; }
.field:focus-within { outline: 2px solid var(--navy); outline-offset: 3px; }
.field button {
	border: 0;
	border-radius: 10px;
	background: var(--navy);
	color: var(--white);
	font: inherit;
	font-weight: 650;
	font-size: 1rem;
	padding: 12px 18px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, transform 0.1s;
}
.field button:hover { background: var(--navy-deep); }
.field button:active { transform: translateY(1px); }
.field button:disabled { opacity: 0.7; cursor: progress; }

.fine { font-size: 0.86rem; color: var(--muted); margin: 12px 0 0; max-width: 34em; }
.fine.is-error { color: var(--navy); font-weight: 700; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.points {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	padding: 32px 0;
	border-top: 1px solid var(--line);
}
.point .num { font-family: var(--mono); font-size: 0.72rem; color: var(--navy); }
.point h2 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.2; margin: 6px 0 8px; }
.point p { margin: 0; font-size: 0.97rem; color: var(--ink); }

.proof { border-top: 1px solid var(--line); padding: 22px 0; }
.proof p { margin: 0; font-size: 1.05rem; max-width: 40em; }
.proof .kicker { margin-right: 10px; }
.ps { padding: 0 0 32px; }
.ps p { margin: 0; max-width: 36em; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }
.ps a { white-space: nowrap; font-family: var(--sans); font-weight: 650; font-size: 1rem; }

.foot { border-top: 1px solid var(--line); padding-top: 18px; }
.foot p { margin: 0 0 6px; }
.foot .kicker { margin-right: 8px; }

@media (max-width: 640px) {
	.page { padding: 16px 16px 40px; }
	.field { flex-direction: column; padding: 6px; }
	.field button { padding: 15px 18px; font-size: 1.05rem; }
	.points { grid-template-columns: 1fr; gap: 22px; }
}

/* Privacy page: readable body copy under the big heading. */
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin: 28px 0 6px; }
.prose p { max-width: 36em; margin: 0 0 12px; }

/* The P.S. link jumps back up to the email field; leave it some air. */
html { scroll-behavior: smooth; }
#email { scroll-margin-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
