:root {
	/* Typography */
	--font-ui: 'Inter', 'Helvetica Neue', Arial, sans-serif;
	--font-mono: 'Roboto Mono', ui-monospace, monospace;

	/* Colors */
	--color-ink: #1c1d1a;
	--color-ink-100: #000000;
	--color-cream: #fbf6f4;
	--color-accent: #6c77e3;
	--color-accent-soft: #e5e7fa;
	--color-accent-strong: #1f36fd;
	--color-muted: #565656;

	/* Layout */
	--container: 1120px;
	--navbar-h: 75px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
	font-family: var(--font-ui);
	background: var(--color-cream);
	color: var(--color-ink);
	margin: 0;
	padding-top: var(--navbar-h);
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* Labels (uppercase, 15% tracking) */
.label {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
}
.label-mini {
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.15em;
}

/* Prices */
.price, .fontsco-price { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.fc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-ui);
	font-size: 14px;
	font-weight: 500;
	border-radius: 999px;
	padding: 14px 28px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.fc-btn--primary { background: var(--color-accent-strong); color: var(--color-cream); }
.fc-btn--primary:hover { background: var(--color-ink); }
.fc-btn--secondary { background: var(--color-cream); color: var(--color-ink); border-color: var(--color-ink); }
.fc-btn--secondary:hover { background: var(--color-accent-soft); }

/* ---------- Navbar ---------- */
.fc-navbar {
	width: 100%;
	background: var(--color-cream);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
}
body.admin-bar .fc-navbar { top: var(--wp-admin--admin-bar--height, 32px); }
@media screen and (max-width: 600px) { body.admin-bar .fc-navbar { top: 0; } }
.fc-navbar__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
	height: var(--navbar-h);
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	transition: height .25s ease;
}
.fc-navbar--expanded .fc-navbar__inner { height: var(--navbar-h); }

.fc-navbar__left { display: flex; align-items: center; gap: 40px; }
.fc-navbar__logo { font-size: 40px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; transform: translateY(-2px); }
.fc-navbar__menu { display: flex; align-items: center; gap: 28px; }
.fc-navbar__menu-item {
	background: none; border: 0; padding: 0; cursor: pointer;
	font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em;
	color: var(--color-ink);
	display: inline-flex; align-items: center; gap: 6px;
}
.fc-navbar__menu-item:hover { color: var(--color-accent); }

.fc-navbar__right { display: flex; align-items: center; gap: 24px; }
.fc-navbar__icon-btn {
	background: none; border: 0; padding: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--color-ink);
}
.fc-navbar__icon-btn .material-symbols-outlined { font-variation-settings: 'wght' 200; font-size: 24px; }
.fc-navbar__icon-btn:hover .material-symbols-outlined { color: var(--color-accent); }

/* Cart counter: rectangle covering inner icon + number in front */
.fc-cart-icon { position: relative; display: inline-flex; }
.fc-cart-icon__counter {
	position: absolute;
	inset: 9px 6px 9px 6px;
	background: var(--color-cream);
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	padding-top: 3px;
}
.fc-cart-icon--has-items .fc-cart-icon__counter { display: flex; }

/* Cart subtotal pill below the icon (absolute: navbar height stays 75px) */
.fc-cart-total-pill {
	position: absolute;
	top: calc(100% + 7px);
	left: 50%;
	transform: translateX(-50%);
	display: none;
	white-space: nowrap;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--color-accent-strong);
	background: var(--color-accent-soft);
	border-radius: 6px;
	padding: 3px 8px;
}
/* Dialog-box tail pointing up at the cart icon */
.fc-cart-total-pill::before {
	content: "";
	position: absolute;
	top: -4px;
	left: 50%;
	width: 8px;
	height: 8px;
	transform: translateX(-50%) rotate(45deg);
	background: var(--color-accent-soft);
}
.fc-cart-icon--show-total.fc-cart-icon--has-items .fc-cart-total-pill { display: block; }

/* Account */
.fc-account { display: flex; align-items: center; }
.fc-account__username { font-size: 14px; font-weight: 600; cursor: pointer; }
.fc-dropdown-menu {
	position: absolute; top: calc(100% + 12px); right: 0;
	background: var(--color-cream); border: 1px solid rgba(28,29,26,.12);
	border-radius: 8px; padding: 8px; min-width: 180px;
	display: none; flex-direction: column; gap: 2px;
}
.fc-dropdown-menu.is-open { display: flex; }
.fc-dropdown-menu a, .fc-dropdown-menu button {
	padding: 10px 14px; border-radius: 6px; background: none; border: 0; text-align: left;
	font-size: 14px; cursor: pointer;
}
.fc-dropdown-menu a:hover, .fc-dropdown-menu button:hover { background: var(--color-accent-soft); }

