/*
Theme Name: Fractal Library
Theme URI: https://ladsbookhunterjie.com
Author: Fractal Library
Description: A library of worlds for Love and Deepspace fan-made art books, comics and artist merch. Soft-launch edition: the portal, seven wings with Hunter's Watch sign-ups, the Deepspace Tunnel and the Guest Book. Shop, bag and checkout come later.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fractal-library
*/

/* ==========================================================================
   Fonts (bundled with the theme, so nothing loads from Google)
   ========================================================================== */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/marcellus-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/albert-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/albert-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/albert-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/albert-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/albert-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

/* ==========================================================================
   Tokens. The portal (navy) is the default skin; each wing overrides these
   on <body> with its own colors (see inc/wings.php).
   ========================================================================== */
:root {
	--bg: #070F22;
	--fg: #EEF6FF;
	--muted: #A9C5E8;
	--text2: #DCE8F7;
	--line: #1C2C52;
	--link: #BFE3FF;
	--accent: #F6D28B;
	--surface: #0B1630;
	--dash: #3C4C82;
	--field-bg: #070F22;
	--field-line: #2C4C82;
	--btn-bg: #EEF6FF;
	--btn-fg: #071430;
	--chip-bg: transparent;
	color-scheme: dark;

	--serif: "Marcellus", Georgia, "Times New Roman", serif;
	--sans: "Albert Sans", "Helvetica Neue", Helvetica, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

	--gutter: 16px;
	--maxw: 1120px;
}

body.fl-wing { --text2: var(--fg); }
:root:has(body.fl-wing-zayne), :root:has(body.fl-wing-caleb) { color-scheme: light dark; }

