/* HypiStyle — base layer: tokens, reset, typography, header, footer.
 * Plain CSS on purpose: never passed through Tailwind's utility generator,
 * so nothing here can be purged. Tokens are self-defined, not borrowed from
 * Tailwind's @theme output, so the stylesheet works in draft and live alike.
 */

:root {
	/* Surfaces */
	--hs-bone: #F7F4EE;
	--hs-bone-deep: #EFEAE0;
	--hs-surface: #FFFFFF;

	/* Ink */
	--hs-ink: #10221E;
	--hs-ink-soft: #33474170;
	--hs-body: #3B4B47;
	/* Darkened from #75857F: the old value was 3.9:1 on white and failed
	 * WCAG AA for small text. */
	--hs-muted: #5F6E68;

	/* Brand */
	--hs-primary: #0E4F42;
	--hs-primary-dark: #08362D;
	--hs-primary-tint: #E7F0ED;
	--hs-gold: #C0A15C;
	/* Small-caps gold text on light surfaces: #C0A15C is only 2.5:1 on white.
	 * Use this darker tone for type, keep --hs-gold for rules, badges and
	 * anything sitting on the dark emerald. */
	--hs-gold-ink: #8A6D2F;
	--hs-gold-soft: #EADFC6;
	--hs-sale: #A8452F;

	/* Lines */
	--hs-line: #E3DCCF;
	--hs-line-soft: #F0EBE1;

	/* Type */
	--hs-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
	--hs-body-font: "Karla", "Helvetica Neue", Arial, sans-serif;

	/* Rhythm */
	--hs-gutter: clamp(1.15rem, 4vw, 3rem);
	--hs-max: 1360px;
	--hs-radius: 2px;
	--hs-shadow: 0 18px 44px -28px rgba(16, 34, 30, .35);
	--hs-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.hs {
	margin: 0;
	background: var(--hs-bone);
	color: var(--hs-body);
	font-family: var(--hs-body-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden;
}

body.hs :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--hs-display);
	color: var(--hs-ink);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -.005em;
	margin: 0 0 .5em;
}

body.hs :where(p, ul, ol) { margin: 0 0 1.1em; }
body.hs :where(ul, ol) { padding-left: 1.15em; }
body.hs :where(a) { color: var(--hs-primary); text-decoration: none; transition: color .25s var(--hs-ease); }
body.hs :where(a:hover) { color: var(--hs-gold); }
body.hs :where(img) { max-width: 100%; height: auto; display: block; }
body.hs :where(button, input, select, textarea) { font: inherit; color: inherit; }
body.hs :where(*, *::before, *::after) { box-sizing: border-box; }

body.hs ::selection { background: var(--hs-primary); color: #fff; }

body.hs :where(input:focus, select:focus, textarea:focus) {
	outline: none;
	border-color: var(--hs-primary);
	box-shadow: 0 0 0 3px var(--hs-primary-tint);
}

/* ---------- Shared bits ---------- */

.hs-wrap {
	width: 100%;
	max-width: var(--hs-max);
	margin-inline: auto;
	padding-inline: var(--hs-gutter);
}

.hs-eyebrow {
	font-family: var(--hs-body-font);
	font-size: .69rem;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--hs-gold-ink);
	margin: 0 0 .85rem;
}

/* On the dark emerald grounds the lighter gold is the readable one. */
.hs-section--ink .hs-eyebrow,
.hs-footer .hs-eyebrow { color: var(--hs-gold); }

.hs-rule {
	width: 46px;
	height: 1px;
	background: var(--hs-gold);
	border: 0;
	margin: 0 0 1.4rem;
}

.hs-section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.hs-section--bone { background: var(--hs-bone); }
.hs-section--paper { background: var(--hs-surface); }
.hs-section--ink { background: var(--hs-primary-dark); color: #E9EFEC; }
.hs-section--ink :where(h1, h2, h3, h4) { color: #FBF9F4; }

.hs-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
	flex-wrap: wrap;
}
.hs-head__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0; }
.hs-head__link {
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--hs-ink);
	border-bottom: 1px solid var(--hs-gold);
	padding-bottom: 3px;
	white-space: nowrap;
}
.hs-head__link:hover { color: var(--hs-gold); }

