/* =========================================================================
   Harbourside — design system  (build "Harbour" · Video Sex Chat)
   Palette: Dusty Rose (A7)  ·  Direction: Thin Line-Art Minimal (C10)
   Edges: Swiss flat (E2-5)   ·  Accent strategy 3: coloured headings + rules
   ========================================================================= */

:root {
	--bg:#FBF4F5; --surface:#FFFCFC; --text:#321F25; --muted:#6F5560;
	--accent:#A85669; --accent2:#E8B8C4;
	--accent-btn:#A85669; --accent-btn-text:#FFFFFF;
	--line: rgba(50,31,37,.12);
	--rule: rgba(168,86,105,.28);
	--illus-bg:#FBEEF1;
	--grad: linear-gradient(140deg,#FAEDEF,#F4DCE1 50%,#ECC9D2);
	--grad-text: linear-gradient(92deg,#A85669,#C76B80);

	--space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
	--space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px;
	--radius:8px; --radius-sm:6px;
	--maxw:1160px; --head-h:64px;

	--f-head:'Exo 2', system-ui, sans-serif;
	--f-body:'Noto Sans', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
	--bg:#1E1417; --surface:#291B20; --text:#F2E5E9; --muted:#C7A9B2;
	--accent:#D195A4; --accent2:#8A5563;
	--accent-btn:#D195A4; --accent-btn-text:#2A1216;
	--line: rgba(242,229,233,.14);
	--rule: rgba(209,149,164,.26);
	--illus-bg:#241519;
	--grad: linear-gradient(140deg,#2A1B20,#33232A 55%,#3C2A31);
	--grad-text: linear-gradient(92deg,#E7B3C0,#D195A4);
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-body);
	line-height: 1.7;
	font-size: 1.02rem;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

/* ---- Skip link ---- */
.hbr-skip {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--accent-btn); color: var(--accent-btn-text);
	padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; text-decoration: none;
}
.hbr-skip:focus { left: 0; }

/* =========================================================================
   Header (Bank E1-7 hide-on-scroll)
   ========================================================================= */
.hbr-head {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1.5px solid var(--line);
	transition: transform .3s ease;
}
.hbr-head--hidden { transform: translateY(-100%); }
.hbr-head__inner {
	max-width: var(--maxw); margin-inline: auto;
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--space-4); padding: 10px clamp(16px,4vw,32px); min-height: var(--head-h);
}
.hbr-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.hbr-mark__icon { width: 30px; height: 30px; color: var(--accent); flex: none; }
.hbr-mark__name { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.hbr-nav { display: flex; align-items: center; gap: var(--space-3); }

/* Language dropdown */
.hbr-lang { position: relative; }
.hbr-lang__btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: none; border: 1.5px solid var(--line); color: var(--text);
	border-radius: var(--radius-sm); padding: 8px 12px; font-size: .92rem;
	cursor: pointer; min-height: 40px;
}
.hbr-lang__btn:hover { border-color: var(--accent); }
.hbr-lang__pop {
	position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
	background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
	padding: 6px; box-shadow: 0 12px 30px -14px rgba(50,31,37,.22);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.hbr-lang.is-open .hbr-lang__pop { opacity: 1; visibility: visible; transform: none; }
.hbr-lang__list, .hbr-drawer__list { list-style: none; margin: 0; padding: 0; }
.hbr-lang__list a, .hbr-drawer__list a {
	display: flex; align-items: center; gap: 8px; padding: 8px 10px;
	border-radius: 6px; text-decoration: none; color: var(--text); font-size: .95rem;
}
.hbr-lang__list a:hover { background: var(--bg); }
.hbr-lang__list img, .hbr-drawer__list img { width: 18px; height: auto; border-radius: 2px; }

/* Theme toggle */
.hbr-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border: 1.5px solid var(--line); background: none;
	border-radius: var(--radius-sm); color: var(--text); cursor: pointer;
}
.hbr-toggle:hover { border-color: var(--accent); }
.hbr-toggle svg { transition: transform .3s ease; }
.hbr-toggle:hover svg { transform: rotate(18deg); }
.hbr-toggle__moon { display: none; }
[data-theme="dark"] .hbr-toggle__sun { display: none; }
[data-theme="dark"] .hbr-toggle__moon { display: block; }

/* Burger */
.hbr-burger {
	display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
	border: 1.5px solid var(--line); background: none; border-radius: var(--radius-sm);
	cursor: pointer; align-items: center; justify-content: center;
}
.hbr-burger span { width: 18px; height: 2px; background: var(--text); transition: transform .25s ease, opacity .2s ease; }
.hbr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hbr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hbr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.hbr-drawer {
	position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px); z-index: 60;
	background: var(--surface); border-left: 1.5px solid var(--line);
	box-shadow: -20px 0 40px -24px rgba(50,31,37,.35);
	padding: calc(var(--head-h) + 18px) 22px 22px;
	visibility: hidden; transform: translateX(100%);
	transition: transform .28s ease, visibility .28s;
}
.hbr-drawer[hidden] { display: block; }
.hbr-drawer.is-open { visibility: visible; transform: none; }
.hbr-drawer__label { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--muted); margin: 0 0 10px; }
.hbr-drawer__list a { padding: 10px 8px; font-size: 1rem; }