body.fl-tunnel {
	--bg: #0A0B24;
	--fg: #F3EEFF;
	--muted: #C4BBE6;
	--text2: #E2DCF7;
	--line: #2A2550;
	--link: #7FB2FF;
	--surface: #141338;
	--dash: #3C3474;
	--field-bg: #0A0B24;
	--field-line: #3C3474;
	--btn-bg: #F3EEFF;
	--btn-fg: #0A0B24;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.fl-menu-on { overflow: hidden; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 500;
	font-synthesis-weight: none;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img, video { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button, input, textarea, select { font: inherit; }
h1, h2, h3 { font-weight: 400; }

.fl-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.fl-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 14px; border-radius: 8px; }
.fl-skip:focus { left: 8px; }

.fl-kicker { font-family: var(--mono); font-size: 14px; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.fl-mono-sm { font-family: var(--mono); font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.fl-h2 { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.fl-h2.is-sm { font-size: 26px; }
.fl-h3 { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.fl-h3.is-lg { font-size: 24px; line-height: 1.2; }
.fl-small { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.fl-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fl-textlink { display: inline-block; padding: 10px 0; line-height: 1.45; font-size: 17px; color: var(--link); text-decoration: none; }
.fl-textlink:hover { color: var(--fg); text-decoration: underline; }
.fl-textlink svg { margin-left: 6px; vertical-align: -2px; transition: transform .2s; }
.fl-textlink:hover svg { transform: translateX(3px); }

.fl-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 18px; text-decoration: none; border: 1px solid transparent; }
.fl-cta:hover { color: var(--btn-fg); filter: brightness(1.06); }
.fl-cta.is-ghost { background: transparent; color: var(--fg); border-color: #5A7FB3; font-weight: 500; font-size: 17px; padding: 0 18px; }
.fl-cta.is-ghost:hover { border-color: var(--fg); }
.fl-cta.is-white { background: #FFFFFF; color: #3A1F6E; font-weight: 700; font-size: 17px; min-height: 46px; }

/* Status pill: library word | plain word */
.fl-pill { display: inline-flex; flex: 0 0 auto; align-self: flex-start; border-radius: 999px; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.fl-pill > span { padding: 5px 9px; }

/* ==========================================================================
   Header + menu
   ========================================================================== */
.fl-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-bar .fl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fl-header { top: 0; position: relative; } }
.fl-header-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter); }
.fl-header-side { display: flex; align-items: center; gap: 4px; }
.fl-header-side.is-right { justify-content: flex-end; }
.fl-iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; padding: 0; color: var(--fg); border-radius: 10px; cursor: pointer; text-decoration: none; }
.fl-iconbtn:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.fl-logo { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--fg); text-decoration: none; text-align: center; }
.fl-logo:hover { color: var(--fg); }
.fl-logo-name { font-family: var(--serif); font-size: 18px; letter-spacing: .18em; line-height: 1.2; white-space: nowrap; }
.fl-logo-name.is-big { font-size: 20px; }
.fl-logo-handle { font-family: var(--mono); font-size: 13.5px; letter-spacing: .08em; color: var(--muted); }
.fl-bag-wrap { position: relative; }
.fl-bag { position: relative; }
.fl-bag-count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #1A1204; font: 700 11px/18px var(--sans); text-align: center; }
.fl-bag-note {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: min(300px, calc(100vw - 32px));
	padding: 16px 18px 8px; border-radius: 12px; border: 1px solid #2C4C82; background: #0B1630; color: #EEF6FF;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .45); text-align: left;
}
.fl-bag-note[hidden] { display: none; }
.fl-bag-note p { margin: 0 0 6px; font-size: 16px; line-height: 1.5; color: #DCE8F7; }
.fl-bag-note .fl-bag-title { font-family: var(--serif); font-size: 20px; color: #EEF6FF; }
.fl-bag-note .fl-textlink { color: #BFE3FF; }
.fl-header-links { display: none; gap: 20px; margin-right: 8px; }
.fl-header-links a { font-size: 17px; color: var(--fg); text-decoration: none; opacity: .85; }
.fl-header-links a:hover, .fl-header-links a[aria-current] { opacity: 1; text-decoration: underline; }
@media (min-width: 900px) { .fl-header-links { display: flex; } }

.fl-menu { position: fixed; inset: 0; z-index: 100; }
.fl-menu[hidden] { display: none; }
.fl-menu-scrim { position: absolute; inset: 0; background: rgba(3, 7, 18, .6); opacity: 0; transition: opacity .2s; }
.fl-menu-panel {
	position: absolute; top: 0; left: 0; bottom: 0; width: min(380px, 88vw); overflow-y: auto;
	background: #070F22; color: #EEF6FF; border-right: 1px solid #1C2C52;
	padding: 10px 16px 32px; transform: translateX(-100%); transition: transform .22s ease;
	--fg: #EEF6FF; --muted: #8FB3DD; --line: #1C2C52;
}
.fl-menu.is-open .fl-menu-scrim { opacity: 1; }
.fl-menu.is-open .fl-menu-panel { transform: none; }
.fl-menu-top { display: flex; align-items: center; justify-content: space-between; padding: 0 0 10px; border-bottom: 1px solid #1C2C52; }
.fl-menu nav { display: flex; flex-direction: column; }
.fl-menu a { color: #EEF6FF; text-decoration: none; }
.fl-menu-portal { display: flex; align-items: center; min-height: 52px; font-family: var(--serif); font-size: 22px; border-bottom: 1px solid #1C2C52; }
.fl-menu-label { margin: 20px 0 6px; font-family: var(--mono); font-size: 14px; letter-spacing: .16em; color: #8FB3DD; }
.fl-menu ul { list-style: none; margin: 0; padding: 0; }
.fl-menu-wings a { display: grid; grid-template-columns: 12px 34px 1fr auto; align-items: center; gap: 10px; min-height: 50px; border-bottom: 1px solid #13203F; }
.fl-menu-wings a[aria-current] .fl-menu-name { text-decoration: underline; text-underline-offset: 4px; }
.fl-menu-dot { width: 12px; height: 12px; border-radius: 50%; }
.fl-menu-num { font-family: var(--mono); font-size: 14px; color: #A9C5E8; }
.fl-menu-name { font-family: var(--serif); font-size: 21px; }
.fl-menu-who { font-family: var(--mono); font-size: 16px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #C9DCF2; }
.fl-menu-more a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 66px; padding: 6px 0; font-family: var(--serif); font-size: 21px; border-bottom: 1px solid #13203F; }
.fl-menu-more span { font-family: var(--sans); font-size: 16px; color: #A9C5E8; }
.fl-menu a:hover .fl-menu-name, .fl-menu-more a:hover, .fl-menu-portal:hover { color: #F6D28B; }

/* ==========================================================================
   Footer
   ========================================================================== */
.fl-footer { margin-top: 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.fl-footer-in { padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 10px; }
.fl-footer-name { font-family: var(--serif); font-size: 18px; letter-spacing: .16em; color: var(--fg); }
.fl-footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.fl-footer-links a { color: var(--fg); font-size: 18px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.fl-footer-links a:hover { text-decoration: underline; }
.fl-footer p { margin: 0; max-width: 70ch; line-height: 1.5; }

/* ==========================================================================
   Forms (Hunter's Watch, Start the hunt, Metaflux, Guest Book question)
   ========================================================================== */
.fl-form { display: flex; flex-direction: column; gap: 10px; width: 100%; scroll-margin-top: 90px; }
.fl-label { font-size: 15px; color: var(--muted); }
.fl-input { width: 100%; min-width: 0; min-height: 46px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--field-bg); color: var(--fg); padding: 0 12px; font-size: 18px; }
.fl-input::placeholder { color: var(--muted); opacity: .75; }
.fl-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.fl-textarea { padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.5; }
.fl-inline { display: flex; gap: 8px; }
.fl-inline .fl-input { flex: 1; }
.fl-btn { flex: 0 0 auto; min-height: 46px; padding: 0 16px; border-radius: 8px; border: 0; background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: 17px; cursor: pointer; }
.fl-btn:hover { filter: brightness(1.08); }
.fl-btn-block { width: 100%; min-height: 48px; border-radius: 10px; font-size: 18px; }
.fl-form-note { margin: 0; font-size: 15px; color: var(--muted); }
.fl-form-msg { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 17px; line-height: 1.45; border: 1px solid var(--field-line); }
.fl-form-msg.is-ok { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); }
.fl-form-msg.is-error { background: color-mix(in srgb, #FF6B6B 14%, transparent); border-color: #FF8A8A; }
.fl-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 360px) { .fl-inline { flex-direction: column; } }

.fl-panel { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.fl-panel-title { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.25; }

/* ==========================================================================
   Home · The Portal
   ========================================================================== */
.fl-portal { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 62%, #1B3570 0%, #0B1A3A 45%, #050B1A 100%); }
.fl-stars {
	position: absolute; inset: 0; opacity: .7; pointer-events: none;
	background-image: radial-gradient(1.4px 1.4px at 20px 30px, #fff 60%, transparent), radial-gradient(1px 1px at 80px 120px, #dbeeff 60%, transparent), radial-gradient(1.8px 1.8px at 150px 60px, #fff 60%, transparent), radial-gradient(1px 1px at 230px 170px, #cfe6ff 60%, transparent), radial-gradient(1.2px 1.2px at 320px 90px, #fff 60%, transparent), radial-gradient(1px 1px at 360px 200px, #e7f3ff 60%, transparent);
	background-size: 390px 230px;
}
.fl-portal-in { position: relative; display: flex; flex-direction: column; padding-top: 36px; }
.fl-portal-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 0 8px; }
.fl-portal-title { margin: 0; font-family: var(--serif); font-size: 40px; line-height: 1.08; max-width: 12ch; }
.fl-portal-lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text2); max-width: 300px; }
.fl-portal-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.fl-portal-hex { display: block; width: 100%; max-width: 440px; height: auto; margin: -60px auto 0; }
.fl-ring { transform-origin: 195px 250px; transform-box: view-box; animation: fl-spin 60s linear infinite; }
.fl-ring.fl-r2 { animation-duration: 90s; animation-direction: reverse; }
.fl-ring.fl-r3 { animation-duration: 120s; }
@keyframes fl-spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
	.fl-portal-in { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding-top: 0; min-height: 560px; }
	.fl-portal-copy { padding: 48px 0; flex: 1 1 50%; }
	.fl-portal-title { font-size: 60px; }
	.fl-portal-lede { font-size: 18px; max-width: 420px; }
	.fl-portal-hex { flex: 0 1 520px; max-width: 520px; margin: 0; }
}

.fl-meet { padding-top: 36px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 70px; }
.fl-mini-quote { margin: -4px 0 0; display: flex; flex-direction: column; gap: 4px; }
.fl-mini-quote blockquote { margin: 0; font-size: 18px; font-style: italic; color: var(--text2); }
.fl-mini-quote figcaption { font-family: var(--mono); font-size: 14px; color: var(--muted); }

.fl-wing-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .fl-wing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fl-wing-card.is-everyone { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .fl-wing-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fl-wing-card.is-everyone { min-height: 130px; } .fl-wing-card.is-everyone .fl-wing-card-copy { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 18px; } .fl-wing-card.is-everyone .fl-wing-card-copy > .fl-kicker { flex-basis: 100%; } }
.fl-wing-card { display: flex; align-items: center; gap: 14px; min-height: 150px; padding: 18px; border-radius: 14px; text-decoration: none; overflow: hidden; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.fl-wing-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.fl-wing-card-copy { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.fl-wing-card-who { font-size: 18px; font-weight: 500; letter-spacing: .14em; }
.fl-wing-card-name { font-family: var(--serif); font-size: 25px; line-height: 1.1; }
.fl-wing-card-quote { font-size: 17px; line-height: 1.45; font-style: italic; }
.fl-wing-card-src { font-family: var(--mono); font-size: 14px; letter-spacing: .02em; }
.fl-wing-card-icon { flex: 0 0 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.fl-home-shelved { padding-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.fl-stocking-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; border-radius: 14px; border: 1px dashed var(--dash); text-decoration: none; color: var(--fg); background: radial-gradient(circle at 100% 0%, rgba(246, 210, 139, .12), transparent 55%), #0B1630; }
.fl-stocking-card:hover { color: var(--fg); border-color: var(--accent); }
.fl-stocking-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.fl-stocking-text { font-size: 17px; line-height: 1.55; color: var(--text2); max-width: 60ch; }
.fl-stocking-card .fl-textlink { padding: 4px 0 0; }

.fl-home-pair { display: grid; grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
@media (min-width: 900px) { .fl-home-pair { grid-template-columns: 1fr 1fr; align-items: start; } }
.fl-legend { padding: 20px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 12px; }
.fl-legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.fl-legend li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fl-legend li > span:last-child { font-size: 17px; color: var(--text2); line-height: 1.45; }
.fl-legend .fl-pill, .fl-tags .fl-pill { font-size: 16px; font-weight: 700; }
.fl-legend .fl-pill > span, .fl-tags li .fl-pill > span { padding: 7px 12px; }
.fl-home-faq { display: flex; flex-direction: column; gap: 10px; }
.fl-home-faq p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text2); }

/* ==========================================================================
   Wing pages
   ========================================================================== */
.fl-wing-hero { position: relative; overflow: hidden; background: var(--hero-bg); }
.fl-wing-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fl-fx-sprinkle::before { opacity: .9; background-image: radial-gradient(2px 2px at 30px 40px, #F7B6C8 70%, transparent), radial-gradient(2px 2px at 110px 20px, #BFE3C0 70%, transparent), radial-gradient(2px 2px at 200px 70px, #CDB8F0 70%, transparent), radial-gradient(2px 2px at 290px 30px, #FFE9A8 70%, transparent), radial-gradient(2px 2px at 350px 90px, #9CC8F2 70%, transparent); background-size: 390px 120px; }
.fl-fx-stars-warm::before { opacity: .85; background-image: radial-gradient(1.4px 1.4px at 24px 30px, #FFF3E2 60%, transparent), radial-gradient(1px 1px at 96px 90px, #F6D28B 60%, transparent), radial-gradient(1.8px 1.8px at 170px 40px, #FFF3E2 60%, transparent), radial-gradient(1px 1px at 250px 120px, #F6D28B 60%, transparent), radial-gradient(1.2px 1.2px at 330px 60px, #FFF3E2 60%, transparent); background-size: 390px 150px; }
.fl-fx-paper::before { opacity: .5; background-image: radial-gradient(1.2px 1.2px at 30px 40px, #D9B47A 60%, transparent), radial-gradient(1px 1px at 140px 90px, #C9B9A0 60%, transparent), radial-gradient(1.4px 1.4px at 260px 30px, #D9B47A 60%, transparent), radial-gradient(1px 1px at 340px 120px, #C9B9A0 60%, transparent); background-size: 390px 150px; }
.fl-chip.is-traces { border-style: dashed; }
.fl-chip.is-traces.is-active { border-style: solid; }
.fl-fx-grid::before { background-image: repeating-linear-gradient(90deg, transparent 0 29px, rgba(212, 175, 55, .14) 29px 30px), repeating-linear-gradient(0deg, transparent 0 29px, rgba(212, 175, 55, .14) 29px 30px); }
.fl-wing-hero-in { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; padding-bottom: 30px; }
.fl-wing-art { padding: 0 4px; }
.fl-banner { display: block; width: 100%; max-width: 350px; height: auto; overflow: visible; }
.fl-wing-head { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
.fl-wing-who { font-size: 20px; font-weight: 500; letter-spacing: .14em; line-height: 1.2; }
.fl-wing-num { font-size: 15px; letter-spacing: .16em; opacity: .85; vertical-align: 3px; }
.fl-wing-title { margin: 0; font-family: var(--serif); font-size: 44px; line-height: 1.02; }
.fl-quote { margin: 4px 0 0; padding: 0 0 0 14px; border-left: 3px solid var(--quote-bar); display: flex; flex-direction: column; gap: 6px; }
.fl-quote blockquote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.fl-quote figcaption { font-family: var(--mono); font-size: 14px; color: var(--hero-muted); }
@media (min-width: 900px) {
	.fl-wing-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
	.fl-wing-art { order: 2; }
	.fl-banner { max-width: 520px; margin-left: auto; }
	.fl-wing-title { font-size: 64px; }
	.fl-wing-who { font-size: 24px; }
	.fl-quote blockquote { font-size: 26px; }
}

.fl-spin-record { transform-origin: 70px 50px; transform-box: view-box; animation: fl-spin 8s linear infinite; }
.fl-note { animation: fl-bob 3.6s ease-in-out infinite; }
.fl-n2 { animation-delay: .6s; } .fl-n3 { animation-delay: 1.2s; } .fl-n4 { animation-delay: 1.8s; } .fl-n5 { animation-delay: 2.4s; }
@keyframes fl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.fl-hexspin { transform-origin: 175px 52px; transform-box: view-box; animation: fl-spin 40s linear infinite; }

/* Chip row: no gray scrollbar; the edge with more chips fades out instead. */
.fl-chipbar { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.fl-chipbar .fl-wrap { padding-left: 0; padding-right: 0; }
.fl-chips {
	position: relative; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
	padding: 14px var(--gutter); scrollbar-width: none; -ms-overflow-style: none;
	--fade-l: 0px; --fade-r: 0px;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.fl-chips::-webkit-scrollbar { display: none; width: 0; height: 0; }
.fl-chips.fade-l { --fade-l: 36px; }
.fl-chips.fade-r { --fade-r: 36px; }
.fl-chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; font-size: 18px; font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--fg); background: var(--chip-bg); border: 1px solid var(--field-line); }
.fl-chip:hover { color: var(--fg); border-color: var(--fg); }
.fl-chip.is-active { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; font-weight: 700; }
@media (min-width: 900px) { .fl-chip { font-size: 18px; min-height: 48px; padding: 0 22px; } }

.fl-wing-body { display: flex; flex-direction: column; gap: 24px; padding-top: 28px; }
.fl-stocking { max-width: 720px; padding: 22px 18px; border-radius: 14px; border: 1px dashed var(--dash); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; scroll-margin-top: 90px; }
.fl-stocking-h { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.fl-stocking-p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--fg); opacity: .88; }
@media (min-width: 900px) { .fl-stocking { padding: 28px; } .fl-stocking-h { font-size: 30px; } .fl-stocking-p { font-size: 18px; } }

.fl-reserved { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fl-reserved-tile { height: 200px; border-radius: 12px; border: 1px dashed var(--dash); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; color: var(--muted); opacity: .85; }
.fl-reserved-tile.is-wide { display: none; }
@media (min-width: 900px) { .fl-reserved { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fl-reserved-tile { height: 240px; } .fl-reserved-tile.is-wide { display: flex; } }
.fl-wing-tunnel { align-self: flex-start; }

/* ==========================================================================
   Deepspace Tunnel
   ========================================================================== */
.fl-tunnel-hero { position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; background: radial-gradient(circle at 55% 32%, #2E2170 0%, #161140 40%, #0A0B24 78%); }
.fl-tunnel-art { position: absolute; left: 50%; top: 0; width: 390px; max-width: none; height: 300px; transform: translateX(-50%); }
.fl-tunnel-head { position: relative; display: flex; flex-direction: column; gap: 10px; padding-bottom: 26px; }
.fl-tunnel-title { margin: 0; font-family: var(--serif); font-size: 42px; line-height: 1.04; }
.fl-tunnel-lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text2); max-width: 520px; }
@media (min-width: 900px) {
	.fl-tunnel-hero { min-height: 520px; align-items: center; background: radial-gradient(circle at 72% 45%, #2E2170 0%, #161140 35%, #0A0B24 70%); }
	.fl-tunnel-art { left: auto; right: max(0px, calc((100% - var(--maxw)) / 2)); top: 50%; width: 620px; height: 477px; transform: translateY(-50%); }
	.fl-tunnel-head { padding-bottom: 0; max-width: var(--maxw); }
	.fl-tunnel-head > * { max-width: 480px; }
	.fl-tunnel-title { font-size: 64px; }
	.fl-tunnel-lede { font-size: 18px; }
}

.fl-tunnel-body { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.fl-travel { padding: 16px; border-radius: 12px; border: 1px dashed var(--dash); display: flex; flex-direction: column; gap: 10px; }
.fl-travel .fl-h3 { font-size: 19px; }
.fl-travel ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fl-travel li { display: flex; gap: 10px; align-items: baseline; font-size: 17px; line-height: 1.45; }
.fl-travel b { font-weight: 600; }
.fl-travel em { font-style: normal; color: var(--muted); }
.fl-travel-n { flex: 0 0 18px; font-family: var(--mono); font-size: 14px; color: #F6D28B; }
@media (min-width: 900px) { .fl-travel ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .fl-travel li { flex-direction: column; gap: 4px; } }

.fl-hauls { display: flex; flex-direction: column; gap: 16px; }
.fl-haul-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .fl-haul-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.fl-haul { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fl-haul.is-landed { opacity: .7; }
.fl-haul.is-empty { border-style: dashed; border-color: var(--dash); background: transparent; }
.fl-haul-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fl-haul-title { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.fl-haul-note { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text2); }
.fl-haul-content { font-size: 17px; line-height: 1.55; color: var(--text2); display: flex; flex-direction: column; gap: 12px; }
.fl-haul-content > * { margin: 0; }
.fl-haul-content a { color: var(--link); }
.fl-haul-content .wp-block-gallery, .fl-haul-content .gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px !important; margin: 0; }
.fl-haul-content .wp-block-gallery .wp-block-image, .fl-haul-content .gallery .gallery-item { width: auto !important; margin: 0 !important; aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
.fl-haul-content .wp-block-gallery img, .fl-haul-content .gallery img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.fl-haul-content figcaption { display: none; }
.fl-haul-content .wp-block-image img, .fl-haul-content .wp-block-video video { border-radius: 8px; }
.fl-haul-content ul { padding-left: 1.1em; }

.fl-track { list-style: none; margin: 0; padding: 4px 0 2px; display: flex; }
.fl-track li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.fl-track li::before { content: ""; position: absolute; left: 50%; top: 5px; width: 100%; height: 2px; background: var(--line); }
.fl-track li:last-child::before { display: none; }
.fl-track li.is-done::before { background: #B48CFF; }
.fl-track-dot { position: relative; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; }
.fl-track .is-done .fl-track-dot { background: #B48CFF; border-color: #B48CFF; }
.fl-track .is-now .fl-track-dot { background: var(--fg); border-color: var(--fg); box-shadow: 0 0 0 4px rgba(180, 140, 255, .35); }
.fl-track-name { font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--muted); }
.fl-track-sub { font-family: var(--mono); font-size: 12.5px; line-height: 1.2; color: var(--muted); }
.fl-track .is-now .fl-track-name { font-weight: 700; color: var(--fg); }
.fl-track .is-now .fl-track-sub { color: var(--fg); }
@media (max-width: 480px) { .fl-track-sub { display: none; } }
.fl-track .is-next .fl-track-name, .fl-track .is-next .fl-track-sub { color: #8C84B8; }

.fl-ig-card { padding: 18px; border-radius: 14px; background: linear-gradient(135deg, #EE82BE 0%, #A86AE8 45%, #6576EE 80%, #3E86DD 100%); color: #FFFFFF; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fl-ig-title { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.2; max-width: 30ch; text-shadow: 0 1px 2px rgba(40, 10, 70, .25); }
.fl-ig-card .fl-kicker { color: #FFFFFF; }
@media (min-width: 900px) { .fl-tunnel-body > .fl-ig-card, .fl-tunnel-body > .fl-metaflux { width: 100%; } .fl-ig-card { padding: 28px; } }

/* ==========================================================================
   Guest Book
   ========================================================================== */
.fl-gb-hero { background: radial-gradient(circle at 85% 0%, rgba(246, 210, 139, .18), transparent 55%), linear-gradient(180deg, #0B1A3A, #070F22); }
.fl-gb-hero-in { padding-top: 32px; padding-bottom: 26px; display: flex; flex-direction: column; gap: 10px; }
.fl-gb-title { margin: 0; font-family: var(--serif); font-size: 38px; line-height: 1.08; max-width: 16ch; }
.fl-gb-lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text2); max-width: 52ch; }
@media (min-width: 900px) { .fl-gb-hero-in { padding-top: 56px; padding-bottom: 44px; } .fl-gb-title { font-size: 56px; } .fl-gb-lede { font-size: 18px; } }

.fl-gb { display: flex; flex-direction: column; gap: 34px; padding-top: 6px; }
.fl-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .fl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.fl-tile { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.fl-tile-title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.fl-tile-text { font-size: 16px; line-height: 1.4; color: var(--muted); }

.fl-gb-cols { display: grid; grid-template-columns: 1fr; gap: 34px; }
@media (min-width: 900px) { .fl-gb-cols { grid-template-columns: 1fr 1fr; gap: 48px; } }
.fl-gb-sec { display: flex; flex-direction: column; gap: 10px; }
.fl-gb-sec > .fl-kicker + .fl-h2 { margin-top: -4px; }
.fl-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fl-tags li { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.fl-tags li .fl-pill { font-weight: 700; }
.fl-tags li .fl-pill > span { padding: 4px 8px; }
.fl-tags p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text2); }
.fl-tags b { color: var(--fg); }

.fl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fl-steps li { display: flex; gap: 14px; position: relative; }
.fl-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.fl-step-n { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #16244A; color: #F6D28B; border: 1px solid #F6D28B; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 15px; font-weight: 500; }
.fl-steps li.is-first .fl-step-n { background: #F6D28B; color: #2A1B00; }
.fl-step-copy { display: flex; flex-direction: column; gap: 3px; padding: 4px 0 16px; }
.fl-step-copy b { font-size: 18px; }
.fl-step-copy span { font-size: 17px; line-height: 1.5; color: var(--text2); }

.fl-gb-policies { max-width: 820px; }
.fl-pol-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.fl-pol-title { display: flex; flex-direction: column; gap: 6px; }
.fl-toggle-all {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
	border-radius: 999px; border: 1px solid #5C4A2A; cursor: pointer;
	background: linear-gradient(135deg, rgba(246, 210, 139, .14), rgba(242, 163, 200, .10));
	color: #F6D28B; font: 500 14px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
	transition: border-color .2s, background .2s;
}
.fl-toggle-all:hover { border-color: #F6D28B; background: linear-gradient(135deg, rgba(246, 210, 139, .24), rgba(242, 163, 200, .16)); }
.fl-toggle-all[hidden] { display: none; }
.fl-ta-icon { flex: 0 0 auto; }
.fl-ta-up { display: none; }
.fl-toggle-all.is-open .fl-ta-up { display: inline; }
.fl-toggle-all.is-open .fl-ta-down { display: none; }
.fl-policies { display: flex; flex-direction: column; gap: 12px; counter-reset: flpol; }
.fl-policies > * { margin: 0; }
.fl-policies .wp-block-details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 16px; counter-increment: flpol; }
.fl-policies .wp-block-details summary { min-height: 58px; display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.fl-policies .wp-block-details summary::-webkit-details-marker { display: none; }
.fl-policies .wp-block-details summary::before { content: counter(flpol, decimal-leading-zero); flex: 0 0 22px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.fl-policies .wp-block-details summary::after { content: "+"; margin-left: auto; color: var(--muted); font-family: var(--sans); font-size: 20px; transition: transform .2s; }
.fl-policies .wp-block-details[open] summary::after { transform: rotate(45deg); }
.fl-policies .wp-block-details > :not(summary) { margin: 0 0 14px; }
.fl-policies .wp-block-details > :last-child { margin-bottom: 18px; }
.fl-policies ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fl-policies li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.55; color: var(--text2); }
.fl-policies li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.fl-policies li strong { color: var(--fg); }
.fl-policies p { font-size: 17px; line-height: 1.6; color: var(--text2); }
.fl-policies .fl-callout { padding: 14px; border-radius: 10px; border: 1px solid #5C4A2A; background: linear-gradient(135deg, rgba(246, 210, 139, .16), rgba(242, 163, 200, .12)); color: #E9DCC0; font-size: 17px; line-height: 1.5; }
.fl-policies .fl-callout strong { display: block; margin-bottom: 4px; color: #FFF3D6; font-size: 18px; }
.fl-policies .wp-block-quote, .fl-prose .wp-block-quote { margin: 0; border-left: 3px solid var(--accent); padding: 0 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.fl-policies .wp-block-quote p { margin: 0; font-style: italic; font-size: 17px; color: var(--fg); }
.fl-policies .wp-block-quote cite, .fl-prose .wp-block-quote cite { font-style: normal; font-family: var(--mono); font-size: 14px; color: var(--muted); }

.fl-soon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 820px; }
.fl-soon-tile { border-radius: 12px; border: 1px dashed var(--dash); padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.fl-soon-tile .fl-kicker { font-size: 13.5px; letter-spacing: .14em; }
.fl-soon-tile .fl-tile-title { font-size: 18px; }
.fl-ask { max-width: 820px; }

/* ==========================================================================
   Plain pages + editor content
   ========================================================================== */
.fl-plain { padding-top: 40px; max-width: 820px; }
.fl-plain-head { margin-bottom: 20px; }
.fl-plain-title { margin: 0; font-family: var(--serif); font-size: 38px; line-height: 1.1; }
.fl-404 { display: flex; flex-direction: column; gap: 14px; padding-bottom: 40px; }
.fl-404 p { margin: 0; color: var(--text2); }
.fl-post + .fl-post { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.fl-prose { font-size: 18px; line-height: 1.65; }
.fl-prose > * { margin: 0 0 1em; }
.fl-prose h2, .fl-prose h3 { font-family: var(--serif); line-height: 1.2; margin-top: 1.4em; }
.fl-prose h2 { font-size: 26px; } .fl-prose h3 { font-size: 20px; }
.fl-prose ul, .fl-prose ol { padding-left: 1.2em; }
.fl-prose img { border-radius: 10px; }
.fl-prose .wp-block-button__link { background: var(--btn-bg); color: var(--btn-fg); border-radius: 999px; padding: 12px 22px; text-decoration: none; font-weight: 600; }
.fl-prose .wp-block-gallery { gap: 8px; }
.fl-wing-extra { max-width: 720px; }

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.fl-ring, .fl-spin-record, .fl-note, .fl-hexspin { animation: none; }
	.fl-wing-card, .fl-menu-panel, .fl-menu-scrim, .fl-textlink svg { transition: none; }
}


/* =========================================================================
   Shop: wing shelves + product pages (from the design canvas, Oct 2026)
   ========================================================================= */
.fl-soon { font-family: var(--serif); font-size: 0.95em; letter-spacing: 0.01em; }

/* Shelf on a wing page */
.fl-shelf { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 8px; }
.fl-shelf-count { font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.fl-type-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.fl-type-chip { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field-line); background: var(--chip-bg, transparent); color: var(--fg); font: 500 14px var(--sans); cursor: pointer; }
.fl-type-chip.is-on { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); font-weight: 700; }
.fl-shelf-sort { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fl-shelf-sort label { font-size: 13px; color: var(--muted); }
.fl-sort { min-height: 40px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--field-bg); color: var(--fg); padding: 0 10px; font: 500 14px var(--sans); }
.fl-shelf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
@media (min-width: 720px) { .fl-shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1040px) { .fl-shelf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Volume card */
.fl-card { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--fg); text-decoration: none; }
.fl-card[hidden] { display: none; }
.fl-card-cover { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.fl-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.fl-card:hover .fl-card-img { transform: scale(1.03); }
.fl-card-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 11px; color: var(--muted); }
.fl-card-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.fl-card-meta { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.fl-card-price { font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 14px; }
.fl-card-price .fl-soon { font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 12.5px; color: var(--muted); }
.fl-card.is-out { opacity: .55; }
.fl-card.is-out .fl-card-img { filter: grayscale(.8); }

/* Two-tone status pill: library word + plain word */
.fl-pill { display: inline-flex; align-self: flex-start; border-radius: 999px; overflow: hidden; font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.fl-pill > span { padding: 4px 8px; }
.fl-pill > span:first-child { background: var(--btn-bg); color: var(--btn-fg); }
.fl-pill > span:last-child { background: var(--surface); color: var(--fg); }
.fl-pill.is-transit > span:first-child { background: var(--accent); color: var(--bg); }
.fl-pill.is-last > span:first-child { background: var(--quote-bar, var(--accent)); color: var(--fg); }
.fl-pill.is-out > span:first-child { background: #4A4244; color: #E4DCDE; }
.fl-pill.is-out > span:last-child { background: #2B2526; color: #B5AAAC; }

/* Hunter's Watch box under the shelf */
.fl-watchbox { margin-top: 40px; padding: 22px; border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }

/* Product page */
.fl-prod { padding: 8px 0 24px; }
.fl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 16px; font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fl-crumbs a { color: var(--muted); text-decoration: none; }
.fl-crumbs a:hover { color: var(--fg); }
.fl-prod-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 900px) { .fl-prod-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; } .fl-gallery { position: sticky; top: 24px; } }
.fl-gallery { display: flex; flex-direction: column; gap: 10px; }
.fl-gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.fl-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fl-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fl-thumb { padding: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--surface); cursor: pointer; }
.fl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-thumb.is-on { border-color: var(--accent); }
.fl-prod-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fl-prod-title { margin: 4px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 46px); line-height: 1.05; }
.fl-prod-meta { font-size: 15px; color: var(--muted); }
.fl-prod-price { font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 24px; margin-top: 4px; }
.fl-prod-price .fl-soon { font-family: var(--serif); font-size: 22px; }
.fl-prod-buy form.cart { display: flex; gap: 10px; align-items: stretch; margin: 6px 0 0; }
.fl-prod-buy .quantity .qty { width: 64px; min-height: 52px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--field-bg); color: var(--fg); font: 600 16px var(--sans); text-align: center; }
body .fl-prod .fl-prod-buy button.single_add_to_cart_button,
body .fl-prod .fl-prod-buy button.single_add_to_cart_button.alt { flex: 1; min-height: 52px; border-radius: 10px; border: 0; background: var(--btn-bg) !important; color: var(--btn-fg) !important; font: 700 16px var(--sans); letter-spacing: 0.01em; }
body .fl-prod .fl-prod-buy button.single_add_to_cart_button:hover { opacity: .9; }
.fl-prod-buy .fl-prod-watch { display: flex; width: 100%; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-fg); font: 700 16px var(--sans); letter-spacing: 0.01em; text-decoration: none; }
.fl-prod-buy .fl-prod-watch:hover { opacity: .9; }
.fl-prod-ship { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.fl-prod-tunnel { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); gap: 8px; }
.fl-prod-tunnel p { margin: 0; font-size: 14px; line-height: 1.55; max-width: 62ch; }
.fl-prod-tunnel .fl-prod-eta { font-weight: 600; }
.fl-prod-tunnel .fl-prod-tunnel-foot { font-size: 13px; color: var(--muted); }
.fl-catalog + .fl-prod-price { margin-top: 18px; }
.fl-prod-sec { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.fl-prod-kicker { font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 11.5px; letter-spacing: 0.14em; color: var(--accent); }
.fl-prod-desc { font-size: 16px; line-height: 1.6; }
.fl-prod-desc p { margin: 0 0 10px; }
.fl-prod-desc p:first-child { font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.fl-catalog { margin-top: 22px; padding: 18px; border-radius: 6px; background: #F3EEE6; color: #2A1E1E; font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 13px; }
.fl-catalog-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 2px solid var(--accent); font-weight: 500; letter-spacing: 0.1em; }
.fl-catalog-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #D8CFC3; }
.fl-catalog-row:last-child { border-bottom: 0; }
.fl-catalog-row span:first-child { flex: 0 0 108px; color: #7A6A66; }
.fl-catalog-row span:last-child { flex: 1; min-width: 0; }
.fl-more { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.fl-more-h { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.fl-more-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 200px); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.fl-prod .woocommerce-message, .fl-prod .woocommerce-info, .fl-prod .woocommerce-error { background: var(--surface); color: var(--fg); border-top-color: var(--accent); }
.fl-prod .woocommerce-message a.button { background: var(--btn-bg); color: var(--btn-fg); }

.fl-prod .fl-prod-buy .stock { display: none; }
.fl-card-price .fl-soon { white-space: nowrap; }
@media (max-width: 420px) { .fl-card-price .fl-soon { font-size: 11.5px; } }

/* Seamless horizontal rows: scroll without a visible bar */
.fl-more-row, .fl-type-chips { scrollbar-width: none; -ms-overflow-style: none; }
.fl-more-row::-webkit-scrollbar, .fl-type-chips::-webkit-scrollbar { display: none; }

/* Product page: canvas sections (Oct 2026, v1.2) */
.fl-photo-note { margin: 2px 0 0; font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.fl-gallery-main video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.fl-gallery-main [hidden] { display: none !important; }
.fl-thumb.is-video { display: flex; align-items: center; justify-content: center; font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 10px; letter-spacing: 0.06em; color: var(--accent); border-color: var(--accent); }
.fl-prod-memory p { margin: 0 0 12px; font-family: var(--serif); font-size: 20px; line-height: 1.45; }
.fl-prod-memory p:last-child { margin-bottom: 0; }
.fl-inside { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; }
.fl-cond-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fl-cond { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface); }
.fl-cond img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Deepspace Tunnel: listings under each haul */
.fl-haul-items { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid var(--line); }
.fl-haul-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fl-haul-item:last-child { border-bottom: 0; }
.fl-haul-item-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fl-haul-item-name { color: var(--fg); text-decoration: none; font-size: 17px; font-weight: 700; line-height: 1.25; }
.fl-haul-item-name:hover { text-decoration: underline; }
.fl-haul-item-meta { font-size: 13px; color: var(--muted); line-height: 1.4; }
.fl-haul-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font: 700 14px var(--sans); text-decoration: none; white-space: nowrap; }
.fl-haul-btn.is-ghost { background: transparent; color: var(--fg); border: 1px solid var(--field-line); }
.fl-haul-btn:hover { opacity: .9; }

/* Photo + text guard (assets/site.js adds .fl-guard; cart, checkout and account pages are left alone) */
html.fl-guard body { -webkit-user-select: none; user-select: none; }
html.fl-guard input, html.fl-guard textarea, html.fl-guard select, html.fl-guard [contenteditable], html.fl-guard .fl-allow-copy { -webkit-user-select: text; user-select: text; }
html.fl-guard body img:not(.emoji), html.fl-guard body video { -webkit-user-drag: none; -webkit-touch-callout: none; }
html.fl-guard body :is(.fl-gallery, .fl-card-cover, .fl-cond, .fl-thumbs, .fl-haul-items, .fl-haul-content, figure, picture) img { pointer-events: none; }
html.fl-shield body img:not(.emoji):not(#wpadminbar img), html.fl-shield body video { filter: brightness(0) !important; transition: none !important; }
@media print { body img, body video { visibility: hidden !important; } }

/* ---------- Good to know (1.2.5) ---------- */
.fl-prod-good { margin-top: 16px; }
.fl-prod-good p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Swipeable product gallery (theme 1.2.7) */
.fl-slides { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.fl-slides::-webkit-scrollbar { display: none; }
.fl-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.fl-slide img, .fl-slide video { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; user-select: none; }
.fl-gallery-main.is-multi .fl-slides { cursor: grab; }
.fl-slides.is-drag { scroll-snap-type: none; cursor: grabbing; }
.fl-slide-nav { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; padding: 0 0 4px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #1B1F3B; font: 400 30px/1 var(--serif); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .22); transition: opacity .2s; }
.fl-slide-nav.is-prev { left: 10px; }
.fl-slide-nav.is-next { right: 10px; }
.fl-slide-nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .fl-slide-nav { display: none; } }

/* Shelf cards with more than one photo: swipe on phones, dots on desktop */
.fl-card-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.fl-card-track::-webkit-scrollbar { display: none; }
.fl-card-track .fl-card-img { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; transition: none; }
.fl-card:hover .fl-card-track .fl-card-img { transform: none; }
.fl-card-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.fl-card-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); pointer-events: auto; cursor: pointer; }
.fl-card-dots span.is-on { background: #fff; }

/* "Also in" row cards: second photo on hover (mouse only; the row itself is what you swipe) */
.fl-card-img2 { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
@media (hover: hover) { .fl-card:hover .fl-card-img2 { opacity: 1; } }

/* 1.2.8 · Buy box: price + Add to bag on one line; one-tap pay underneath with its own label */
.fl-prod-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.fl-catalog + .fl-prod-buy, .fl-teaser + .fl-prod-buy { margin-top: 18px; }
.fl-prod-buy .fl-prod-price { margin: 0; flex: 0 0 auto; }
.fl-prod-buy form.cart { display: contents; }
.fl-prod-buy .quantity:not(:has(input:not([type="hidden"]))) { display: none; }
body .fl-prod .fl-prod-buy button.single_add_to_cart_button,
body .fl-prod .fl-prod-buy button.single_add_to_cart_button.alt { flex: 1 1 220px; }
.fl-prod-buy .fl-prod-watch { flex: 1 1 220px; width: auto; }
.fl-prod-buy #wc-square-digital-wallet { flex: 1 1 100%; margin: 0; }
.fl-prod-buy .fl-buynow { flex: 1 1 100%; display: none; margin: 2px 0 -8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.fl-prod-buy.has-wallet .fl-buynow { display: block; }
.fl-buynow b { font: 500 11px var(--mono, "IBM Plex Mono", monospace); letter-spacing: .12em; color: var(--fg); margin-right: 8px; }
.fl-prod-buy .fl-form { flex: 1 1 100%; }

/* 1.2.8 · "Library card coming soon" for listings that are only a name so far */
.fl-teaser { margin-top: 22px; padding: 16px 18px; border-radius: 6px; background: #F3EEE6; color: #2A1E1E; border-top: 2px solid var(--accent); }
.fl-teaser .fl-prod-kicker { color: #7A6A66; }
.fl-teaser p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; max-width: 60ch; }
.fl-teaser .fl-teaser-line { margin-top: 10px; font-family: var(--serif); font-size: 18px; font-style: italic; }

/* 1.2.8 · "Also in" row: arrow buttons on desktop (phones keep swiping) */
.fl-more-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fl-more-nav { display: flex; gap: 8px; }
.fl-more-nav[hidden] { display: none; }
.fl-more-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; display: grid; place-items: center; padding: 0; }
.fl-more-btn svg { width: 18px; height: 18px; }
.fl-more-btn:hover:not(:disabled) { border-color: var(--fg); }
.fl-more-btn:disabled { opacity: .35; cursor: default; }

/* 1.2.9 · Buy box like a classic shop page: price, then Add to bag, then one-tap pay, both full width.
   When a one-tap pay button shows, Add to bag turns outlined so the two read as a pair. */
.fl-prod-buy { gap: 10px 18px; }
.fl-prod-buy .fl-prod-price { flex: 1 1 100%; }
body .fl-prod .fl-prod-buy button.single_add_to_cart_button,
body .fl-prod .fl-prod-buy button.single_add_to_cart_button.alt { flex: 1 1 100%; }
.fl-prod-buy .fl-prod-watch { flex: 1 1 100%; }
body .fl-prod .fl-prod-buy.has-wallet button.single_add_to_cart_button,
body .fl-prod .fl-prod-buy.has-wallet button.single_add_to_cart_button.alt { background: transparent !important; color: var(--fg) !important; box-shadow: inset 0 0 0 2px var(--fg); }
body .fl-prod .fl-prod-buy.has-wallet button.single_add_to_cart_button:hover { box-shadow: inset 0 0 0 3px var(--fg); opacity: 1; }
.fl-prod-buy .fl-buynow { display: none !important; }
.fl-prod-buy #wc-square-google-pay button { min-height: 52px; border-radius: 10px; }

/* 1.2.10 · Deepspace Tunnel: warehouse photo carousel (shuffled each visit, auto-advances, arrows + pause) */
.fl-tunnel-photos { display: grid; gap: 14px; margin: 0 0 40px; }
.fl-tp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fl-tp-lede { margin: 6px 0 0; color: #C9C6E8; font-size: 15px; line-height: 1.5; max-width: 52ch; }
.fl-tp-nav { display: flex; gap: 8px; }
.fl-tp-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; padding: 0; }
.fl-tp-btn:hover { background: rgba(255, 255, 255, .16); }
.fl-tp-btn:focus-visible { outline: 2px solid #7FB2FF; outline-offset: 2px; }
.fl-tp-btn svg { width: 18px; height: 18px; }
.fl-tp-pause .fl-tp-i-play { display: none; }
.fl-tp-pause.is-paused .fl-tp-i-play { display: block; }
.fl-tp-pause.is-paused .fl-tp-i-pause { display: none; }
.fl-tp-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 12px; }
.fl-tp-track::-webkit-scrollbar { display: none; }
.fl-tp-track:focus-visible { outline: 2px solid #7FB2FF; outline-offset: 4px; }
.fl-tp-slide { margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.fl-tp-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .fl-tp-track { grid-auto-columns: 78%; } }

/* 1.2.18 (Nov 7): Terms of Sale, Privacy, Accessibility, shop, bag, checkout and account pages carry body.fl-portal (navy palette). The home hero's overflow:hidden landed on <body> and froze scrolling there. */
body.fl-portal { overflow: visible; }
/* Admin-only tag on hidden drafts (drafts show on shelves and in the Tunnel only for logged-in shop admins). */
.fl-card-draft { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 3px 8px; border-radius: 999px; background: rgba(27, 31, 59, .88); color: #fff; font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 10.5px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }

/* 1.2.20 (Nov 10): shelf card arrows for mouse users (added by site.js on cards with 2+ photos). */
.fl-card-arrow { position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1B1F3B; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .22); cursor: pointer; opacity: 0; transition: opacity .2s; }
.fl-card-arrow svg { width: 16px; height: 16px; }
.fl-card-arrow.is-prev { left: 8px; }
.fl-card-arrow.is-next { right: 8px; }
.fl-card:hover .fl-card-arrow, .fl-card:focus-visible .fl-card-arrow { opacity: 1; }
.fl-card .fl-card-arrow.is-off { opacity: 0; pointer-events: none; }
.fl-hunt-note { margin: 14px 0 0; }