.hs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	padding: .95rem 2rem;
	border: 1px solid var(--hs-primary);
	background: var(--hs-primary);
	color: #fff !important;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	border-radius: var(--hs-radius);
	cursor: pointer;
	transition: background .3s var(--hs-ease), border-color .3s var(--hs-ease), color .3s var(--hs-ease);
}
.hs-btn:hover { background: var(--hs-primary-dark); border-color: var(--hs-primary-dark); color: #fff !important; }

.hs-btn--ghost { background: transparent; color: var(--hs-ink) !important; border-color: var(--hs-ink); }
.hs-btn--ghost:hover { background: var(--hs-ink); color: #fff !important; }

.hs-btn--gold { background: var(--hs-gold); border-color: var(--hs-gold); color: #16241F !important; }
.hs-btn--gold:hover { background: #A98A48; border-color: #A98A48; color: #16241F !important; }

/* ---------- Announcement bar ---------- */

.hs-announce {
	background: var(--hs-primary-dark);
	color: #E6EFEB;
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-align: center;
	padding: .6rem var(--hs-gutter);
}
.hs-announce b { color: var(--hs-gold); font-weight: 700; }

/* ---------- Header ---------- */

.hs-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, .93);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--hs-line);
}

.hs-header__bar {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: 74px;
}

.hs-brand {
	display: inline-flex;
	flex-direction: column;
	line-height: 1;
	margin-right: auto;
}
.hs-brand__name {
	font-family: var(--hs-display);
	font-size: 1.55rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--hs-ink);
}
.hs-brand__tag {
	font-size: .55rem;
	letter-spacing: .34em;
	text-transform: uppercase;
	color: var(--hs-gold);
	margin-top: 6px;
}
.hs-brand:hover .hs-brand__name { color: var(--hs-primary); }

/* Nav */
.hs-nav { display: none; }
.hs-nav ul { list-style: none; margin: 0; padding: 0; }
.hs-nav > ul { display: flex; align-items: center; gap: 1.75rem; }
.hs-nav > ul > li { position: static; }
.hs-nav > ul > li > a {
	display: inline-block;
	padding: 1.6rem 0;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--hs-ink);
	position: relative;
}
.hs-nav > ul > li > a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%; bottom: 1.1rem;
	height: 1px;
	background: var(--hs-gold);
	transition: right .35s var(--hs-ease);
}
.hs-nav > ul > li:hover > a::after,
.hs-nav > ul > li.current-menu-item > a::after { right: 0; }

/* Mega panel */
.hs-mega {
	position: absolute;
	left: 0; right: 0; top: 100%;
	background: var(--hs-surface);
	border-top: 1px solid var(--hs-line);
	border-bottom: 1px solid var(--hs-line);
	box-shadow: var(--hs-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .28s var(--hs-ease), transform .28s var(--hs-ease), visibility .28s;
}
.hs-nav > ul > li:hover .hs-mega,
.hs-nav > ul > li:focus-within .hs-mega { opacity: 1; visibility: visible; transform: translateY(0); }

.hs-mega__inner {
	max-width: var(--hs-max);
	margin-inline: auto;
	padding: 2.6rem var(--hs-gutter) 2.9rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1.1rem 2rem;
}
.hs-mega a {
	display: block;
	padding: .34rem 0;
	font-size: .88rem;
	color: var(--hs-body);
}
.hs-mega a:hover { color: var(--hs-primary); transform: translateX(3px); }
.hs-mega__col > a:first-child {
	font-family: var(--hs-display);
	font-size: 1rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hs-ink);
	padding-bottom: .7rem;
	margin-bottom: .5rem;
	border-bottom: 1px solid var(--hs-line-soft);
}

/* Header actions */
.hs-actions { display: flex; align-items: center; gap: .35rem; }
.hs-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	color: var(--hs-ink);
	background: none;
	border: 0;
	position: relative;
	cursor: pointer;
	border-radius: 50%;
	transition: background .25s var(--hs-ease), color .25s var(--hs-ease);
}
.hs-icon:hover { background: var(--hs-primary-tint); color: var(--hs-primary); }
.hs-icon svg { width: 20px; height: 20px; stroke-width: 1.4; }
.hs-icon__count {
	position: absolute;
	top: 4px; right: 2px;
	min-width: 17px; height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--hs-gold);
	color: #16241F;
	font-size: .62rem;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}
.hs-burger { display: inline-flex; }

/* Search drawer */
.hs-search {
	border-top: 1px solid var(--hs-line);
	background: var(--hs-surface);
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s var(--hs-ease);
}
.hs-search.is-open { max-height: 140px; }
.hs-search form {
	max-width: 640px;
	margin-inline: auto;
	padding: 1.4rem var(--hs-gutter);
	display: flex;
	gap: .6rem;
}
.hs-search input[type="search"] {
	flex: 1;
	border: 1px solid var(--hs-line);
	background: var(--hs-bone);
	padding: .85rem 1rem;
	border-radius: var(--hs-radius);
}

