@import url("fonts/fonts.css");

/*
 * The header echoes the shop's own fascia: black board, brass serif lettering,
 * and the window strip "Verlobungsringe, Trauringe und Schmuck". Below it the
 * page stays quiet on a cool stone grey, like the granite plinth of the shopfront.
 */
:root {
	--black: #000;
	--gold: #c9a64e;
	--gold-soft: #a88a3f;
	--brass: #7a5e1c;
	--ink: #23221f;
	--ink-soft: #57544d;
	--stone: #ecebe8;
	--stone-deep: #dfddd8;
	--white: #fff;
	--line: #c9c6bf;
	--button-bg: #000;
	--button-text: #c9a64e;
	--button-quiet-hover: #fff;

	color-scheme: light dark;

	--serif: "Cinzel", "Trajan Pro", Georgia, serif;
	--sans: "Figtree", "Segoe UI", system-ui, sans-serif;

	--wrap: 72rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
}

/* Follows the visitor's system setting */
@media (prefers-color-scheme: dark) {
	:root {
		--ink: #ebe5d5;
		--ink-soft: #b1aa99;
		--brass: #d6b560;
		--stone: #1c1b18;
		--stone-deep: #252420;
		--line: #3d3a33;
		--button-bg: #c9a64e;
		--button-text: #000;
		--button-quiet-hover: #2e2c27;
	}
}

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

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

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

body {
	margin: 0;
	background: var(--stone);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--sans);
}

figure {
	margin: 0;
}

.nowrap {
	white-space: nowrap;
}

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

a {
	color: var(--brass);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--ink);
}

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

h1, h2, h3 {
	text-wrap: balance;
	font-family: var(--serif);
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1.2;
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p {
	margin: 0 0 1em;
	max-width: 38em;
}

address {
	font-style: normal;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.skip {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--gold);
	color: var(--black);
	padding: 0.5rem 1rem;
	z-index: 100;
}

.skip:focus {
	left: 1rem;
}

/* ---------- Fascia (header) ---------- */

.fascia {
	background: var(--black);
	color: var(--gold);
}

.fascia-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 1.1rem var(--gutter);
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(1.35rem, 3.2vw, 1.9rem);
	letter-spacing: 0.08em;
	color: var(--gold);
	text-decoration: none;
	white-space: nowrap;
}

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

.wordmark svg {
	width: 1.15em;
	height: auto;
	flex: none;
}

.nav {
	display: flex;
	gap: 0.25rem 1.6rem;
}

.nav a {
	color: var(--gold);
	text-decoration: none;
	font-size: 1rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid transparent;
}

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

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--gold-soft);
	color: var(--gold);
	font: 500 0.95rem var(--sans);
	padding: 0.45rem 0.9rem;
	border-radius: 2px;
	cursor: pointer;
}

.fascia-strip {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	max-width: none;
	margin: 0;
	padding: 0.45rem max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
	border-top: 1px solid #3a3222;
	font-family: var(--serif);
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	color: var(--gold-soft);
}

@media (max-width: 760px) {
	.fascia-main {
		flex-wrap: wrap;
	}

	.nav-toggle {
		display: block;
	}

	.nav {
		display: none;
		flex-direction: column;
		width: 100%;
		padding-top: 0.5rem;
	}

	.nav.open {
		display: flex;
	}

	.nav a {
		padding: 0.6rem 0;
		border-bottom: 1px solid #2a261d;
	}

	.fascia-strip span + span {
		display: none;
	}
}

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

main {
	display: block;
}