/* =========================================================================
   Main / reading column
   ========================================================================= */
.hbr-main { display: block; }
.hbr-entry {
	max-width: var(--maxw); margin-inline: auto;
	padding: var(--space-6) clamp(16px,4vw,32px) var(--space-7);
}
/* zero-specificity readable column; component rules below override it */
.hbr-entry > :where(*) { max-width: 44rem; margin-inline: auto; }
.hbr-entry > .hbr-gate { max-width: 52rem; }
.hbr-entry > .hbr-figure { max-width: 46rem; }

.hbr-entry h1, .hbr-entry h2, #hbr-read { scroll-margin-top: calc(var(--head-h) + 18px); }

.hbr-entry h1 {
	font-family: var(--f-head); font-weight: 800; line-height: 1.08;
	font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -.02em;
	margin-block: var(--space-2) var(--space-5);
	color: var(--accent);
	background: var(--grad-text);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
}
.hbr-entry h2 {
	font-family: var(--f-head); font-weight: 600; color: var(--accent);
	font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.2;
	margin-block: var(--space-7) var(--space-4);
	padding-top: var(--space-5); border-top: 1.5px solid var(--rule);
}
.hbr-entry p { margin-block: var(--space-4); }
.hbr-entry p:first-of-type { font-size: 1.12rem; }
.hbr-entry a:not([class]) {
	color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
	text-decoration-thickness: 1px; text-decoration-color: var(--accent2);
	background-image: none;
}
.hbr-entry a:not([class]):hover { text-decoration-color: var(--accent); }

/* Gutenberg lists */
.hbr-entry .wp-block-list { padding-left: 1.35em; margin-block: var(--space-4); }
.hbr-entry ul.wp-block-list { list-style: disc; }
.hbr-entry ol.wp-block-list { list-style: decimal; }
.hbr-entry .wp-block-list li { margin-block: var(--space-2); padding-left: .2em; }
.hbr-entry .wp-block-list li::marker { color: var(--accent); }

/* Quote / pull-quote */
.hbr-entry .wp-block-quote {
	position: relative; border-left: 3px solid var(--accent);
	margin-block: var(--space-6); padding: var(--space-2) 0 var(--space-2) var(--space-5);
	font-family: var(--f-head); font-style: normal;
}
.hbr-entry .wp-block-quote p { font-size: 1.2rem; font-weight: 500; line-height: 1.45; color: var(--text); margin: 0; }

/* =========================================================================
   Age-gate (Bank D-6 Boarding Pass)
   ========================================================================= */
