/* =============================================================================
 * reset & various settings
 * ========================================================================== */

* {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background-repeat: no-repeat;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-ms-hyphens: none;
	-webkit-hyphens: none;
	hyphens: auto;
}

a {
   hyphens: none;
}

ol, ul {
	list-style: none;
}

table {
	border-spacing: 0;
}

body {
	position: relative;
	text-size-adjust: 100%;
	background: #fff;
}

/* =============================================================================
 * Basic Styling
 * ========================================================================== */

:root {
	--color-bg: #f7f1e8;
	--color-surface: #fffcf7;
	--color-text: #2a211d;
	--color-muted: #6f625a;
	--color-border: #e6dccd;
	--color-accent: #8b2c1a;
	--color-accent-dark: #6e2213;
	--color-on-accent: #fff;
	--color-dark: #2b1d18;
	--color-on-dark: #f3e9dc;
	--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--radius: 1rem;
	--radius-small: 0.5rem;
	--page-width: 78rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--section-space: clamp(2.5rem, 7vw, 5.5rem);
	--header-height: 4.75rem;
	--shadow: 0 0.75rem 2rem rgb(43 29 24 / 0.08);
	color-scheme: light;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--color-bg);
	color: var(--color-text);
	font: 1.0625rem/1.6 var(--font-sans);
}

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

:where(a) {
	color: var(--color-accent);
	text-underline-offset: 0.2em;
}

:where(a:hover) {
	color: var(--color-accent-dark);
}

:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: 0.25rem;
}

.invisible {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

h1,
h2,
h3 {
	font-family: var(--font-serif);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
}

h2 {
	font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
}

p,
dl {
	text-wrap: pretty;
}

.rte > * + *,
.content-text > * + * {
	margin-top: 0.9em;
}

.rte h2 {
	margin-top: 1.6em;
	font-size: 1.35rem;
}

#wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
}

#container {
	flex: 1;
}

#header .inside,
#main .inside,
#footer .inside {
	width: min(100% - 2 * var(--gutter), var(--page-width));
	margin-inline: auto;
}

#header {
	z-index: 20;
	border-bottom: 1px solid var(--color-border);
	background: rgb(247 241 232 / 0.92);
	backdrop-filter: blur(10px);
}

#header .inside {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	min-height: var(--header-height);
	padding-block: 0.75rem;
}

.brand {
	display: flex;
	flex: 1 1 0;
	gap: 0.75rem;
	align-items: center;
	min-width: 0;
	color: var(--color-text);
	text-decoration: none;
	line-height: 1.1;
}

.brand:hover {
	color: var(--color-text);
}

.brand__logo {
	flex: none;
	width: clamp(2.75rem, 2.25rem + 2vw, 3.5rem);
	height: auto;
}

.brand__text {
	display: grid;
	min-width: 0;
}

.brand__name {
	overflow: hidden;
	margin-block: -0.1em -0.2em;
	padding-block: 0.1em 0.2em;
	color: var(--color-accent);
	font-family: var(--font-serif);
	font-size: clamp(1.05rem, 0.6rem + 2.6vw, 1.65rem);
	text-overflow: ellipsis;
	white-space: nowrap;
	font-style: italic;
	font-weight: 700;
}

.brand__tagline {
	overflow: hidden;
	color: var(--color-muted);
	font-size: clamp(0.62rem, 0.5rem + 0.6vw, 0.72rem);
	font-weight: 600;
	letter-spacing: clamp(0.06em, 2vw, 0.14em);
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

@media (max-width: 26rem) {
	.brand__tagline {
		display: none;
	}
}

.main-nav {
	order: 3;
	width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}

.main-nav ul {
	display: flex;
	gap: 0.25rem;
}

.main-nav a,
.main-nav strong {
	display: block;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	color: var(--color-text);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.main-nav a:hover {
	background: rgb(139 44 26 / 0.08);
	color: var(--color-accent);
}

.main-nav strong,
.main-nav .trail {
	background: rgb(139 44 26 / 0.1);
	color: var(--color-accent);
}

.header-order {
	flex: none;
	padding: 0.55rem 1.15rem;
	border-radius: 999px;
	background: var(--color-accent);
	color: var(--color-on-accent);
	font-weight: 600;
	text-decoration: none;
}

.header-order:hover {
	background: var(--color-accent-dark);
	color: var(--color-on-accent);
}

#main .inside {
	padding-block: clamp(1.5rem, 4vw, 3rem) var(--section-space);
}

.mod_article > * + * {
	margin-top: var(--section-space);
}

.mod_article > .content-headline + * {
	margin-top: 1.5rem;
}

.button a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.7rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.button--primary a {
	background: var(--color-accent);
	color: var(--color-on-accent);
}

.button--primary a:hover {
	background: var(--color-accent-dark);
	color: var(--color-on-accent);
}

.button--ghost a {
	border-color: currentColor;
	color: var(--color-text);
}

.button--ghost a:hover {
	color: var(--color-accent);
}

.button--light a {
	background: var(--color-surface);
	color: var(--color-accent);
}

.button--light a:hover {
	background: #fff;
	color: var(--color-accent-dark);
}

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

.hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(1.5rem, 5vw, 4rem);
}

