/* ==========================================================================
   Dhruvees theme
   ========================================================================== */

/* Fonts (self-hosted, SIL Open Font License) */
@font-face {
	font-family: "Libre Caslon Display";
	src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Libre Caslon Text";
	src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Libre Caslon Text";
	src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Playfair Display";
	src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Playfair Display";
	src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Playfair Display";
	src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* Tokens */
:root {
	--dh-black: #000000;
	--dh-charcoal: #212121;
	--dh-gold: #ffb14d;
	--dh-gold-pale: #ffc376;
	--dh-cocoa: #6c430f;
	--dh-white: #ffffff;
	--dh-grey: #a2a2a2;
	--dh-line: #3a3a3a;

	--dh-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
	--dh-caslon: "Libre Caslon Text", Georgia, "Times New Roman", serif;
	--dh-body: "Playfair Display", Georgia, "Times New Roman", serif;

	--dh-wrap: 1140px;
	--dh-gutter: clamp(20px, 4vw, 40px);
	--dh-section: clamp(64px, 9vw, 112px);
	--dh-radius: 15px;
	--dh-header-h: 84px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: var(--dh-header-h);
}

body {
	margin: 0;
	background: var(--dh-black);
	color: var(--dh-white);
	font-family: var(--dh-body);
	font-size: 1rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 400;
	line-height: 1.15;
}

p {
	margin: 0 0 1.1em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--dh-gold-pale);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--dh-white);
}

:focus-visible {
	outline: 2px solid var(--dh-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.dh-skip {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 1000;
	padding: 10px 18px;
	background: var(--dh-gold);
	color: var(--dh-cocoa);
	border-radius: 25px;
	text-decoration: none;
}

.dh-skip:focus {
	top: 12px;
}

/* Buttons */
.dh-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	border: 1px solid transparent;
	border-radius: 25px;
	font-family: var(--dh-body);
	font-size: 1rem;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dh-btn--gold {
	background: var(--dh-gold);
	border-color: var(--dh-gold);
	color: var(--dh-cocoa);
}

.dh-btn--gold:hover,
.dh-btn--gold:focus-visible {
	background: transparent;
	border-color: var(--dh-gold-pale);
	color: var(--dh-white);
}

.dh-btn--outline {
	background: transparent;
	border-color: var(--dh-white);
	color: var(--dh-gold-pale);
}

.dh-btn--outline:hover,
.dh-btn--outline:focus-visible {
	background: var(--dh-gold);
	border-color: var(--dh-gold);
	color: var(--dh-white);
}

.dh-icon {
	flex: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.dh-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--dh-black);
	transition: box-shadow 0.25s ease;
}

.admin-bar .dh-header {
	top: 32px;
}

.dh-header.is-scrolled {
	box-shadow: 0 1px 0 rgba(255, 177, 77, 0.35);
}

.dh-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: calc(var(--dh-wrap) + 2 * var(--dh-gutter));
	min-height: var(--dh-header-h);
	margin: 0 auto;
	padding: 6px var(--dh-gutter);
}

.dh-header__logo {
	flex: none;
	display: block;
}

.dh-header__logo img {
	width: clamp(120px, 14vw, 168px);
	height: auto;
}

.dh-header__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	margin-left: auto;
}

.dh-header__address {
	margin: 0;
	color: var(--dh-gold-pale);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.6;
	text-align: right;
}

.dh-header__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
}

/* ==========================================================================
   Story
   ========================================================================== */

.dh-story {
	position: relative;
	overflow: hidden;
	padding: var(--dh-section) var(--dh-gutter);
	background:
		radial-gradient(ellipse 55% 70% at 78% 40%, rgba(255, 195, 118, 0.07), transparent 70%),
		var(--dh-black);
}

.dh-story__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	align-items: center;
	gap: clamp(40px, 7vw, 96px);
	max-width: var(--dh-wrap);
	margin: 0 auto;
}

.dh-story__text {
	max-width: 36rem;
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.0625rem;
	line-height: 1.85;
}

.dh-story__title {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	margin-bottom: clamp(28px, 4vw, 40px);
	color: var(--dh-white);
	font-family: var(--dh-caslon);
	font-style: italic;
	font-size: clamp(1.25rem, 2.2vw, 1.625rem);
	line-height: 1.3;
}

