/* The Lippincott: the hotel's website (spec 14.14). One stylesheet for every page.
   Typefaces are the hotel's own, served from /fonts/ (SIL OFL 1.1; the licence texts sit beside them). */

@font-face {
	font-family: "Playfair Display";
	src: url("/fonts/PlayfairDisplay-Variable.ttf") format("truetype");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Jost";
	src: url("/fonts/Jost-Variable.ttf") format("truetype");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #fbf7ef;
	--ivory: #f3ecdf;
	--card: #fffdf8;
	--ink: #2b231e;
	--muted: #6c6157;
	--line: #e3d9c7;
	--brass: #a8843f;
	--brass-deep: #7f6331;
	--claret: #6c1f26;
	--marble: #1f3a30;
	--night: #0e0d12;
	--night-2: #17151c;
	--night-text: #e9e2d0;
	--night-muted: #9a927f;
	--gutter: 24px;
	--serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--sans: "Jost", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.65;
	overflow-x: hidden;
}

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

a { color: var(--claret); text-underline-offset: 3px; }
a:hover { color: var(--brass-deep); }
a:focus-visible, label:focus-visible, .nav-toggle:focus-visible + label { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.55rem; }

p { margin: 0 0 1.1em; }

.eyebrow {
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--brass-deep);
	margin: 0 0 1rem;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }

.rule { width: 72px; height: 1px; background: var(--brass); margin: 0 0 1.6rem; border: 0; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--card); padding: 8px 12px; }

/* --- The bar along the top ------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 247, 239, 0.97);
	border-bottom: 1px solid var(--line);
}

.site-header .bar {
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 var(--gutter);
	min-height: 76px;
}

.wordmark {
	display: flex;
	flex-direction: column;
	line-height: 1;
	text-decoration: none;
	color: var(--ink);
	margin-right: auto;
	flex-shrink: 0;
}

.wordmark .name {
	font-family: var(--serif);
	font-size: 1.45rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.wordmark .since {
	font-family: var(--sans);
	font-size: 0.62rem;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	color: var(--brass-deep);
	margin-top: 6px;
}

.wordmark:hover { color: var(--ink); }

.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.nav-button { display: none; }

.site-nav ul {
	display: flex;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	font-family: var(--sans);
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.17em;
	text-transform: uppercase;
	color: var(--ink);
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 1px solid transparent;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--ink); }

.book {
	display: inline-block;
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: var(--claret);
	border: 1px solid var(--claret);
	padding: 13px 26px;
	white-space: nowrap;
}

.book:hover, .book:focus-visible { background: var(--brass-deep); border-color: var(--brass-deep); color: #fff; }

.book.light { background: transparent; border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.book.light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.text-link {
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--claret);
	border-bottom: 1px solid var(--brass);
	padding-bottom: 3px;
}

@media (max-width: 1080px) {
	.site-header .bar { flex-wrap: wrap; gap: 0 14px; min-height: 66px; }
	.wordmark .name { font-size: 1.2rem; letter-spacing: 0.1em; }
	.wordmark .since { letter-spacing: 0.32em; }
	.nav-button {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		order: 2;
		cursor: pointer;
		font-size: 0.76rem;
		font-weight: 500;
		letter-spacing: 0.18em;
		text-transform: uppercase;
		padding: 12px 4px;
		user-select: none;
	}
	.nav-button .bars, .nav-button .bars::before, .nav-button .bars::after {
		display: block;
		width: 20px;
		height: 1.5px;
		background: var(--ink);
		position: relative;
		content: "";
	}
	.nav-button .bars::before { position: absolute; top: -6px; }
	.nav-button .bars::after { position: absolute; top: 6px; }
	.site-header .book { order: 3; padding: 11px 16px; }
	.site-nav { order: 4; flex-basis: 100%; display: none; }
	.nav-toggle:checked ~ .site-nav { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; padding: 4px 0 14px; }
	.site-nav li { border-top: 1px solid var(--line); }
	.site-nav a { display: block; padding: 14px 0; border-bottom: 0; }
}

@media (max-width: 420px) {
	:root { --gutter: 16px; }
	.wordmark .name { font-size: 1.05rem; letter-spacing: 0.08em; }
	.wordmark .since { font-size: 0.56rem; letter-spacing: 0.24em; }
	.nav-button .label { display: none; }
	.site-header .book { padding: 10px 12px; letter-spacing: 0.14em; font-size: 0.72rem; }
	.eyebrow { letter-spacing: 0.2em; }
}

/* --- Heroes -------------------------------------------------------------------------------------- */

