/* HEIRPK — base, layout and homepage. */

:root {
	--heir-ink: #0e0e0e;
	--heir-ink-2: #2a2826;
	--heir-ivory: #f7f4ee;
	--heir-paper: #fbf9f5;
	--heir-stone: #e4ddd1;
	--heir-line: #dcd5ca;
	--heir-muted: #5e5850;
	--heir-muted-dark: #cfc7ba;
	--heir-accent: #6b5232;
	--heir-sale: #8a2d1f;
	--heir-ok: #2f5d3a;
	--heir-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--heir-sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	--heir-max: 1360px;
	--heir-gutter: 24px;
	--heir-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--heir-ivory);
	color: var(--heir-ink);
	font-family: var(--heir-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--heir-ink); text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: var(--heir-accent); }

:focus-visible { outline: 2px solid var(--heir-accent); outline-offset: 2px; }

button, input, select, textarea { font: inherit; color: inherit; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}

.heir-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--heir-ink); color: var(--heir-ivory); padding: 12px 16px; }
.heir-skip:focus { left: 8px; color: var(--heir-ivory); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Layout ---------------------------------------------------------------- */

.heir-container { width: 100%; max-width: var(--heir-max); margin-inline: auto; padding-inline: var(--heir-gutter); }
.heir-main { min-height: 50vh; }
.heir-section { padding-block: 72px 24px; }
.heir-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.heir-section__intro { margin-bottom: 32px; }
.heir-center { text-align: center; }

.heir-grid { display: grid; gap: 16px; }
.heir-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.heir-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Type ------------------------------------------------------------------- */

.heir-display { margin: 0; font-family: var(--heir-serif); font-weight: 500; font-size: clamp(48px, 6vw, 80px); line-height: .98; letter-spacing: -.01em; }
.heir-display em { font-style: italic; }
.heir-display--md { font-size: clamp(40px, 5vw, 64px); }
.heir-h1 { margin: 0; font-family: var(--heir-serif); font-weight: 500; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; }
.heir-h2 { margin: 0; font-family: var(--heir-serif); font-weight: 500; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.heir-h3 { margin: 0; font-family: var(--heir-serif); font-weight: 500; font-size: 26px; line-height: 1.2; }
.heir-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--heir-accent); margin-bottom: 8px; }
.heir-lead { margin: 0; font-size: 17px; line-height: 1.65; color: var(--heir-muted); max-width: 46ch; }
.heir-meta { font-size: 13px; color: var(--heir-muted); letter-spacing: .04em; }
.heir-textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }

/* Buttons ---------------------------------------------------------------- */

