/* ==========================================================================
   Schmuck Notizen — editorial magazine
   ========================================================================== */

:root {
	--bg: #faf8f4;
	--bg-alt: #f3efe7;
	--ink: #191817;
	--muted: #6f6a63;
	--line: #e3ddd2;
	--accent: #7a2433;
	--accent-2: #a8825a;
	--serif: Georgia, "Times New Roman", "Noto Serif", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--wrap: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.15;
	margin: 0 0 .5em;
}

.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;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ink);
	color: #fff;
	padding: 10px 16px;
	z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }

/* --------------------------------------------------------------------------
   top bar
   -------------------------------------------------------------------------- */
.topbar {
	background: var(--ink);
	color: #f3efe7;
	font-size: 12px;
	letter-spacing: .06em;
}
.topbar__inner {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 9px;
	padding-bottom: 9px;
	text-transform: uppercase;
}
.topbar__date { opacity: .75; }

/* --------------------------------------------------------------------------
   masthead
   -------------------------------------------------------------------------- */
.masthead {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}
.masthead__inner {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) auto;
	align-items: center;
	gap: 28px;
	padding-top: 16px;
	padding-bottom: 14px;
}
.brand { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand__logo { width: 220px; height: auto; }
.brand__tagline {
	font-size: 9.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.primary-nav { justify-self: center; min-width: 0; }
.nav-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 11.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.nav-list a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-list a:hover { border-color: var(--accent); }

.masthead__tools { display: flex; align-items: center; gap: 14px; }
.search-form { display: flex; align-items: center; gap: 8px; }
.search-form input {
	width: 120px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: transparent;
	padding: 6px 2px;
	font: inherit;
	font-size: 13px;
	color: var(--ink);
	outline: none;
}
.search-form input:focus { border-color: var(--accent); }
.search-form button {
	background: none;
	border: 0;
	padding: 4px;
	cursor: pointer;
	color: var(--ink);
	display: inline-flex;
}
.search-form button:hover { color: var(--accent); }

.menu-toggle { display: none; }

/* --------------------------------------------------------------------------
   hero
   -------------------------------------------------------------------------- */
.hero { padding: 48px 0 56px; border-bottom: 1px solid var(--line); }
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}
.hero__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--bg-alt);
}
.hero__title { font-size: clamp(32px, 3.4vw, 52px); margin-bottom: 16px; }
.hero__title a:hover { color: var(--accent); }
.hero__excerpt { color: var(--muted); font-size: 17px; max-width: 46ch; }

.kicker {
	margin: 0 0 12px;
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 700;
}
.kicker--small { font-size: 10px; margin-bottom: 8px; }

.meta { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; }
.meta--small { font-size: 11.5px; }

.btn {
	display: inline-block;
	margin-top: 18px;
	padding: 13px 26px;
	background: var(--ink);
	color: #fff;
	font-size: 12.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	border: 1px solid var(--ink);
	transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* --------------------------------------------------------------------------
   sections & grid
   -------------------------------------------------------------------------- */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--line);
	padding-bottom: 14px;
}
.section__title { font-size: clamp(24px, 2.2vw, 32px); margin: 0; }
.section__more {
	font-size: 11.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--ink);
	padding-bottom: 2px;
	white-space: nowrap;
}
.section__more:hover { border-color: var(--accent); }