.dh-story__name {
	font-family: var(--dh-display);
	font-style: normal;
	font-size: clamp(3.25rem, 8.5vw, 6.5rem);
	line-height: 1;
	letter-spacing: -0.01em;
}

.dh-story__lead {
	color: var(--dh-white);
	font-size: clamp(1.125rem, 1.6vw, 1.25rem);
	line-height: 1.75;
}

.dh-story__art {
	position: relative;
	justify-self: center;
	width: min(100%, 300px);
	margin: 0;
}

.dh-story__art img {
	position: relative;
	z-index: 1;
	width: 100%;
}

/* The North Star: one slow twinkle behind the star in the illustration */
.dh-story__glow {
	position: absolute;
	z-index: 0;
	left: 50%;
	top: 7.5%;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 195, 118, 0.55) 0%, rgba(255, 177, 77, 0.18) 35%, transparent 68%);
	transform: translate(-50%, -50%);
	animation: dh-twinkle 4.5s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes dh-twinkle {
	from {
		opacity: 0.45;
		transform: translate(-50%, -50%) scale(0.85);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.08);
	}
}

/* ==========================================================================
   Values
   ========================================================================== */

.dh-values {
	padding: var(--dh-section) var(--dh-gutter);
	background: var(--dh-charcoal);
	border-top: 1px solid var(--dh-gold);
}

.dh-values__inner {
	max-width: var(--dh-wrap);
	margin: 0 auto;
}

.dh-values__head {
	max-width: 44rem;
	margin: 0 auto clamp(40px, 6vw, 64px);
	text-align: center;
}

.dh-values__title {
	margin-bottom: 20px;
	font-family: var(--dh-display);
	font-size: clamp(2rem, 4vw, 2.5rem);
	color: var(--dh-white);
}

.dh-values__quote {
	margin: 0;
}

.dh-values__quote p {
	margin: 0 0 12px;
	font-family: var(--dh-caslon);
	font-style: italic;
	font-size: clamp(1.75rem, 4.2vw, 3rem);
	line-height: 1.2;
	color: var(--dh-white);
}

.dh-values__quote footer {
	font-family: var(--dh-display);
	font-size: 1rem;
	color: var(--dh-gold-pale);
}

.dh-values__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dh-value {
	display: flex;
	flex-direction: column;
	background: var(--dh-white);
	border-radius: var(--dh-radius) var(--dh-radius) 0 0;
	overflow: hidden;
	color: var(--dh-charcoal);
}

.dh-value__photo {
	width: 100%;
	aspect-ratio: 380 / 264;
	object-fit: cover;
}

.dh-value__body {
	flex: 1;
	padding: 36px 30px 44px;
	font-size: 1rem;
	line-height: 1.75;
}

.dh-value__icon {
	width: 28px;
	height: 28px;
	margin-bottom: 18px;
}

.dh-value__title {
	margin-bottom: 14px;
	font-family: var(--dh-display);
	font-size: 1.875rem;
	line-height: 1.15;
	color: var(--dh-charcoal);
}

/* ==========================================================================
   Generic pages
   ========================================================================== */

.dh-page {
	padding: var(--dh-section) var(--dh-gutter);
	background: var(--dh-charcoal);
	min-height: 50vh;
}

.dh-page__inner {
	max-width: 46rem;
	margin: 0 auto;
}

.dh-page__title {
	margin-bottom: 32px;
	font-family: var(--dh-display);
	font-size: clamp(2rem, 5vw, 3rem);
}

.dh-entry + .dh-entry {
	margin-top: 48px;
	padding-top: 48px;
	border-top: 1px solid var(--dh-line);
}

.dh-entry__title {
	margin-bottom: 12px;
	font-family: var(--dh-display);
	font-size: 1.75rem;
}

.dh-entry__title a {
	color: var(--dh-white);
	text-decoration: none;
}

.dh-content {
	color: rgba(255, 255, 255, 0.86);
}

