/* HSYNFIT Links — public page. Mobile first, one column. */
@font-face {
	font-family: "Outfit";
	src: url("fonts/outfit-latin-ext.woff2") format("woff2");
	font-weight: 400 800;
	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: "Outfit";
	src: url("fonts/outfit-latin.woff2") format("woff2");
	font-weight: 400 800;
	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;
}

:root {
	--ink: #0b0b0c;
	--ink-2: #141415;
	--ink-3: #1e1e20;
	--line: #2a2a2d;
	--bone: #f4f1eb;
	--muted: #aaa59c;
	--orange: #f26303;
	--orange-hi: #ff7a1f;
	--orange-deep: #b84a00;
	--ice: #9fd0e6;
	--radius: 16px;
	--col: 560px;
	--pad: 16px;
	--ease: cubic-bezier(.16, 1, .3, 1);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--bone);
	font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.i { width: 20px; height: 20px; flex: none; }

.sr-only {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
	position: absolute; left: 12px; top: -60px; z-index: 10;
	background: var(--bone); color: var(--ink);
	padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

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

.page {
	width: 100%;
	max-width: var(--col);
	margin: 0 auto;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.cover {
	position: relative;
	height: clamp(280px, 78vw, 400px);
	background: var(--ink-3);
	overflow: hidden;
}
.cover img {
	width: 100%; height: 100%;
	object-fit: cover;
}
/* Scrim only where text sits: keeps the brand mark and the name legible. */
.cover::after {
	content: "";
	position: absolute; inset: 0;
	background:
		linear-gradient(to bottom, rgba(11, 11, 12, .55) 0, rgba(11, 11, 12, 0) 26%),
		linear-gradient(to top, var(--ink) 0, rgba(11, 11, 12, .6) 22%, rgba(11, 11, 12, 0) 52%);
	pointer-events: none;
}
.cover--empty { background: var(--orange); height: 200px; }
.cover--empty::after { display: none; }

.brand {
	position: absolute; z-index: 2;
	top: max(14px, env(safe-area-inset-top)); left: var(--pad);
	display: inline-flex; align-items: center; gap: 9px;
	text-decoration: none;
	font-weight: 800; letter-spacing: .06em; font-size: 15px;
}
.brand__mark {
	display: grid; place-items: center;
	width: 30px; height: 30px; border-radius: 9px;
	background: var(--orange); color: var(--ink);
	font-size: 17px; letter-spacing: 0;
}
.brand__word { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

.identity {
	position: relative; z-index: 1;
	padding: 0 var(--pad);
	margin-top: -64px;
}
.avatar {
	width: 104px; height: 104px;
	border-radius: 50%;
	padding: 3px;
	background: var(--orange);
	box-shadow: 0 0 0 4px var(--ink), 0 10px 24px rgba(0, 0, 0, .45);
}
.avatar img, .avatar__fallback {
	width: 100%; height: 100%;
	border-radius: 50%;
	object-fit: cover;
	background: var(--ink-3);
}
.avatar__fallback {
	display: grid; place-items: center;
	font-size: 44px; font-weight: 800; color: var(--orange);
}
.name {
	margin: 14px 0 0;
	font-size: clamp(32px, 9vw, 42px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -.025em;
	text-wrap: balance;
}
.handle {
	margin: 4px 0 0;
	color: var(--orange);
	font-weight: 600;
	font-size: 17px;
}

.socials {
	list-style: none;
	display: flex; flex-wrap: wrap; gap: 10px;
	margin: 16px 0 0; padding: 0;
}
.social {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--ink-3);
	border: 1px solid var(--line);
	color: var(--bone);
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.social:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.social:active { transform: scale(.96); }

.bio { margin-top: 16px; max-width: 62ch; }
.bio__text {
	margin: 0;
	color: #d9d4cb;
	font-size: 16px;
	line-height: 1.6;
	white-space: pre-line;
}
.bio.is-clamped .bio__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}
.bio__toggle {
	margin-top: 6px; padding: 8px 0; min-height: 40px;
	background: none; border: 0; cursor: pointer;
	color: var(--orange); font-weight: 600; font-size: 15px;
	text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.bio__toggle:hover { color: var(--orange-hi); }

/* ---------- Link cards ---------- */
main { padding: 28px var(--pad) 8px; flex: 1; }
main:focus { outline: none; }
.links {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 10px;
}
.card {
	position: relative;
	background: var(--ink-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.card__link {
	display: flex; align-items: center; gap: 14px;
	padding: 12px 14px 12px 12px;
	min-height: 80px;
	text-decoration: none;
	border-radius: var(--radius);
}
/* The whole card is the link's hit area; the copy button sits above it. */
.card__link::after {
	content: ""; position: absolute; inset: 0; border-radius: var(--radius);
}
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--ice); outline-offset: 3px; }
.card:hover { background: var(--ink-3); border-color: #3a3a3e; }
.card:active { transform: scale(.99); }

.card__thumb {
	flex: none;
	width: 56px; height: 56px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--ink-3);
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__initial {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: #26170c; color: var(--orange);
	font-weight: 800; font-size: 24px;
}
.card__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.card__title { font-weight: 650; font-size: 16.5px; line-height: 1.3; letter-spacing: -.005em; }
.card__desc {
	color: var(--muted); font-size: 14px; line-height: 1.4;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.card__arrow { color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.card:hover .card__arrow { color: var(--orange); transform: translate(2px, -2px); }

.card--featured { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.card--featured:hover { background: var(--orange-hi); border-color: var(--orange-hi); }
.card--featured .card__link { padding: 14px 16px 14px 14px; min-height: 104px; }
.card--featured .card__thumb { width: 76px; height: 76px; background: var(--orange-deep); }
.card--featured .card__title { font-size: 19px; font-weight: 750; letter-spacing: -.015em; }
.card--featured .card__desc { color: #2b1405; }
.card--featured .card__arrow, .card--featured:hover .card__arrow { color: var(--ink); }
.card--featured .card__initial { background: var(--orange-deep); color: var(--ink); }

/* Discount code row: the ice-blue 10%. */
.code {
	position: relative; z-index: 2;
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	margin: 0 12px 12px;
	padding: 8px 8px 8px 12px;
	border: 1px dashed rgba(159, 208, 230, .45);
	border-radius: 12px;
	background: rgba(159, 208, 230, .06);
	pointer-events: none;
}
.code__label { color: var(--muted); font-size: 13px; }
.code__value {
	font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
	font-size: 15px; font-weight: 600; letter-spacing: .02em;
	color: var(--ice);
}
.code__copy {
	pointer-events: auto;
	margin-left: auto;
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 40px; padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--ice);
	background: transparent;
	color: var(--ice);
	font-weight: 600; font-size: 14px;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.code__copy .i { width: 16px; height: 16px; }
.code__copy:hover { background: var(--ice); color: var(--ink); }
.code__copy:active { transform: scale(.97); }
.code__icon--done { display: none; }
.code__copy.is-done { background: var(--ice); color: var(--ink); }
.code__copy.is-done .code__icon--copy { display: none; }
.code__copy.is-done .code__icon--done { display: block; }
.card--featured .code { border-color: rgba(11, 11, 12, .4); background: rgba(11, 11, 12, .08); }
.card--featured .code__label { color: #2b1405; }
.card--featured .code__value { color: var(--ink); }
.card--featured .code__copy { border-color: var(--ink); color: var(--ink); }
.card--featured .code__copy:hover, .card--featured .code__copy.is-done { background: var(--ink); color: var(--bone); }

.empty { color: var(--muted); text-align: center; padding: 24px 0; }

/* ---------- YouTube ---------- */
.yt { margin-top: 36px; }
.yt__heading {
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 12px;
	font-size: 21px; font-weight: 750; letter-spacing: -.015em;
}
.yt__glyph { color: var(--orange); width: 24px; height: 24px; }
.yt__card {
	background: var(--ink-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.yt__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}
.yt__media img, .yt__media iframe {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; border: 0;
}
.yt__body { padding: 14px 16px 16px; }
.yt__title {
	margin: 0;
	font-size: 17px; font-weight: 650; line-height: 1.35;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.yt__meta {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	margin: 6px 0 0; color: var(--muted); font-size: 14px;
}
.yt__meta:empty { display: none; }
.yt__badge {
	color: var(--ice); border: 1px solid rgba(159, 208, 230, .5);
	padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.yt__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Shorts: vertical thumbnail beside the text, full-height player on play. */
.yt__card--short { display: grid; grid-template-columns: 124px 1fr; }
.yt__card--short .yt__media { aspect-ratio: 9 / 16; }
.yt__card--short .yt__body { align-self: center; }
.yt__card--short.is-playing { grid-template-columns: 1fr; }
.yt__card--short.is-playing .yt__media { width: 100%; max-width: 360px; margin: 0 auto; max-height: 80vh; }
.yt__card--empty { padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.yt__fallback { margin: 0; color: #d9d4cb; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px;
	border-radius: 999px;
	font-weight: 650; font-size: 15px;
	text-decoration: none;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn .i { width: 18px; height: 18px; }
.btn--solid { background: var(--orange); color: var(--ink); }
.btn--solid:hover { background: var(--orange-hi); }
.btn--ghost { border: 1px solid var(--line); color: var(--bone); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn:active { transform: scale(.98); }

/* ---------- Footer ---------- */
.foot {
	margin-top: 40px;
	background: var(--orange);
	color: var(--ink);
	padding: 22px var(--pad) calc(18px + env(safe-area-inset-bottom));
}
.foot__word {
	display: block;
	font-weight: 800;
	font-size: clamp(56px, 19vw, 104px);
	line-height: .82;
	letter-spacing: -.04em;
	text-decoration: none;
}
.foot__meta { margin: 12px 0 0; font-size: 14px; font-weight: 500; }
.foot__meta a { text-decoration: underline; text-underline-offset: 3px; }
.foot :focus-visible { outline-color: var(--ink); }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
	:root { --pad: 24px; }
	.page { padding-top: 24px; }
	.cover { height: 380px; border-radius: 22px 22px 0 0; }
	.foot { border-radius: 0 0 22px 22px; margin-bottom: 24px; }
	.identity { margin-top: -72px; }
	.avatar { width: 120px; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.card:active, .btn:active, .social:active, .code__copy:active { transform: none; }
}
@media (forced-colors: active) {
	.card, .yt__card, .code { border: 1px solid CanvasText; }
}