.grid { display: grid; gap: 36px 28px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; }
.card__media { overflow: hidden; background: var(--bg-alt); }
.card__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .35s ease;
}
.card:hover .card__media img { transform: scale(1.03); }
.card__title { font-size: 21px; margin: 10px 0 8px; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.card .kicker { margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   archive head
   -------------------------------------------------------------------------- */
.archive-head {
	padding: 54px 0 34px;
	border-bottom: 1px solid var(--line);
	background: var(--bg-alt);
}
.archive-head__title { font-size: clamp(32px, 3.2vw, 48px); margin-bottom: 10px; }
.archive-head__desc { color: var(--muted); max-width: 62ch; }

/* --------------------------------------------------------------------------
   article
   -------------------------------------------------------------------------- */
.article { padding: 54px 0 20px; }
.article__head { text-align: center; margin-bottom: 34px; }
.article__title { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 16px; }
.article__excerpt { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0 auto 14px; }
.article__media { margin-bottom: 40px; }
.article__media img {
	width: 100%;
	height: clamp(280px, 46vw, 560px);
	object-fit: cover;
	object-position: center;
	background: var(--bg-alt);
}
.article__body { font-size: 17px; line-height: 1.8; }
.article__body h2 {
	font-size: 28px;
	margin: 42px 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
}
.article__body h3 { font-size: 21px; margin: 30px 0 10px; }
.article__body p { margin: 0 0 18px; }
.article__body ul, .article__body ol { margin: 0 0 20px; padding-left: 22px; }
.article__body li { margin-bottom: 8px; }
.article__body blockquote {
	margin: 28px 0;
	padding: 6px 0 6px 22px;
	border-left: 2px solid var(--accent);
	font-family: var(--serif);
	font-size: 21px;
	line-height: 1.5;
	color: #3d3833;
}
.article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 40px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	font-size: 12.5px;
	color: var(--muted);
}
.article__tags a { text-decoration: underline; }

/* product box */
.article-products {
	margin: 44px 0;
	padding: 26px 26px 10px;
	background: var(--bg-alt);
	border: 1px solid var(--line);
}
.article-products__title {
	font-size: 15px;
	font-family: var(--sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0 0 18px;
}
.article-products__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-products__item { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-products__media { width: 72px; flex: 0 0 72px; background: #fff; }
.article-products__media img { aspect-ratio: 1 / 1; object-fit: contain; }
.article-products__info { display: flex; flex-direction: column; gap: 2px; }
.article-products__name { font-size: 13.5px; font-weight: 600; }
.article-products__price { font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   page / 404 / pagination
   -------------------------------------------------------------------------- */
.page { padding: 54px 0 60px; }
.page__title { font-size: clamp(30px, 3vw, 44px); }
.page__body { font-size: 16.5px; line-height: 1.8; }
.page__body h2 { font-size: 26px; margin: 34px 0 12px; }

.notfound { padding: 40px 0; text-align: center; }
.notfound__title { font-size: clamp(28px, 3vw, 40px); }
.notfound .search-form { justify-content: center; margin: 22px auto; max-width: 420px; }
.notfound .search-form input { width: 100%; border: 1px solid var(--line); padding: 12px; }
.notfound .search-form button { padding: 12px 18px; border: 1px solid var(--ink); background: var(--ink); color: #fff; }

.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.pagination .page-numbers {
	display: inline-flex;
	min-width: 38px; height: 38px;
	align-items: center; justify-content: center;
	border: 1px solid var(--line);
	padding: 0 12px;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

.empty { color: var(--muted); }

/* --------------------------------------------------------------------------
   CTA + newsletter
   -------------------------------------------------------------------------- */
.cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 42px 40px;
	background: var(--ink);
	color: #f3efe7;
}
.cta h2 { color: #fff; font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 6px; }
.cta p { color: rgba(243, 239, 231, .8); max-width: 58ch; margin: 0; }

/* --------------------------------------------------------------------------
   footer
   -------------------------------------------------------------------------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 26px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo { width: 210px; height: auto; margin-bottom: 16px; }
.footer__about { color: var(--muted); font-size: 13.5px; max-width: 34ch; }
.footer__title { font-size: 12px; font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__small { font-size: 13.5px; color: var(--muted); }
.newsletter { display: flex; gap: 0; margin-top: 12px; }
.newsletter input {
	flex: 1;
	min-width: 0;
	padding: 11px 12px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	font-size: 13px;
}
.newsletter button {
	padding: 11px 16px;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: #fff;
	font: inherit;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}
.footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 42px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 12px;
	color: var(--muted);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
	.masthead__inner { grid-template-columns: 200px minmax(0, 1fr) auto; gap: 18px; }
	.brand__logo { width: 186px; }
	.nav-list { gap: 6px 14px; font-size: 11px; }
	.hero__grid { gap: 34px; }
}

@media (max-width: 980px) {
	.topbar__claim { display: none; }
	.masthead__inner { grid-template-columns: auto 1fr auto; padding: 14px 24px; }
	.menu-toggle {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 40px; height: 40px;
		background: none;
		border: 0;
		padding: 8px;
		cursor: pointer;
	}
	.menu-toggle span:not(.screen-reader-text) { display: block; height: 1.5px; background: var(--ink); width: 100%; transition: transform .2s, opacity .2s; }
	.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

	.primary-nav {
		position: fixed;
		inset: 0 0 auto 0;
		top: calc(var(--jn-masthead-h, 120px));
		left: 0;
		right: 0;
		width: 100%;
		justify-self: stretch;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		padding: 22px 24px 30px;
		transform: translateY(-120%);
		transition: transform .25s ease;
		z-index: 50;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}
	.primary-nav.is-open { transform: translateY(0); }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list li { border-bottom: 1px solid var(--line); }
	.nav-list a { display: block; padding: 14px 0; font-size: 14px; }

	.masthead__tools .search-form { display: none; }

	.hero { padding: 32px 0 40px; }
	.hero__grid { grid-template-columns: 1fr; gap: 22px; }
	.hero__media img { aspect-ratio: 4 / 3; }
	.section { padding: 40px 0; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
	.footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
	.cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
	.article-products__list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.wrap { padding: 0 18px; }
	.brand__logo { width: 172px; }
	.brand__tagline { display: none; }
	.topbar__date { display: none; }
	.grid--3 { grid-template-columns: 1fr; gap: 30px; }
	.section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.article__body { font-size: 16px; }
	.article__foot { flex-direction: column; align-items: flex-start; }
	.footer__grid { grid-template-columns: 1fr; }
	.footer__bottom { flex-direction: column; }
	.card__title { font-size: 20px; }
}