.heir-btn,
.heir-btn:visited {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 32px;
	background: var(--heir-ink); color: var(--heir-ivory);
	border: 1px solid var(--heir-ink); border-radius: 0;
	font-family: var(--heir-sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.heir-btn:hover { background: var(--heir-ink-2); color: var(--heir-ivory); }
.heir-btn--ghost, .heir-btn--ghost:visited { background: transparent; color: var(--heir-ink); }
.heir-btn--ghost:hover { background: var(--heir-ink); color: var(--heir-ivory); }
.heir-btn--light, .heir-btn--light:visited { background: var(--heir-ivory); color: var(--heir-ink); border-color: var(--heir-ivory); }
.heir-btn--light:hover { background: #fff; color: var(--heir-ink); }
.heir-btn[disabled] { opacity: .5; cursor: not-allowed; }
.heir-btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.heir-iconbtn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-decoration: none;
}
.heir-iconbtn:hover { color: inherit; opacity: .75; }
.heir-count {
	position: absolute; top: 5px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
	background: var(--heir-ivory); color: var(--heir-ink); font-size: 10px; line-height: 16px; text-align: center;
}
.heir-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid #8f887d; color: var(--heir-muted-dark); font-size: 10px; letter-spacing: .1em; vertical-align: middle; }

/* Images ----------------------------------------------------------------- */

.heir-placeholder { display: block; width: 100%; height: 100%; min-height: 100%; background: var(--heir-stone); }
.heir-zoom { overflow: hidden; }
.heir-zoom img { transition: transform .7s var(--heir-ease); }
.heir-zoom:hover img { transform: scale(1.03); }

/* Announcement + header -------------------------------------------------- */

.heir-announce {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px;
	padding: 10px 16px; background: var(--heir-ink); color: #ede7dc;
	font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-align: center;
}
.heir-announce__dot { color: #8f887d; }

.heir-header { position: sticky; top: 0; z-index: 50; background: var(--heir-ink); color: var(--heir-ivory); border-top: 1px solid #262422; }
.admin-bar .heir-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .heir-header { top: 0; } }
.heir-header a, .heir-header a:visited { color: var(--heir-ivory); }
.heir-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 84px; }
.heir-header__logo img { width: 84px; height: 84px; object-fit: contain; }
.heir-header__tools { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.heir-header__burger { display: none; }

.heir-nav__list { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.heir-nav__list > li { position: relative; }
.heir-nav__list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.heir-nav__list a:hover { color: var(--heir-muted-dark); }
.heir-nav__list .sub-menu {
	position: absolute; left: -20px; top: 100%; min-width: 240px; margin: 0; padding: 12px 20px; list-style: none;
	background: var(--heir-ink); border: 1px solid #262422; text-transform: none; letter-spacing: .04em; font-size: 14px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.heir-nav__list li:hover > .sub-menu, .heir-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.heir-search { background: var(--heir-ink); border-top: 1px solid #262422; padding-block: 16px; }
.heir-search__form { display: flex; gap: 12px; }
.heir-search__form input[type="search"] { flex: 1; min-height: 52px; padding: 0 16px; background: transparent; border: 1px solid #5e5850; color: var(--heir-ivory); }
.heir-search__form .heir-btn { background: var(--heir-ivory); color: var(--heir-ink); }

.heir-drawer { position: fixed; inset: 0; z-index: 100; }
.heir-drawer__backdrop { position: absolute; inset: 0; background: rgba(14, 14, 14, .5); }
.heir-drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(360px, 88vw); background: var(--heir-ivory); padding: 16px 24px 32px; overflow-y: auto; }
.heir-drawer__close { margin-left: -12px; }
.heir-drawer__list { list-style: none; margin: 16px 0; padding: 0; }
.heir-drawer__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--heir-line); font-family: var(--heir-serif); font-size: 24px; text-decoration: none; }
.heir-drawer__list .sub-menu { list-style: none; padding-left: 16px; }
.heir-drawer__list .sub-menu a { font-family: var(--heir-sans); font-size: 15px; }
.heir-drawer__links { display: flex; flex-direction: column; gap: 4px; }
.heir-drawer__links a { padding: 10px 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
body.heir-lock { overflow: hidden; }

@media (max-width: 900px) {
	.heir-nav { display: none; }
	.heir-header__burger { display: inline-flex; justify-self: start; margin-left: -12px; }
	.heir-header__inner { min-height: 68px; }
	.heir-header__logo img { width: 64px; height: 64px; }
	.heir-hide-sm { display: none; }
}

/* Hero ------------------------------------------------------------------- */

.heir-hero__inner { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 24px; }
.heir-hero__media { flex: 999 1 560px; min-width: 0; height: clamp(420px, 56vw, 680px); background: var(--heir-stone); }
.heir-hero__media img, .heir-hero__media .heir-placeholder { width: 100%; height: 100%; object-fit: cover; }
.heir-hero__copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 24px 16px 24px 8px; }

/* Trust ------------------------------------------------------------------ */

.heir-trust { padding-block: 40px 0; }
.heir-trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--heir-line); border: 1px solid var(--heir-line); }
.heir-trust__item { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--heir-ivory); }
.heir-trust__item strong { display: block; font-weight: 500; font-size: 14px; }
.heir-trust__item span { display: block; font-size: 13px; color: var(--heir-muted); }

/* Category tiles --------------------------------------------------------- */

.heir-tile { display: block; color: var(--heir-ink); text-decoration: none; }
.heir-tile__media { display: block; aspect-ratio: 3 / 4; background: var(--heir-stone); overflow: hidden; }
.heir-tile__media img, .heir-tile__media .heir-placeholder { width: 100%; height: 100%; object-fit: cover; }
.heir-tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; }
.heir-tile__name { font-family: var(--heir-serif); font-size: 26px; font-weight: 500; }
.heir-tile__cta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--heir-muted); white-space: nowrap; }