.section {
	padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-deep {
	background: var(--stone-deep);
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.section-head h2 {
	margin: 0;
}

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

/* Split: text beside an image */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

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

.split img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (max-width: 760px) {
	.split {
		grid-template-columns: 1fr;
	}

	.split-reverse > :first-child {
		order: 0;
	}
}

/* ---------- Diamond band ----------
 * Black like the shop sign in both colour schemes. The stone is rendered by js/diamond.js,
 * loaded after the page; until then (or without WebGL) the logo diamond stands in for it.
 */

.gem-band {
	position: relative;
	overflow: hidden;
	background: var(--black);
	color: #d8d2c2;
	padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.gem-band h2 {
	color: var(--gold);
}

.gem-band a {
	color: var(--gold);
}

.gem-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.gem-stage {
	position: relative;
	width: min(100%, 26rem);
	aspect-ratio: 1;
	justify-self: center;
	display: grid;
	place-items: center;
	touch-action: pan-y;
}

/* Warm light pooling under the stone */
.gem-stage::before {
	content: "";
	position: absolute;
	inset: 12% 8% 0;
	background: radial-gradient(closest-side, rgba(201, 166, 78, 0.18), transparent);
}

.gem-stage > svg {
	width: 55%;
	color: var(--gold);
	transition: opacity 0.8s;
}

.gem-stage canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s;
}

.gem-ready > svg {
	opacity: 0;
}

.gem-ready canvas {
	opacity: 1;
}

@media (max-width: 760px) {
	.gem-grid {
		grid-template-columns: 1fr;
	}

	.gem-stage {
		width: min(80%, 20rem);
	}
}

/* A gold chain running across the full width of the page (service page) */
.gem-strip {
	position: relative;
	height: clamp(5rem, 11vw, 8rem);
	margin-top: 1.5rem;
}

.gem-strip canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s;
}

.gem-strip.gem-ready canvas {
	opacity: 1;
}

/* Jubilee medal, beside the coffee note at the end of the contact section */
.closing {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: minmax(0, 36rem) minmax(0, auto);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

.gem-medal {
	position: relative;
	width: clamp(11rem, 23vw, 20rem);
	aspect-ratio: 1;
	justify-self: center;
}

.gem-medal canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s;
}

.gem-medal.gem-ready canvas {
	opacity: 1;
}

.brands-layout {
	display: grid;
	grid-template-columns: minmax(0, 40rem) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

@media (max-width: 760px) {
	/* Jubilee medal, beside the coffee note at the end of the contact section */
.closing {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: minmax(0, 36rem) minmax(0, auto);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

.gem-medal {
	position: relative;
	width: clamp(11rem, 23vw, 20rem);
	aspect-ratio: 1;
	justify-self: center;
}

.gem-medal canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s;
}

.gem-medal.gem-ready canvas {
	opacity: 1;
}

.brands-layout {
		grid-template-columns: 1fr;
	}
}

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

.hero {
	padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.hero-photo img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.hero-photo figcaption {
	margin-top: 0.6rem;
	font-size: 0.9rem;
	color: var(--ink-soft);
}

.hero h1 {
	font-size: clamp(2rem, 3.8vw, 2.9rem);
	margin-bottom: 0.4em;
}

.hero .lead {
	margin-bottom: 1.8rem;
}

.hero address {
	margin-bottom: 1.8rem;
	padding-left: 1rem;
	border-left: 2px solid var(--gold);
}

@media (max-width: 860px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-photo {
		order: -1;
	}
}

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

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.4rem;
	border: 1px solid var(--button-bg);
	border-radius: 2px;
	background: var(--button-bg);
	color: var(--button-text);
	font: 500 1rem var(--sans);
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	background: var(--button-bg);
	color: var(--button-text);
	filter: brightness(1.15);
}

.button-quiet {
	border-color: var(--ink);
	background: transparent;
	color: var(--ink);
}

.button-quiet:hover {
	background: var(--button-quiet-hover);
	color: var(--ink);
	filter: none;
}

.button svg {
	width: 1.1em;
	height: 1.1em;
	flex: none;
}

/* ---------- Service list ---------- */

.services {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	column-gap: 2.5rem;
}

.services li {
	padding: 1rem 0;
	border-bottom: 1px solid var(--line);
}

.services strong {
	display: block;
	font-weight: 600;
}

.services span {
	color: var(--ink-soft);
	font-size: 0.95rem;
}

/* Service page: jewellery and watches side by side */
.service-groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
	gap: 2rem clamp(2rem, 6vw, 5rem);
}

.service-groups h2 {
	font-size: 1.5rem;
	padding-bottom: 0.6rem;
	margin-bottom: 0;
	border-bottom: 2px solid var(--gold);
}

.services-plain {
	grid-template-columns: 1fr;
}

.services-plain li {
	padding: 0.75rem 0;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}

.services-plain span {
	text-align: right;
}

/* ---------- Photo mosaic (service page) ---------- */

.mosaic {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: 3rem;
}

@media (max-width: 600px) {
	.mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.mosaic img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

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

.brands {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 40rem;
}

.brands li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 1.2rem 0;
	border-bottom: 1px solid var(--line);
}

.brands strong {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(1.3rem, 3vw, 1.7rem);
	letter-spacing: 0.04em;
}

.brands span {
	color: var(--ink-soft);
	text-align: right;
}

/* ---------- Gallery ---------- */

.gallery {
	columns: 3 16rem;
	column-gap: 0.75rem;
}

.gallery figure {
	margin: 0 0 0.75rem;
	break-inside: avoid;
}

.gallery button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--stone-deep);
	cursor: zoom-in;
}