/* ---------- Fonts mega dropdown ---------- */
.fc-fonts-dropdown {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--color-cream);
	display: none;
	padding-bottom: 26px;
}
.fc-navbar--fonts-open .fc-fonts-dropdown { display: block; }
.fc-fonts-dropdown__inner {
	max-width: var(--container); margin: 0 auto; padding: 0 32px;
	display: flex; align-items: flex-start; gap: 36px;
	padding-top: 8px;
}
.fc-fonts-dropdown__divider { width: 0; border-left: 1px dashed rgba(28,29,26,.25); align-self: stretch; }

/* All fonts card (collage) */
.fc-dd-card { width: 150px; flex: 0 0 150px; }
.fc-dd-card__media {
	display: block;
	width: 150px; height: 100px; position: relative; overflow: hidden;
	border-radius: var(--fontsco-image-rounding-sm, 0);
}
.fc-dd-card__media img {
	position: absolute; width: 104px; height: auto; max-width: none;
	border-radius: var(--fontsco-image-rounding-sm, 0);
	transition: transform .45s ease-in-out, opacity .45s ease;
}
.fc-dd-card__label { margin-top: 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; text-align: center; }
.fc-dd-card:hover .fc-dd-card__label { color: var(--color-accent); }

/* Category cards row */
.fc-fonts-dropdown__cats { display: flex; gap: 36px; margin-left: auto; }
.fc-dd-card--cat .fc-dd-card__media img { width: 150px; height: 100px; object-fit: cover; }
.fc-dd-card--cat .fc-dd-card__media { width: 150px; height: 100px; }

/* Collage entrance animation (slide-in + slight rotation, staggered) */
.fc-dd-card__media img.is-hidden { opacity: 0; }
.fc-dd-card__media img.c1 { top: 6px; left: 2px; z-index: 1; rotate: -4deg; }
.fc-dd-card__media img.c2 { top: 12px; left: 44px; z-index: 2; rotate: 3deg; }
.fc-dd-card__media img.c3 { top: 30px; left: 23px; z-index: 3; rotate: -2deg; }
/* Hover: collage fans out slightly (own `transform` so it never fights the entrance) */
.fc-dd-card:not(.fc-dd-card--cat) .fc-dd-card__media { overflow: visible; }
.fc-dd-card:not(.fc-dd-card--cat) .fc-dd-card__media img { will-change: transform; }
.fc-dd-card:hover .fc-dd-card__media img.c1 { transform: translate(-4px, -2px); }
.fc-dd-card:hover .fc-dd-card__media img.c2 { transform: translate(4px, -2px); }
.fc-dd-card:hover .fc-dd-card__media img.c3 { transform: translateY(-4px); }
.fc-fonts-dropdown.is-animating .fc-dd-card__media img { opacity: 0; }
.fc-fonts-dropdown.is-animating .fc-dd-card__media img.play {
	animation: fontscoSlideIn .5s cubic-bezier(.2,.7,.3,1) forwards;
}
.fc-fonts-dropdown.is-animating .fc-dd-card__media img.play.c1 { animation-delay: 0ms; }
.fc-fonts-dropdown.is-animating .fc-dd-card__media img.play.c2 { animation-delay: 90ms; }
.fc-fonts-dropdown.is-animating .fc-dd-card__media img.play.c3 { animation-delay: 180ms; }
@keyframes fontscoSlideIn {
	from { opacity: 0; translate: 0 18px; }
	to { opacity: 1; }
}

/* ---------- Footer ---------- */
.fc-footer { margin-top: 96px; }
.fc-footer__top {
	display: flex; align-items: center; justify-content: space-between;
	max-width: var(--container); margin: 0 auto; padding: 0 32px 28px;
}
.fc-footer__menu { display: flex; gap: 28px; }
.fc-footer__menu a {
	font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em;
}
.fc-footer__menu a:hover { color: var(--color-accent); }
.fc-footer__strip { display: flex; align-items: center; gap: 20px; }
.fc-footer__strip img.fc-pay { display: block; width: auto; }
/* Specificity (0,2,1): beats Woo `.woocommerce-page img` (0,1,1) which sets height:auto on product pages. */
.fc-footer__strip img.fc-pay--paypal { height: 30px; }
.fc-footer__strip img.fc-pay--mc { height: 46px; }
.fc-footer__strip img.fc-pay--visa { height: 24px; }
.fc-pay--pill { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; background: #e9dbff; border-radius: 999px; padding: 9px 18px 9px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.fc-pay--pill svg { width: 30px; height: 21px; display: block; }
.fc-footer__main { background: var(--color-cream); overflow: hidden; }
.fc-footer__wordmark {
	color: var(--color-ink);
	font-size: clamp(120px, 25.5vw, 367px);
	font-weight: 700;
	line-height: .82;
	letter-spacing: -0.02em;
	white-space: nowrap;
	text-align: center;
	transform: translateY(8%);
	padding: 40px 0 0;
	margin: 0 -20px;
}

/* ---------- Font card (grid) ---------- */
.fc-font-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 35px; row-gap: 83px; }
.fc-font-card__media {
	aspect-ratio: 3 / 2; overflow: hidden; position: relative;
	border-radius: var(--fontsco-image-rounding-md, 0);
	background: var(--color-accent-soft);
}
.fc-font-card__media img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity .3s ease;
	border-radius: var(--fontsco-image-rounding-md, 0);
}
.fc-font-card__media img.is-active { opacity: 1; }
.fc-font-card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; }
.fc-font-card__name { flex: 1 1 auto; min-width: 0; font-size: 18px; font-weight: 600; }
.fc-font-card__cat, .fc-font-card__styles { flex: 0 0 auto; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; text-align: right; color: var(--color-muted); }
.fc-font-card:hover .fc-font-card__name { color: var(--color-accent); }