.heir-chips, .heir-inline-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.heir-inline-links { gap: 4px 32px; }
.heir-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #cfc7ba; font-size: 13px; letter-spacing: .06em; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.heir-chip:hover, .heir-chip.is-active { border-color: var(--heir-ink); background: var(--heir-ink); color: var(--heir-ivory); }

/* Tabs ------------------------------------------------------------------- */

.heir-tabs { display: flex; flex-wrap: wrap; gap: 24px; }
.heir-tab { min-height: 44px; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid transparent; color: #6e685f; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.heir-tab[aria-selected="true"] { color: var(--heir-ink); border-bottom-color: var(--heir-ink); }
.heir-tabpanel .heir-center { margin-top: 40px; }

/* Seasonal banners ------------------------------------------------------- */

.heir-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.heir-banner { position: relative; display: block; height: clamp(420px, 44vw, 600px); text-decoration: none; background: var(--heir-stone); }
.heir-banner--dark { background: #3a3632; }
.heir-banner__img, .heir-banner .heir-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heir-banner--dark .heir-placeholder { background: #3a3632; }
.heir-banner__copy { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; padding: 40px; }
.heir-banner--dark .heir-banner__copy { background: rgba(14, 14, 14, .58); color: var(--heir-ivory); }
.heir-banner--light .heir-banner__copy { background: rgba(247, 244, 238, .86); color: var(--heir-ink); }
.heir-banner--dark .heir-eyebrow { color: var(--heir-muted-dark); }
.heir-banner__title { font-family: var(--heir-serif); font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.heir-banner__cta { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; }
.heir-banner:hover { color: inherit; }

/* Split dark bands (men, promo) ------------------------------------------ */

.heir-men, .heir-promo { margin-top: 96px; background: var(--heir-ink); color: var(--heir-ivory); }
.heir-split { display: flex; flex-wrap: wrap; }
.heir-split__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 88px 40px 88px 0; }
.heir-split__media { flex: 1 1 420px; min-width: 0; min-height: 440px; background: var(--heir-ink-2); }
.heir-split__media img, .heir-split__media .heir-placeholder { width: 100%; height: 100%; object-fit: cover; background: var(--heir-ink-2); }
.heir-men .heir-eyebrow, .heir-promo .heir-eyebrow { color: #bfb6a8; }
.heir-men .heir-lead, .heir-promo .heir-lead { color: var(--heir-muted-dark); }
@media (max-width: 900px) { .heir-split__copy { padding: 56px 0; } .heir-split__media { min-height: 320px; margin-inline: calc(var(--heir-gutter) * -1); } }

/* Brands ----------------------------------------------------------------- */

.heir-brandwall { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--heir-line); border: 1px solid var(--heir-line); }
.heir-brandwall a { display: flex; align-items: center; justify-content: center; height: 132px; padding: 24px; background: var(--heir-ivory); text-decoration: none; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--heir-muted); transition: background-color .2s ease; }
.heir-brandwall a:hover { background: var(--heir-paper); color: var(--heir-ink); }
.heir-brandwall img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); }

/* Reviews ---------------------------------------------------------------- */

