/* ============================================================
   hushsound.com — shared styles
   Palette: bg #FCFCFC / ink #303030 · Type: Nunito (self-hosted)
   Mobile-first. Breakpoints: 600px, 900px.
   ============================================================ */

@font-face {
	font-family: 'Nunito';
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url('/files/fonts/nunito-latin.woff2') format('woff2');
	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;
}

:root {
	--bg: #FCFCFC;
	--ink: #303030;
	--gutter: clamp(20px, 5vw, 50px);
}

* { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;   /* stop iOS inflating type in landscape */
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;               /* accounts for mobile browser chrome */
	display: flex;
	flex-direction: column;
	overflow-x: hidden;               /* belt and braces: never scroll sideways */
	background: var(--bg);
	color: var(--ink);
	font-family: 'Nunito', Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); }

/* Visible keyboard focus everywhere (mouse users never see it) */
:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}

/* ---------- home hero ---------- */
.home-main {
	flex: 1 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(20px, 5vw, 40px);
}

/* Square artwork: cap by width AND by viewport height, so on short or
   landscape screens the footer stays reachable without scrolling. */
.hero {
	display: block;
	width: min(584px, 100%, 72vh);
	width: min(584px, 100%, 72dvh);
	aspect-ratio: 1 / 1;
	line-height: 0;
	border-radius: 50%;               /* artwork is a circle inscribed in a
	                                     near-white square — clip the corners */
	overflow: hidden;
}

.hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- legal / content pages ---------- */
.page-main {
	flex: 1 0 auto;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(36px, 7vw, 64px) var(--gutter) clamp(64px, 12vw, 96px);
}

.page-back {
	display: inline-block;
	margin-bottom: clamp(28px, 6vw, 48px);
	padding: 6px 0;
	font-size: 14px;
	text-decoration: none;
}

.page-back:hover { text-decoration: underline; }

.page-main h1 {
	margin: 0 0 6px;
	font-size: clamp(23px, 5.2vw, 28px);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
}

.page-eyebrow {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
}

.page-updated {
	margin: 0 0 clamp(32px, 7vw, 48px);
	font-size: 13px;
	opacity: .65;
}

.page-main h2 {
	margin: clamp(32px, 7vw, 44px) 0 12px;
	font-size: clamp(16px, 3.6vw, 17px);
	font-weight: 700;
	line-height: 1.35;
}

.page-main p {
	margin: 0 0 16px;
	font-size: clamp(15px, 3.4vw, 16px);
	line-height: 1.72;
	overflow-wrap: break-word;        /* long URLs/emails can't force a scroll */
}

.page-main a { text-decoration: underline; }

/* ---------- footer ---------- */
footer {
	flex-shrink: 0;
	background: var(--bg);
	padding: 0 var(--gutter) clamp(20px, 5vw, 26px);
	font-size: 13px;
}

.footer-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	max-width: 1440px;
	margin: 0 auto;
}

.footer-copy,
.footer-est { font-weight: 700; }

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	margin: 4px 0;
}

.footer-links a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 400;
	white-space: nowrap;
	padding: 10px 0;                  /* ~44px touch target on mobile */
}

.footer-links a:hover { text-decoration: underline; }

/* Roomy enough for the single-row Figma layout */
@media (min-width: 900px) {
	.footer-inner {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 24px;
	}
	.footer-copy,
	.footer-est { white-space: nowrap; }
	.footer-links {
		flex-wrap: nowrap;
		gap: clamp(28px, 5vw, 72px);
		margin: 0;
	}
	.footer-links a { padding: 0; }
}

/* ---------- cookie consent ---------- */
#cookie-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	display: none;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	padding: 16px var(--gutter);
	padding-bottom: calc(16px + env(safe-area-inset-bottom));  /* iPhone home bar */
	background: var(--bg);
	border-top: 1px solid rgba(48, 48, 48, .14);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink);
}

#cookie-consent.is-visible { display: flex; }

#cookie-consent p { margin: 0; }

.cookie-actions {
	display: flex;
	gap: 10px;
}

.cookie-actions button {
	flex: 1;                          /* full-width thumb targets on phones */
	min-height: 44px;
}

.cookie-actions button,
.cookie-reset {
	font-family: inherit;
	font-size: 14px;
	line-height: 1;
	padding: 12px 18px;
	border-radius: 2px;
	cursor: pointer;
	border: 1px solid var(--ink);
	background: transparent;
	color: var(--ink);
}

.cookie-actions button.accept {
	background: var(--ink);
	color: var(--bg);
}

.cookie-actions button:hover,
.cookie-reset:hover { opacity: .8; }

@media (min-width: 600px) {
	#cookie-consent {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
		gap: 10px 24px;
		font-size: 13px;
	}
	.cookie-actions button {
		flex: 0 0 auto;
		font-size: 13px;
		padding: 9px 18px;
		min-height: 0;
	}
}

.cookie-reset { margin-top: 8px; }

.cookie-reset-note {
	display: inline-block;
	margin-left: 12px;
	font-size: 13px;
	opacity: .7;
}