.hero > * {
	flex: 1 1 22rem;
}

.hero__text {
	container-type: inline-size;
	display: grid;
	gap: 1.25rem;
}

.hero__text h1 {
	font-size: clamp(2.4rem, 11cqi, 4.4rem);
}

.lead {
	color: var(--color-muted);
	font-size: clamp(1.1rem, 4cqi, 1.3rem);
}

.hero__image img,
.rounded img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: calc(var(--radius) * 1.5);
	box-shadow: var(--shadow);
}

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1.25rem;
}

.feature {
	padding: 1.5rem;
	border-top: 4px solid var(--color-accent);
	border-radius: var(--radius-small);
	background: var(--color-surface);
	box-shadow: var(--shadow);
}

.feature h2 {
	margin-bottom: 0.5rem;
	font-size: 1.3rem;
}

.feature p {
	color: var(--color-muted);
}

.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: clamp(1.25rem, 4vw, 3rem);
	align-items: start;
}

.split--media {
	align-items: center;
}

.card {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
}

.card h2 {
	margin-bottom: 1rem;
}

.hours {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.35rem 1.5rem;
}

.hours dt {
	font-weight: 600;
}

.hours dd {
	color: var(--color-muted);
}

.cta {
	container-type: inline-size;
	display: grid;
	justify-items: center;
	gap: 1rem;
	padding: clamp(2rem, 6vw, 4rem) var(--gutter);
	border-radius: calc(var(--radius) * 1.5);
	background: var(--color-accent) radial-gradient(circle at 15% 20%, rgb(255 255 255 / 0.12), transparent 55%);
	color: var(--color-on-accent);
	text-align: center;
}

.cta h2 {
	font-size: clamp(1.8rem, 7cqi, 2.8rem);
}

.cta p {
	max-width: 36rem;
	opacity: 0.9;
}

.mod_article > .button {
	margin-top: 2rem;
}

.placeholder {
	padding: 0.75rem 1rem;
	border: 2px dashed var(--color-border);
	border-radius: var(--radius-small);
	color: var(--color-muted);
	font-size: 0.95rem;
}

.content-text:has(.placeholder) .rte {
	max-width: 46rem;
}

#footer {
	margin-top: auto;
	background: var(--color-dark);
	color: var(--color-on-dark);
	font-size: 0.95rem;
}

#footer .inside {
	display: grid;
	gap: 2rem;
	padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

#footer a {
	color: inherit;
}

#footer a:hover {
	color: #fff;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 2rem;
}

.footer-grid > div > * + * {
	margin-top: 0.75rem;
}

.footer-brand {
	color: #fff;
	font-family: var(--font-serif);
	font-size: 1.6rem;
	font-style: italic;
	font-weight: 700;
}

.footer-title {
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

#footer .hours dd {
	color: rgb(243 233 220 / 0.75);
}

.legal-nav {
	padding-top: 1.25rem;
	border-top: 1px solid rgb(243 233 220 / 0.15);
}

.legal-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

body:has(.gratorder:not(.is-wide) .gratorder-cartbar:not([hidden])) #footer .inside {
	padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
}

.webapp-teaser .gratorder-webapp {
	margin-inline: auto;
	border-color: var(--color-border);
	background: var(--color-surface);
}

#footer .module-gratorder-webapp .gratorder-webapp {
	color: var(--color-text);
}

#main .gratorder {
	--gratorder-background: var(--color-bg);
	--gratorder-surface: var(--color-surface);
	--gratorder-border: var(--color-border);
	--gratorder-text: var(--color-text);
	--gratorder-muted: var(--color-muted);
}

@media (min-width: 60rem) {
	#header {
		position: sticky;
		top: 0;
	}

	#header .inside {
		flex-wrap: nowrap;
	}

	.main-nav {
		order: 0;
		width: auto;
	}

	#main .gratorder {
		--gratorder-sticky-top: calc(var(--header-height) + 1px);
	}
}

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