.dh-content h2,
.dh-content h3 {
	margin: 1.6em 0 0.6em;
	font-family: var(--dh-display);
	color: var(--dh-white);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.dh-footer {
	background: var(--dh-black);
	color: var(--dh-grey);
	font-size: 0.875rem;
	line-height: 1.7;
}

.dh-footer__main {
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	gap: 40px;
	max-width: calc(var(--dh-wrap) + 2 * var(--dh-gutter));
	margin: 0 auto;
	padding: 60px var(--dh-gutter) 32px;
}

.dh-footer__brand p {
	margin: 16px 0 20px;
}

.dh-footer__logo img {
	width: 180px;
}

.dh-footer__cafe img {
	width: 180px;
}

.dh-footer__middle {
	padding-left: 40px;
}

.dh-footer__heading {
	margin: 0 0 12px;
	font-family: var(--dh-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--dh-gold-pale);
}

.dh-footer__heading--light {
	color: var(--dh-white);
}

.dh-footer__heading--muted {
	color: var(--dh-grey);
}

.dh-social {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dh-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--dh-gold-pale);
	color: var(--dh-black);
	transition: background-color 0.2s ease;
}

.dh-social a:hover {
	background: var(--dh-white);
	color: var(--dh-black);
}

.dh-footer__group img {
	width: 132px;
	margin-top: 4px;
}

.dh-footer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: calc(var(--dh-wrap) + 2 * var(--dh-gutter));
	margin: 0 auto;
	padding: 16px var(--dh-gutter);
	border-top: 1px solid var(--dh-line);
	font-size: 0.75rem;
}

.dh-footer__bar p {
	margin: 0;
}

.dh-footer__credit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--dh-grey);
	font-weight: 600;
	text-decoration: none;
}

.dh-footer__credit img {
	flex: none;
	width: 16px;
	height: 16px;
	max-width: none;
}

.dh-footer__credit:hover {
	color: var(--dh-gold-pale);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.dh-footer__main {
		grid-template-columns: 1fr 1fr;
	}

	.dh-footer__middle {
		padding-left: 0;
	}

	.dh-footer__group {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	.dh-values__list {
		grid-template-columns: 1fr;
		max-width: 480px;
		margin: 0 auto;
	}

	
	

	}

@media (max-width: 782px) {
	.admin-bar .dh-header {
		top: 46px;
	}
}

@media (max-width: 760px) {
	:root {
		--dh-header-h: 72px;
	}

	.dh-story__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.dh-story__text {
		max-width: none;
	}

	.dh-story__title {
		align-items: center;
	}

	.dh-story__art {
		order: -1;
		width: min(70%, 240px);
	}

	.dh-header__address {
		display: none;
	}

	.dh-header__buttons .dh-btn--outline span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.dh-header__buttons .dh-btn--outline {
		padding: 10px;
	}

	.dh-btn {
		padding: 9px 18px;
		font-size: 0.9375rem;
	}

	.dh-footer__main {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.dh-footer__main img {
		margin-left: auto;
		margin-right: auto;
	}

	
	.dh-social {
		justify-content: center;
	}

	.dh-footer__bar {
		flex-direction: column;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.dh-story__glow {
		opacity: 0.8;
	}
}

/* ==========================================================================
   Closure announcement dialog
   ========================================================================== */

.dh-notice {
	width: min(92vw, 600px);
	max-height: 90vh;
	padding: 0;
	overflow: auto;
	background: var(--dh-black);
	color: rgba(255, 255, 255, 0.88);
	border: 1px solid var(--dh-gold);
	border-radius: var(--dh-radius) var(--dh-radius) 0 0;
}

.dh-notice::backdrop {
	background: rgba(0, 0, 0, 0.78);
}

.dh-notice[open] {
	animation: dh-notice-in 0.35s ease-out;
}

@keyframes dh-notice-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

.dh-notice__photo {
	width: 100%;
	aspect-ratio: 1120 / 320;
	object-fit: cover;
}

.dh-notice__body {
	padding: 28px clamp(22px, 5vw, 40px) 8px;
	font-size: 0.9375rem;
	line-height: 1.7;
}

.dh-notice__body p {
	margin-bottom: 0.9em;
}

.dh-notice__title {
	margin-bottom: 18px;
	font-family: var(--dh-display);
	font-size: clamp(1.625rem, 4vw, 2rem);
	color: var(--dh-gold);
}

.dh-notice__sign strong {
	font-family: var(--dh-display);
	font-weight: 400;
	font-size: 1.25rem;
	color: var(--dh-gold);
}

.dh-notice__actions {
	display: flex;
	justify-content: flex-end;
	padding: 8px clamp(22px, 5vw, 40px) 28px;
}

.dh-notice__x {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: var(--dh-white);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.dh-notice__x:hover {
	background: var(--dh-gold);
	color: var(--dh-cocoa);
}