/* Mobile drawer */
.hs-drawer {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(88vw, 380px);
	background: var(--hs-surface);
	z-index: 1000;
	transform: translateX(-102%);
	transition: transform .38s var(--hs-ease);
	overflow-y: auto;
	padding: 1.25rem 1.5rem 3rem;
}
.hs-drawer.is-open { transform: translateX(0); }
.hs-drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.hs-drawer ul { list-style: none; margin: 0; padding: 0; }
.hs-drawer > ul > li { border-bottom: 1px solid var(--hs-line-soft); }
.hs-drawer > ul > li > a {
	display: block;
	padding: .95rem 0;
	font-family: var(--hs-display);
	font-size: 1.02rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hs-ink);
}
.hs-drawer ul ul { padding: 0 0 .9rem .2rem; }
.hs-drawer ul ul a { display: block; padding: .3rem 0; font-size: .87rem; color: var(--hs-muted); }
.hs-scrim {
	position: fixed;
	inset: 0;
	background: rgba(16, 34, 30, .45);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s var(--hs-ease), visibility .35s;
}
.hs-scrim.is-open { opacity: 1; visibility: visible; }

@media (min-width: 1080px) {
	.hs-nav { display: block; }
	.hs-burger { display: none; }
}

/* Phones: the brand lockup + three action icons + burger overflow a 360px
 * header at desktop sizing, so tighten the whole bar. */
@media (max-width: 600px) {
	.hs-announce {
		font-size: .6rem;
		letter-spacing: .06em;
		padding-block: .5rem;
		line-height: 1.5;
	}
	.hs-header__bar { min-height: 62px; gap: .3rem; }
	.hs-brand__name { font-size: 1.12rem; letter-spacing: .11em; }
	.hs-brand__tag { display: none; }
	.hs-icon { width: 38px; height: 38px; }
	.hs-icon svg { width: 18px; height: 18px; }
	.hs-icon__count { top: 2px; right: 0; }
}

/* ---------- Footer ---------- */

.hs-footer {
	margin-top: auto;
	background: var(--hs-primary-dark);
	color: #C7D5D0;
	font-size: .9rem;
}
.hs-footer a { color: #C7D5D0; }
.hs-footer a:hover { color: var(--hs-gold); }

.hs-footer__news {
	border-bottom: 1px solid rgba(255, 255, 255, .11);
	padding-block: clamp(2.5rem, 5vw, 4rem);
}
.hs-footer__news-grid {
	display: grid;
	gap: 1.75rem 3rem;
	grid-template-columns: 1fr;
	align-items: center;
}
.hs-footer__news h2 { color: #FBF9F4; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .45rem; }
.hs-footer__news p { margin: 0; color: #A9BCB6; }
.hs-news-form { display: flex; gap: .55rem; flex-wrap: wrap; }
.hs-news-form input[type="email"] {
	flex: 1 1 220px;
	border: 1px solid rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .06);
	color: #fff;
	padding: .95rem 1.1rem;
	border-radius: var(--hs-radius);
}
.hs-news-form input::placeholder { color: #B3C6C0; }

.hs-footer__cols {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: 1fr;
	padding-block: clamp(2.5rem, 5vw, 4rem);
}
.hs-footer__cols h3 {
	color: #FBF9F4;
	font-size: .76rem;
	font-family: var(--hs-body-font);
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	margin: 0 0 1.1rem;
}
.hs-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.hs-footer__cols li { margin-bottom: .55rem; }

.hs-social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.hs-social a {
	width: 38px; height: 38px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	transition: background .25s var(--hs-ease), border-color .25s var(--hs-ease);
}
.hs-social a:hover { background: var(--hs-gold); border-color: var(--hs-gold); color: #16241F; }
.hs-social svg { width: 17px; height: 17px; }

.hs-footer__base {
	border-top: 1px solid rgba(255, 255, 255, .11);
	padding-block: 1.4rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: .8rem;
	color: #A8BBB5;
}

@media (min-width: 720px) {
	.hs-footer__news-grid { grid-template-columns: 1.1fr 1fr; }
	.hs-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
	.hs-footer__cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* ---------- Generic page shell ---------- */

.hs-page { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hs-page__title { font-size: clamp(2rem, 5vw, 3.2rem); }
.hs-prose { max-width: 74ch; }
.hs-prose h2 { margin-top: 2.2rem; }

.hs-crumbs {
	font-size: .76rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hs-muted);
	margin-bottom: 1rem;
}
.hs-crumbs a { color: var(--hs-muted); }
.hs-crumbs a:hover { color: var(--hs-primary); }

/* Reveal-on-scroll */
.hs-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--hs-ease), transform .7s var(--hs-ease); }
.hs-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.hs-reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}
