/* ==========================================================================
   Lilla Blomsterhörnan
   Palette: moss green ink on a pale leaf ground, with peony pink for actions.
   ========================================================================== */

:root {
	--moss: #22392c;
	--moss-soft: #3a5544;
	--stem: #4f7348;
	--peony: #a8325a;
	--peony-dark: #8a2448;
	--petal: #f7dde4;
	--mist: #edf2ea;
	--white: #ffffff;
	--line: #c9d6c4;

	--font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Type scale, ratio ~1.25 */
	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.3125rem;
	--step-2: 1.625rem;
	--step-3: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
	--step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

	--gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
	--section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
	--radius: 6px;
}

/* Base
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--mist);
	color: var(--moss);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
}

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

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

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

a:hover {
	color: var(--peony-dark);
	text-decoration-thickness: 2px;
}

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

address {
	font-style: normal;
}

.wrap {
	width: 100%;
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--narrow {
	max-width: 46rem;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--moss);
	color: var(--white);
	border-radius: var(--radius);
}

.skip-link:focus {
	top: 1rem;
}

/* Buttons
   ========================================================================== */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.7rem 1.4rem;
	border: 2px solid var(--peony);
	border-radius: var(--radius);
	background: var(--peony);
	color: var(--white);
	font-weight: 600;
	font-size: var(--step-0);
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
	background: var(--peony-dark);
	border-color: var(--peony-dark);
	color: var(--white);
	text-decoration: none;
}

.button--ghost {
	background: transparent;
	border-color: var(--moss);
	color: var(--moss);
}

.button--ghost:hover {
	background: var(--moss);
	border-color: var(--moss);
	color: var(--white);
}

.button--small {
	min-height: 2.5rem;
	padding: 0.45rem 1rem;
	font-size: var(--step--1);
}

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

.site-header {
	background: var(--mist);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 4.5rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-right: auto;
	color: var(--moss);
	text-decoration: none;
}

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

.brand__logo {
	width: 2.75rem;
	height: 2.75rem;
	object-fit: contain;
}

.brand__name {
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-weight: 600;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-nav__list {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	color: var(--moss);
	text-decoration: none;
	font-weight: 500;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
	color: var(--peony);
	text-decoration: underline;
}

.nav-toggle {
	display: none;
}

@media (max-width: 52rem) {
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		min-height: 2.75rem;
		padding: 0.4rem 0.8rem;
		border: 1px solid var(--moss);
		border-radius: var(--radius);
		background: transparent;
		color: var(--moss);
		font: inherit;
		font-weight: 600;
		cursor: pointer;
	}

	.nav-toggle__bars,
	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		display: block;
		width: 1.1rem;
		height: 2px;
		background: currentColor;
		position: relative;
	}

	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }

	.site-header__inner {
		flex-wrap: wrap;
	}

	.site-nav {
		display: none;
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding-bottom: 1.25rem;
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.site-nav__list a {
		display: block;
		padding: 0.75rem 0;
		border-top: 1px solid var(--line);
	}

	.site-nav__call {
		min-height: 3rem;
	}
}

/* Hero
   ========================================================================== */

.hero {
	padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
}

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

.hero__title {
	font-size: var(--step-4);
	letter-spacing: -0.015em;
	max-width: 14ch;
	margin-bottom: 0.4em;
}

.hero__lead {
	font-size: var(--step-1);
	line-height: 1.5;
	max-width: 36ch;
	color: var(--moss-soft);
	margin-bottom: 2rem;
}

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

/* Photo with the "Idag" panel tucked over its lower edge. */
.hero__side.has-photo {
	position: relative;
	padding-bottom: 10rem;
}

.hero__photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 14px 14px 64px 14px;
}

.hero__side.has-photo .today {
	position: absolute;
	left: -2.5rem;
	right: 3rem;
	bottom: 0;
	box-shadow: 0 18px 40px -18px rgba(34, 57, 44, 0.55);
}

@media (max-width: 52rem) {
	.hero__photo {
		aspect-ratio: 4 / 3;
	}

	.hero__side.has-photo {
		padding-bottom: 0;
	}

	.hero__side.has-photo .today {
		position: relative;
		left: auto;
		right: auto;
		margin: -3rem 1rem 0;
	}
}

/* The "Idag" panel: the shop's sign, with a hand-drawn stem. */
.today {
	position: relative;
	overflow: hidden;
	padding: clamp(1.75rem, 1rem + 3vw, 2.75rem);
	padding-right: clamp(6rem, 4rem + 6vw, 9rem);
	background: var(--moss);
	color: var(--white);
	border-radius: 14px 14px 14px 64px;
}