.hero {
	position: relative;
	min-height: min(82vh, 780px);
	display: flex;
	align-items: flex-end;
	color: #fff;
	background: var(--night);
	overflow: hidden;
}

.hero.short { min-height: min(58vh, 560px); }

.hero > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focus, 50% 50%);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(14, 13, 18, 0.05) 30%, rgba(14, 13, 18, 0.72) 100%);
}

.hero .copy {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 var(--gutter) clamp(40px, 8vh, 84px);
}

.hero .eyebrow { color: #f1dfb4; }
.hero h1 { color: #fff; max-width: 14em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero p { max-width: 34em; font-size: 1.1rem; color: rgba(255, 255, 255, 0.92); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* --- Sections ------------------------------------------------------------------------------------ */

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section.tint { background: var(--ivory); }
.section.dark { background: var(--night); color: var(--night-text); }
.section.dark h2, .section.dark h3 { color: #f1dfb4; }
.section.dark .eyebrow { color: var(--brass); }
.section.dark p { color: var(--night-text); }

.lead { font-size: 1.18rem; color: var(--ink); }

.split {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(32px, 6vw, 72px);
	align-items: center;
}

.split.flip > :first-child { order: 2; }

.split figure, .feature figure { margin: 0; }

@media (max-width: 860px) {
	.split { grid-template-columns: 1fr; }
	.split.flip > :first-child { order: 0; }
}

.photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ivory); }

figcaption {
	font-size: 0.85rem;
	color: var(--muted);
	margin-top: 10px;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 36px;
}

.card {
	background: var(--card);
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
}

.card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; padding-top: 6px; }

.features {
	list-style: none;
	margin: 0 0 1.4em;
	padding: 0;
	font-size: 0.95rem;
}

.features li { padding: 6px 0 6px 22px; position: relative; border-top: 1px solid var(--line); }
.features li:first-child { border-top: 0; }
.features li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.95em;
	width: 7px;
	height: 7px;
	background: var(--brass);
	transform: rotate(45deg);
}

.notice {
	display: inline-block;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	color: var(--claret);
	border: 1px solid var(--claret);
	padding: 6px 12px;
	margin: 0 0 1.2em;
}

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 28px;
	margin: 2.2em 0 0;
	padding: 0;
	list-style: none;
}

.facts li { border-top: 1px solid var(--brass); padding-top: 14px; }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--claret); }
.section.dark .facts strong { color: #f1dfb4; }
.facts span { font-size: 0.9rem; color: var(--muted); }
.section.dark .facts span { color: var(--night-muted); }

.quote {
	font-family: var(--serif);
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.35;
	margin: 0 auto 0.8em;
	max-width: 28em;
}

.quote-by { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-deep); }

.band {
	position: relative;
	color: #fff;
	background: var(--night);
}

.band img { width: 100%; height: clamp(320px, 52vw, 640px); object-fit: cover; opacity: 0.9; }

.band .caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 60px var(--gutter) 34px;
	background: linear-gradient(180deg, rgba(14, 13, 18, 0) 0%, rgba(14, 13, 18, 0.75) 100%);
}

.band .caption p { max-width: 1180px; margin: 0 auto; font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.6rem); }

.cta { text-align: center; }
.cta h2 { margin-bottom: 0.3em; }
.cta p { color: var(--muted); max-width: 36em; margin: 0 auto 1.6em; }

/* --- History ------------------------------------------------------------------------------------- */

.timeline {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 44px 36px;
}

.timeline figure { margin: 0; }
.timeline img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 10px 28px rgba(43, 35, 30, 0.18); }
.timeline figcaption { margin-top: 16px; font-size: 0.97rem; color: var(--ink); }
.timeline .year { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--claret); margin-bottom: 2px; }