/* ---------- Section header ---------- */
.fc-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 53px; }
.fc-section-head__title { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; }
.fc-section-head__more { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; }
.fc-section-head__more:hover { color: var(--color-accent); }

/* ---------- Hero carousel (layout 20/60/20 or 30/40/30, via settings) ----------
 * All slides are the SAME size (60% or 40% of the carousel width, see
 * data-layout) and sit in one flat
 * track. Because the container is narrower than three slides, the neighbours
 * peek out on both sides, which produces the split look without any
 * per-slide sizing. Only the track is translated, so no image is ever rescaled
 * and the crop of every slide stays constant.
 *
 * The 28px gutter between slides is safe because .fc-carousel paints its own
 * background: the gap then reads as deliberate spacing in the page colour
 * instead of an unpainted strip where the page shows through. */
.fc-carousel {
	position: relative; overflow: hidden; width: 100%;
	background: var(--color-cream);
	container-type: inline-size;
}
.fc-carousel__track {
	display: flex; align-items: flex-start; gap: 28px;
	position: relative; will-change: transform;
	height: calc(60cqw / 1.5);
}
.fc-carousel[data-layout="30/40/30"] .fc-carousel__track {
	height: calc(40cqw / 1.5);
}
/* Slide box is sized in CSS (container queries) so the reserved height is
 * correct before JS measures the track — prevents the pre/post-JS layout shift.
 * JS still sets the same values inline, which is harmless. */
.fc-carousel__slide {
	flex: 0 0 auto; overflow: hidden;
	width: 60cqw; height: calc(60cqw / 1.5);
	border-radius: var(--fontsco-image-rounding-lg, 0);
	cursor: pointer;
	background: var(--color-accent-soft);
}
.fc-carousel[data-layout="30/40/30"] .fc-carousel__slide {
	width: 40cqw; height: calc(40cqw / 1.5);
}
.fc-carousel__slide img {
	display: block; width: 100%; height: 100%;
	object-fit: cover; object-position: center center;
	pointer-events: none; -webkit-user-drag: none;
}
.fc-carousel.is-grabbing { cursor: grabbing; }
.fc-carousel.is-grabbing .fc-carousel__slide { cursor: grabbing; }
.fc-carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
/* 24px hit area with the small dot drawn via ::before (WCAG 2.5.8 target size). */
.fc-carousel__dot {
	position: relative; width: 24px; height: 24px; padding: 0; border: 0;
	border-radius: 50%; background: none; cursor: pointer;
}
.fc-carousel__dot::before {
	content: ''; position: absolute; inset: 8px; border-radius: 50%;
	background: rgba(28, 29, 26, .25);
}
.fc-carousel__dot.is-active::before { background: var(--color-ink); }
.fc-carousel__arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	z-index: 5;
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--color-cream); border: 1px solid rgba(28,29,26,.15);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.fc-carousel:hover .fc-carousel__arrow { opacity: 1; visibility: visible; }
.fc-carousel__arrow .material-symbols-outlined { font-variation-settings: 'wght' 200; }
.fc-carousel__arrow:hover { background: var(--color-accent-soft); }
.fc-carousel__arrow--prev { left: 24px; }
.fc-carousel__arrow--next { right: 24px; }

/* ---------- Marquee (FONTS IN PREVIEW) ---------- */
.fc-marquee { overflow: hidden; display: flex; flex-direction: column; gap: 40px; }
.fc-marquee__line { display: flex; gap: 38px; width: max-content; }
.fc-marquee__line--right { animation: fcMarqueeRight var(--fc-marquee-speed, 60s) linear infinite; }
.fc-marquee__line--left { animation: fcMarqueeLeft var(--fc-marquee-speed, 60s) linear infinite; }
@keyframes fcMarqueeRight { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fcMarqueeLeft { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.fc-marquee__item {
	flex: 0 0 350px; width: 350px; aspect-ratio: 3 / 2; overflow: hidden;
	border-radius: var(--fontsco-image-rounding-md, 0);
}
.fc-marquee__item img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .45s cubic-bezier(.2,.7,.3,1);
	border-radius: var(--fontsco-image-rounding-md, 0);
}
.fc-marquee__item:hover img { transform: scale(1.06); }
.fc-marquee__line:hover { animation-play-state: paused; }

/* ---------- Blog ---------- */
.fc-article-card__tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-accent); }
.fc-article-card__date { font-size: 14px; color: var(--color-muted); }
.fc-article-card__title { font-size: 18px; font-weight: 600; margin: 8px 0 4px; }