.hbr-gate { margin-block: var(--space-3) var(--space-7); }
.hbr-gate__ticket {
	position: relative; display: grid; grid-template-columns: 1fr 150px;
	background: var(--surface); border: 1.5px solid var(--accent);
	border-radius: var(--radius); overflow: clip;
}
.hbr-gate__main { padding: clamp(24px, 5vw, 44px); }
.hbr-gate__kicker {
	text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
	color: var(--accent); margin: 0 0 10px; font-weight: 600;
}
.hbr-gate__q {
	font-family: var(--f-head); font-weight: 600; line-height: 1.25;
	font-size: clamp(1.3rem, 3.6vw, 1.9rem); margin: 0 0 var(--space-5); color: var(--text);
}
.hbr-gate__btn {
	display: inline-block; background: var(--accent-btn);
	color: var(--accent-btn-text) !important; background-image: none;
	padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 600;
	text-decoration: none; min-height: 48px; line-height: 1.35;
	transition: transform .18s ease, filter .18s ease;
}
.hbr-gate__btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.hbr-gate__link { display: inline-block; margin-top: 14px; margin-left: 4px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.hbr-gate__link:hover { color: var(--accent); }

.hbr-gate__perf { display: none; }
.hbr-gate__stub {
	position: relative; display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 10px; text-align: center;
	padding: 24px 18px; background: var(--grad); border-left: 2px dashed var(--accent);
}
.hbr-gate__stub::before, .hbr-gate__stub::after {
	content: ""; position: absolute; left: -9px; width: 16px; height: 16px;
	border-radius: 50%; background: var(--bg);
}
.hbr-gate__stub::before { top: -9px; }
.hbr-gate__stub::after { bottom: -9px; }
.hbr-gate__stamp {
	font-family: var(--f-head); font-weight: 800; font-size: 1.6rem; color: var(--accent);
	border: 2px solid var(--accent); border-radius: 8px; padding: 6px 12px;
	transform: rotate(-6deg); background: var(--surface);
}
.hbr-gate__stubtext { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.35; }

/* =========================================================================
   Illustration (Bank H-11 waveform · line-art) — colours via variables only
   ========================================================================= */
.hbr-figure { margin-block: var(--space-6); }
.hbr-illus {
	width: 100%; height: auto; border: 1.5px solid var(--line);
	border-radius: var(--radius); background: var(--surface);
}
.hbr-illus__bg { fill: var(--illus-bg); }
.hbr-illus__base { stroke: var(--accent2); stroke-width: 2; stroke-linecap: round; }
.hbr-illus__bar { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.hbr-illus__bar--on { fill: var(--accent); stroke: var(--accent); }
.hbr-illus__dot { fill: var(--accent); }

/* =========================================================================
   Comparison (Bank E3-5)
   ========================================================================= */
.hbr-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-block: var(--space-5); }
.hbr-compare__card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: var(--space-5); background: var(--surface); }
.hbr-compare__card--here { border-color: var(--accent); }
.hbr-compare__title { font-family: var(--f-head); font-size: 1rem; font-weight: 600; margin: 0 0 var(--space-3); color: var(--muted); }
.hbr-compare__card--here .hbr-compare__title { color: var(--accent); }
.hbr-compare__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.hbr-compare__list li { font-size: .95rem; line-height: 1.5; }
.hbr-compare__axis { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 2px; }

/* =========================================================================
   FAQ accordion (F-6 · native details/summary)
   ========================================================================= */
.hbr-faq { margin-block: var(--space-4); }
.hbr-faq__item { border-bottom: 1.5px solid var(--line); }
.hbr-faq__q {
	cursor: pointer; list-style: none; padding: var(--space-4) 0;
	font-family: var(--f-head); font-weight: 500; font-size: 1.05rem;
	display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text);
}
.hbr-faq__q::-webkit-details-marker { display: none; }
.hbr-faq__q::after {
	content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
	border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
	transform: rotate(45deg); transition: transform .22s ease;
}
.hbr-faq__item[open] .hbr-faq__q::after { transform: rotate(-135deg); }
.hbr-faq__a { padding: 0 0 var(--space-4); }
.hbr-faq__a p { margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
	.hbr-faq__item[open] .hbr-faq__a { animation: hbr-fade .25s ease; }
}
@keyframes hbr-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   Reveal on scroll (added at runtime by JS — never in the saved content)
   ========================================================================= */