.gallery img {
	width: 100%;
}

.gallery figcaption {
	padding: 0.4rem 0 0.2rem;
	font-size: 0.92rem;
	color: var(--ink-soft);
}

.gallery-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

.gallery-strip a {
	display: block;
}

.gallery-strip img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

@media (max-width: 760px) {
	.gallery-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.gallery-empty {
	color: var(--ink-soft);
}

.lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.94);
	color: var(--gold);
}

.lightbox::backdrop {
	background: rgba(0, 0, 0, 0.9);
}

.lightbox[open] {
	display: grid;
	grid-template-rows: auto 1fr auto;
}

.lightbox-bar {
	display: flex;
	justify-content: flex-end;
	padding: 0.75rem;
}

.lightbox figure {
	margin: 0;
	display: grid;
	place-items: center;
	min-height: 0;
	padding: 0 3.5rem;
}

.lightbox img {
	max-width: 100%;
	max-height: calc(100vh - 9rem);
	object-fit: contain;
}

.lightbox figcaption {
	padding: 0.8rem 1rem 1.2rem;
	text-align: center;
	color: #d8d2c2;
	min-height: 3rem;
}

.lightbox button {
	background: none;
	border: 1px solid #4a4231;
	color: var(--gold);
	font: 500 1rem var(--sans);
	padding: 0.5rem 0.9rem;
	border-radius: 2px;
	cursor: pointer;
}

.lightbox .prev,
.lightbox .next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.6rem;
	line-height: 1;
	padding: 0.6rem 0.8rem;
}

.lightbox .prev { left: 0.5rem; }
.lightbox .next { right: 0.5rem; }

@media (max-width: 600px) {
	.lightbox figure { padding: 0 0.5rem; }
	.lightbox .prev, .lightbox .next { top: auto; bottom: 0.8rem; transform: none; }
}

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

.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 2rem 3rem;
}

.contact-grid h3 {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0;
	margin-bottom: 0.4rem;
}

.contact-grid p {
	margin: 0;
}

.coffee {
	display: grid;
	grid-template-columns: 9rem 1fr;
	gap: 1.25rem;
	align-items: center;
	max-width: 36rem;
}

.coffee img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

/* ---------- Plain text pages ---------- */

.page-head {
	padding-top: clamp(2.5rem, 6vw, 4rem);
}

.page-head + .section {
	padding-top: 1rem;
}

.prose h2 {
	font-size: 1.4rem;
	margin-top: 2rem;
}

.prose p,
.prose ul {
	max-width: 42rem;
}

.prose ul {
	padding-left: 1.25rem;
}

.prose .updated {
	margin-top: 2.5rem;
	color: var(--ink-soft);
	font-size: 0.9rem;
}

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

.footer {
	position: relative;
	background: var(--black);
	color: #d8d2c2;
	padding: 3rem 0 2.5rem;
	font-size: 0.95rem;
}

.footer a {
	color: var(--gold);
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1.5rem 3rem;
	align-items: start;
}

@media (max-width: 760px) {
	.closing {
		grid-template-columns: 1fr;
	}
}

.footer .wordmark {
	font-size: 1.2rem;
	margin-bottom: 0.6rem;
}

.footer p {
	margin: 0;
}