.plaque {
	border: 1px solid var(--brass);
	background: linear-gradient(180deg, #c9a55c 0%, #a8843f 100%);
	color: #2b1d0c;
	text-align: center;
	padding: 26px 20px;
	max-width: 520px;
	margin: 0 auto 1.6em;
	box-shadow: inset 0 0 0 4px rgba(255, 244, 214, 0.35);
}

.plaque .line { height: 2px; background: #2b1d0c; margin: 12px auto; width: 80%; }
.plaque strong { display: block; font-family: var(--serif); font-weight: 600; letter-spacing: 0.18em; font-size: 1.3rem; }
.plaque span { font-size: 0.9rem; letter-spacing: 0.3em; text-transform: uppercase; }

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

.score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 0.6em; }
.score strong { font-family: var(--serif); font-weight: 400; font-size: 3.2rem; color: var(--claret); }

.stars { color: var(--brass); letter-spacing: 0.12em; font-size: 1.05rem; }
.stars .off { color: #d9ccb2; }

.reviews { display: grid; gap: 28px; max-width: 820px; margin: 0 auto; }

.review { background: var(--card); border: 1px solid var(--line); padding: 28px 30px; }
.review h3 { font-size: 1.35rem; margin: 6px 0 0.5em; }
.review p { color: var(--ink); }
.review .who { font-size: 0.85rem; color: var(--muted); margin: 0; }
.review .reply { margin: 18px 0 0; padding: 14px 18px; background: var(--ivory); border-left: 2px solid var(--brass); font-size: 0.95rem; }
.review .reply p { margin: 0; color: var(--ink); }
.review .reply .from { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 6px; }

/* --- Contact ------------------------------------------------------------------------------------- */

.details { list-style: none; margin: 0; padding: 0; }
.details li { padding: 16px 0; border-top: 1px solid var(--line); }
.details li:first-child { border-top: 0; padding-top: 0; }
.details .label { display: block; font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 4px; }
.details .value { font-family: var(--serif); font-size: 1.35rem; }

/* --- The foot of every page ---------------------------------------------------------------------- */

.hotel-info {
	background: var(--night);
	color: var(--night-text);
	padding: 64px 0 40px;
}

.hotel-info .cols {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 40px;
}

.hotel-info .wordmark { color: #f1dfb4; margin: 0 0 18px; }
.hotel-info .wordmark .since { color: var(--brass); }
.hotel-info p { margin: 0 0 0.4em; color: var(--night-text); font-size: 0.95rem; }
.hotel-info h4 { font-family: var(--sans); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
.hotel-info ul { list-style: none; margin: 0; padding: 0; }
.hotel-info li { margin: 0 0 8px; font-size: 0.95rem; }
.hotel-info a { color: var(--night-text); text-decoration: none; }
.hotel-info a:hover { color: #f1dfb4; }

@media (max-width: 760px) {
	.hotel-info .cols { grid-template-columns: 1fr; gap: 30px; }
}

footer {
	background: var(--night);
	border-top: 1px solid #26232c;
	color: var(--night-muted);
	text-align: center;
	font-size: 0.82rem;
	padding: 22px var(--gutter) 30px;
}

footer a { color: var(--brass); margin-left: 0.4em; }

/* --- The credits page and the lost-key page ------------------------------------------------------ */

.licenses main, .page-main { max-width: 860px; margin: 0 auto; padding: 56px var(--gutter) 64px; }
.licenses h1 { font-size: clamp(2rem, 5vw, 3rem); }
.licenses h2, .licenses h3 { margin-top: 2em; }
.licenses pre {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	font-size: 0.78rem;
	line-height: 1.5;
	background: var(--card);
	border: 1px solid var(--line);
	padding: 14px;
}
.licenses li { margin: 0.3em 0; font-size: 0.92rem; overflow-wrap: anywhere; }

.lost { text-align: center; padding: clamp(80px, 16vh, 160px) var(--gutter); }
.lost p { font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 2.1rem); max-width: 22em; margin: 0 auto 1em; }