.hbr-js .hbr-entry > .hbr-reveal { opacity: 0; transform: translateY(12px); }
.hbr-js .hbr-entry > .hbr-reveal.is-in {
	opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease;
}

/* =========================================================================
   Cookie banner (Step 4)
   ========================================================================= */
.hbr-cookie {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
	background: var(--surface); border-top: 1.5px solid var(--line);
	padding: 14px clamp(16px,4vw,32px); display: flex; gap: 16px;
	align-items: center; justify-content: center; flex-wrap: wrap;
	transform: translateY(110%); transition: transform .3s ease;
}
.hbr-cookie[hidden] { display: none; }
.hbr-cookie.is-in { transform: none; }
.hbr-cookie__text { margin: 0; font-size: .9rem; color: var(--muted); max-width: 68ch; }
.hbr-cookie__text a { color: var(--accent); }
.hbr-cookie__btn {
	background: var(--accent-btn); color: var(--accent-btn-text); border: none;
	border-radius: var(--radius-sm); padding: 10px 22px; font-weight: 600; cursor: pointer; min-height: 44px;
}
.hbr-cookie__btn:hover { filter: brightness(1.06); }

/* =========================================================================
   Footer
   ========================================================================= */
.hbr-foot { border-top: 1.5px solid var(--line); margin-top: var(--space-8); }
.hbr-foot__inner {
	max-width: var(--maxw); margin-inline: auto;
	padding: var(--space-5) clamp(16px,4vw,32px);
	display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
}
.hbr-foot__copy { margin: 0; color: var(--muted); font-size: .9rem; }
.hbr-foot__menu { list-style: none; display: flex; gap: var(--space-4); margin: 0; padding: 0; flex-wrap: wrap; }
.hbr-foot__menu a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.hbr-foot__menu a:hover { color: var(--accent); }

/* =========================================================================
   index.php fallback + 404
   ========================================================================= */
.hbr-plain { max-width: 640px; margin: clamp(48px,10vw,110px) auto; text-align: center; padding-inline: clamp(16px,4vw,32px); }
.hbr-plain__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--accent); margin: 0 0 12px; }
.hbr-plain__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.5rem,4vw,2.2rem); margin: 0 0 12px; }
.hbr-plain__text { color: var(--muted); margin: 0 0 24px; }
.hbr-plain__btn {
	display: inline-block; background: var(--accent-btn); color: var(--accent-btn-text);
	text-decoration: none; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; min-height: 44px;
}
.hbr-plain__btn:hover { filter: brightness(1.06); }
.hbr-404__big { font-family: var(--f-head); font-weight: 800; font-size: clamp(4rem,18vw,9rem); line-height: 1; color: var(--accent2); margin: 0 0 8px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 768px) {
	.hbr-lang { display: none; }
	.hbr-burger { display: flex; }
}
@media (max-width: 560px) {
	.hbr-compare { grid-template-columns: 1fr; }
	.hbr-gate__ticket { grid-template-columns: 1fr; }
	.hbr-gate__stub { border-left: none; border-top: 2px dashed var(--accent); flex-direction: row; padding: 18px; }
	.hbr-gate__stub::before { left: -9px; top: 50%; margin-top: -8px; }
	.hbr-gate__stub::after { left: auto; right: -9px; top: 50%; bottom: auto; margin-top: -8px; }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important; animation-iteration-count: 1 !important;
		transition-duration: .001ms !important; scroll-behavior: auto !important;
	}
}