.heir-review { margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--heir-paper); border: 1px solid var(--heir-line); }
.heir-review__text { margin: 0; font-family: var(--heir-serif); font-size: 21px; line-height: 1.45; font-style: italic; }
.heir-review__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding-top: 16px; border-top: 1px solid var(--heir-line); font-size: 13px; color: var(--heir-muted); }
.heir-verified { display: inline-flex; align-items: center; gap: 6px; color: var(--heir-ok); }
.heir-stars { display: inline-flex; gap: 2px; color: #b8b0a4; }
.heir-star.is-on { color: var(--heir-ink); }
.heir-star.is-on svg { fill: currentColor; }

/* Instagram -------------------------------------------------------------- */

.heir-iggrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.heir-iggrid a, .heir-iggrid img { display: block; aspect-ratio: 1; width: 100%; object-fit: cover; }

/* Newsletter ------------------------------------------------------------- */

.heir-newsletter { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 24px; border-block: 1px solid var(--heir-ink); text-align: center; }
.heir-newsletter .heir-lead { margin-inline: auto; }

/* Forms ------------------------------------------------------------------ */

.heir-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.heir-field label, .heir-label { font-size: 13px; letter-spacing: .06em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; background: var(--heir-paper); border: 1px solid #cfc7ba; border-radius: 0; color: var(--heir-ink);
}
textarea { min-height: 140px; }
input:focus, select:focus, textarea:focus { border-color: var(--heir-ink); outline: none; box-shadow: 0 0 0 1px var(--heir-ink); }
::placeholder { color: #8a847b; }
.heir-searchform { display: flex; gap: 8px; max-width: 520px; margin: 24px auto; }

/* Pages & posts ---------------------------------------------------------- */

.heir-page { padding-block: 56px 96px; }
.heir-page__head { margin-bottom: 32px; }
.heir-page--narrow { max-width: 820px; }
.heir-page__media { margin: 0 0 32px; }
.heir-prose { font-size: 17px; line-height: 1.75; }
.heir-prose h2 { font-family: var(--heir-serif); font-weight: 500; font-size: 32px; line-height: 1.15; margin: 48px 0 12px; }
.heir-prose h3 { font-family: var(--heir-serif); font-weight: 500; font-size: 24px; margin: 32px 0 8px; }
.heir-prose a { text-decoration: underline; }
.heir-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.heir-prose th, .heir-prose td { padding: 10px 12px; border-bottom: 1px solid var(--heir-line); text-align: left; }
.heir-prose details { border-bottom: 1px solid var(--heir-line); padding: 16px 0; }
.heir-prose summary { cursor: pointer; font-weight: 500; }
.heir-postgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 24px; }
.heir-postcard__media { display: block; aspect-ratio: 3 / 4; margin-bottom: 12px; background: var(--heir-stone); overflow: hidden; }
.heir-postcard__media img { width: 100%; height: 100%; object-fit: cover; }
.heir-empty { padding: 48px 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--heir-line); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--heir-ink); color: var(--heir-ivory); border-color: var(--heir-ink); }

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

.heir-footer { background: var(--heir-ink); color: var(--heir-muted-dark); font-size: 14px; }
.heir-footer a, .heir-footer a:visited { color: var(--heir-muted-dark); text-decoration: none; }
.heir-footer a:hover { color: var(--heir-ivory); }
.heir-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px; padding-block: 72px 32px; }
.heir-footer__brand p { max-width: 260px; line-height: 1.7; }
.heir-footer__logo img { width: 96px; height: 96px; margin-left: -12px; }
.heir-footer__heading { margin: 0 0 12px; color: var(--heir-ivory); font-family: var(--heir-sans); font-weight: 400; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.heir-footer__list { margin: 0; padding: 0; list-style: none; }
.heir-footer__list a, .heir-footer__list span { display: inline-block; padding: 6px 0; }
.heir-social { display: flex; gap: 4px; margin: 8px 0 0 -12px; }
.heir-social a { color: var(--heir-ivory); }
.heir-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; border-top: 1px solid var(--heir-ink-2); font-size: 12px; color: #a39b8f; }
.heir-paylist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.heir-paylist li { padding: 6px 10px; border: 1px solid #3a3632; letter-spacing: .06em; }

/* Widgets ---------------------------------------------------------------- */

.heir-widget { margin-bottom: 32px; }
.heir-widget__title { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.heir-widget ul { list-style: none; margin: 0; padding: 0; }

/* Modal (quick view) ----------------------------------------------------- */

.heir-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; }
.heir-modal[hidden] { display: none; }
.heir-modal__backdrop { position: absolute; inset: 0; background: rgba(14, 14, 14, .55); }
.heir-modal__dialog { position: relative; width: min(980px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--heir-ivory); }
.heir-modal__close { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--heir-ivory); }
.heir-modal__body { min-height: 200px; }
.heir-modal__loading { padding: 80px; text-align: center; color: var(--heir-muted); }