.today__stem {
	position: absolute;
	right: clamp(0.5rem, 0rem + 1.5vw, 1.5rem);
	bottom: -0.5rem;
	width: clamp(4.5rem, 3rem + 5vw, 7rem);
	height: auto;
	fill: none;
	stroke: var(--petal);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.today__stem .bloom {
	fill: var(--peony);
	stroke: var(--petal);
}

.today__title {
	font-size: var(--step-1);
	font-weight: 500;
	color: var(--petal);
	margin-bottom: 0.25rem;
}

.today__status {
	font-family: var(--font-display);
	font-size: var(--step-3);
	font-weight: 600;
	line-height: 1.15;
	margin-bottom: 1.5rem;
}

.today__address {
	margin: 0;
	color: #d6e2d2;
}

.today__address a {
	color: var(--white);
}

.today__address a:hover {
	color: var(--petal);
}

/* One orchestrated moment: the stem draws itself once on load. */
@media (prefers-reduced-motion: no-preference) {
	.today__stem .draw {
		stroke-dasharray: 400;
		stroke-dashoffset: 400;
		animation: draw 1.6s ease-out 0.2s forwards;
	}

	.today__stem .bloom {
		fill-opacity: 0;
		animation: draw 1.2s ease-out 1.1s forwards, bloom 0.6s ease-out 1.7s forwards;
	}
}

@keyframes draw {
	to { stroke-dashoffset: 0; }
}

@keyframes bloom {
	to { fill-opacity: 1; }
}

@media (max-width: 52rem) {
	.hero__grid {
		grid-template-columns: 1fr;
	}
}

/* Sections
   ========================================================================== */

.section {
	padding-block: var(--section);
}

.section--petal {
	background: var(--petal);
}

.section__title {
	font-size: var(--step-3);
	margin-bottom: 1.75rem;
}

.note {
	font-size: var(--step--1);
	color: var(--moss-soft);
	margin-top: 1.5rem;
	margin-bottom: 0;
}

/* Range */

.range {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 0 2.5rem;
	margin: 0;
}

.range__item {
	padding-block: 1.25rem 1.5rem;
	border-top: 2px solid var(--stem);
}

.range dt {
	font-family: var(--font-display);
	font-size: var(--step-2);
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 0.4rem;
}

.range dd {
	margin: 0;
	max-width: 34ch;
	color: var(--moss-soft);
}

/* Steps: a real sequence, so it is numbered. */

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 2rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	counter-increment: step;
}

.steps li::before {
	content: counter(step);
	display: block;
	font-family: var(--font-display);
	font-size: var(--step-4);
	font-weight: 600;
	line-height: 1;
	color: var(--peony);
	margin-bottom: 0.75rem;
}

.steps h3 {
	font-size: var(--step-2);
}

.steps p {
	margin: 0;
	max-width: 32ch;
}

/* Visit */

.visit {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	gap: 3rem 4rem;
}

.hours {
	width: 100%;
	max-width: 26rem;
	border-collapse: collapse;
	font-size: var(--step-1);
}

.hours th,
.hours td {
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	font-weight: 400;
}

.hours td {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.hours tr.is-today th,
.hours tr.is-today td {
	font-weight: 700;
	color: var(--peony);
}

.contact {
	font-size: var(--step-1);
	margin-bottom: 1.5rem;
}

.contact p {
	margin-bottom: 0.35rem;
}

/* Pages
   ========================================================================== */

.page-content {
	padding-block: var(--section);
}

.page-title {
	font-size: var(--step-4);
	margin-bottom: 1.5rem;
}

.prose {
	max-width: 65ch;
}

.prose h2 {
	font-size: var(--step-2);
	margin-top: 2em;
}

.prose h3 {
	font-size: var(--step-1);
	margin-top: 1.5em;
}

.post-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.post-list li {
	padding-block: 1.25rem;
	border-top: 1px solid var(--line);
}

.post-list h2 {
	font-size: var(--step-2);
}

.post-list h2 a {
	color: var(--moss);
	text-decoration: none;
}

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

.site-footer {
	background: var(--moss);
	color: #d6e2d2;
	padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
	font-size: var(--step--1);
}

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

.site-footer a:hover {
	color: var(--petal);
}

.site-footer :focus-visible {
	outline-color: var(--petal);
}

.site-footer p {
	margin-bottom: 0.3rem;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: 2rem;
	padding-bottom: 2.5rem;
}

.site-footer__name {
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-weight: 600;
	color: var(--white);
}

.site-footer__hours,
.site-footer__social,
.site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__hours li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	max-width: 15rem;
	margin-bottom: 0.3rem;
	font-variant-numeric: tabular-nums;
}

.site-footer__social li {
	margin-bottom: 0.3rem;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.25rem;
	border-top: 1px solid var(--moss-soft);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

/* Reduced motion
   ========================================================================== */

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

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