/* Radiant Beauty: the "Garland" palette (Artic Daisy, Rose Blush, Grassland, Olive,
   Chartreuse, Berry, Plum and Espresso) */

:root {
	--paper: #f1ecce;
	--blush: #daa691;
	--grassland: #685c20;
	--olive: #4b5320;
	--chartreuse: #aab13f;
	--berry: #a84145;
	--plum: #48192d;
	--ink: #3e2624;
	--muted: #6b574a;
	--line: rgba(62, 38, 36, 0.2);

	--display: 'Fraunces', Georgia, serif;
	--body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
	--script: 'Mrs Saint Delafield', cursive;
	--whimsy: 'Mystery Quest', cursive;

	--gutter: clamp(1.25rem, 5vw, 4rem);
}

/* #region Base */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

/* Paper grain */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	opacity: 0.35;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .25 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
	color: inherit;
}

h1,
h2 {
	margin: 0;
	font-family: var(--display);
	font-weight: 300;
	font-variation-settings: 'SOFT' 100;
	line-height: 1;
	letter-spacing: -0.02em;
}

h1 em,
h2 em,
blockquote em {
	color: var(--berry);
	font-style: italic;
}

h2 {
	font-size: clamp(2.5rem, 6vw, 4.25rem);
}

p {
	margin: 0 0 1.2em;
}

.eyebrow {
	margin-bottom: 1.25rem;
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.note {
	margin: 0;
	color: var(--berry);
	font-family: var(--script);
	font-size: 2.6rem;
	line-height: 1;
}

.sun {
	display: inline-block;
	aspect-ratio: 850 / 480;
	width: 2.4rem;
	background: currentColor;
	-webkit-mask: url(../img/sun-bold.svg) center / contain no-repeat;
	mask: url(../img/sun-bold.svg) center / contain no-repeat;
}

/* Fine lines only hold up when the sun is drawn large */
.sun-large {
	-webkit-mask-image: url(../img/sun.svg);
	mask-image: url(../img/sun.svg);
}

/* #endregion */

/* #region Buttons */

.button {
	display: inline-block;
	padding: 0.95rem 2rem;
	border: 1px solid var(--olive);
	border-radius: 999px;
	background: var(--olive);
	color: var(--paper);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s;
}

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

.button-small {
	padding: 0.6rem 1.3rem;
	font-size: 0.72rem;
}

.button-outline {
	background: transparent;
	color: var(--olive);
}

.button-outline:hover {
	background: var(--olive);
	border-color: var(--olive);
	color: var(--paper);
}

.button-light {
	background: var(--paper);
	border-color: var(--paper);
	color: var(--plum);
}

.button-light:hover {
	background: transparent;
	border-color: var(--paper);
	color: var(--paper);
}

.text-link {
	color: var(--ink);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
	border-bottom: 1px solid var(--berry);
	padding-bottom: 0.2rem;
}

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

/* #endregion */

/* #region Header */

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem var(--gutter);
	border-bottom: 1px solid var(--line);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--display);
	font-size: 1.35rem;
	text-decoration: none;
}

.brand .sun {
	color: var(--berry);
}

.header-actions {
	display: flex;
	gap: 0.6rem;
}

.site-nav {
	display: none;
	gap: 2.5rem;
}

.site-nav a {
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-nav a:hover {
	color: var(--berry);
}

/* #endregion */

/* #region Hero */

.hero {
	display: grid;
	gap: 3rem;
	overflow-x: clip;
	padding: 3rem var(--gutter) 5rem;
}

.hero h1 {
	color: var(--plum);
	font-family: var(--whimsy);
	font-size: clamp(4rem, 12vw, 8.5rem);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: 0;
}

.hero h1 em {
	display: block;
	padding-left: 0.6em;
	font-style: normal;
}

.lede {
	max-width: 26rem;
	margin: 2rem 0 2.5rem;
	color: var(--muted);
	font-size: 1.15rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.75rem;
}

.hero-photo {
	position: relative;
	justify-self: center;
	width: min(100%, 27rem);
	margin: 0;
	padding-top: 4rem;
}

.hero-photo .sun-large {
	position: absolute;
	top: 0;
	left: 50%;
	width: 150%;
	transform: translateX(-50%);
	color: var(--berry);
	opacity: 0.55;
}

.arch {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4.2;
	object-fit: cover;
	object-position: center 20%;
	border-radius: 999px 999px 0 0;
}

.hero-photo .note {
	position: absolute;
	bottom: 2rem;
	left: -1.5rem;
	transform: rotate(-8deg);
	padding: 0.4rem 1rem 0.2rem;
	background: var(--chartreuse);
	color: var(--ink);
}

/* #endregion */

/* #region About */

.about {
	display: grid;
	gap: 3rem;
	padding: 5rem var(--gutter);
	background: var(--blush);
}

.about-text {
	max-width: 36rem;
}

.signature {
	margin: 0;
	color: var(--berry);
	font-family: var(--script);
	font-size: 3.5rem;
	line-height: 1;
}

.services {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.services li {
	flex: 1 1 50%;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--line);
	font-family: var(--display);
	font-size: 1.35rem;
	font-style: italic;
}

/* #endregion */

/* #region Products */

.products {
	padding: 6rem var(--gutter);
	background: var(--grassland);
	color: var(--paper);
}

.products .eyebrow,
.products .product p {
	color: rgba(241, 236, 206, 0.85);
}

.products h2 em {
	color: var(--blush);
}

.products .text-link {
	color: var(--paper);
	border-color: var(--blush);
}

.products .text-link:hover {
	color: var(--blush);
}

.section-heading {
	margin-bottom: 3.5rem;
}

.product-list {
	display: grid;
	gap: 4rem;
}

.product {
	padding-top: 2.5rem;
	border-top: 1px solid rgba(241, 236, 206, 0.4);
}

.shop {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	margin-top: 4.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid rgba(241, 236, 206, 0.4);
}

.shop p {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-style: italic;
	font-weight: 300;
}

.products .button-light {
	color: var(--grassland);
}

.products .button-light:hover {
	color: var(--paper);
}

.product-logo {
	display: flex;
	align-items: flex-end;
	height: 7rem;
	margin-bottom: 2rem;
}

.product-logo img {
	width: auto;
	max-height: 100%;
}

.product-logo .wordmark {
	width: min(100%, 17rem);
	margin-bottom: 0.5rem;
}

/* #endregion */

/* #region Instagram */

.instagram {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem var(--gutter) 6rem;
	text-align: center;
}

.instagram h2 {
	font-size: clamp(1.6rem, 5vw, 3rem);
	overflow-wrap: anywhere;
}

.instagram h2 a {
	text-decoration: none;
}

.instagram h2 a:hover {
	color: var(--berry);
}

.instagram-feed {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
	width: 100%;
	margin-bottom: 3rem;
}

.instagram-feed:empty {
	display: none;
}

.instagram-feed a {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.instagram-feed img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s, filter 0.5s;
}

.instagram-feed a:hover img {
	transform: scale(1.04);
	filter: sepia(0.25);
}

.instagram-feed .is-video::after {
	content: '';
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	border-style: solid;
	border-width: 0.45rem 0 0.45rem 0.75rem;
	border-color: transparent transparent transparent #fff;
	filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
}

/* #endregion */

/* #region Visit */

.visit {
	display: grid;
	gap: 3rem;
	padding: 5rem var(--gutter);
	background: var(--plum);
	color: var(--paper);
}

.visit .eyebrow {
	color: var(--blush);
}

.visit h2 em {
	color: var(--chartreuse);
}

.visit address {
	margin: 2rem 0;
	font-style: normal;
	font-size: 1.15rem;
}

.hours {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.4rem 2rem;
	max-width: 22rem;
	margin: 0 0 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(241, 236, 206, 0.3);
}

.hours dt {
	font-weight: 500;
}

.hours dd {
	margin: 0;
}

.map {
	width: 100%;
	min-height: 22rem;
	border: 0;
	filter: sepia(0.35) saturate(0.8);
}

/* #endregion */

/* #region Footer */

.site-footer {
	padding: 4rem var(--gutter) 3rem;
	text-align: center;
}

.site-footer .sun {
	width: 4rem;
	color: var(--berry);
}

.footer-name {
	margin: 0.5rem 0 1rem;
	font-family: var(--display);
	font-size: 1.6rem;
}

.site-footer a {
	text-decoration: none;
}

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

.copyright {
	color: var(--muted);
	font-size: 0.8rem;
}

/* #endregion */

/* #region Larger screens */

/* Small phones: the sun alone carries the brand so both header buttons fit */
@media (max-width: 479px) {
	.brand-name {
		display: none;
	}

	.button-small {
		padding: 0.6rem 1rem;
	}
}

@media (min-width: 700px) {
	.instagram-feed {
		grid-template-columns: repeat(4, 1fr);
	}

	.services li {
		flex-basis: 25%;
	}
}

@media (min-width: 960px) {
	.site-nav {
		display: flex;
	}

	.hero {
		grid-template-columns: 1.2fr 1fr;
		align-items: end;
		padding-top: 4rem;
	}

	.hero-text {
		padding-bottom: 6rem;
	}

	.about {
		grid-template-columns: 1fr 1fr;
		column-gap: 6rem;
		padding: 7rem var(--gutter);
	}

	.about-heading h2 {
		font-size: clamp(3rem, 6vw, 5rem);
	}

	.services {
		grid-column: 1 / -1;
	}

	.product-list {
		grid-template-columns: repeat(3, 1fr);
		column-gap: 4rem;
	}

	.visit {
		grid-template-columns: 1fr 1.4fr;
		column-gap: 5rem;
		align-items: center;
		padding: 7rem var(--gutter);
	}

	.map {
		height: 100%;
		min-height: 30rem;
	}
}

@media (min-width: 1400px) {
	.hero,
	.about,
	.products,
	.instagram,
	.visit {
		padding-left: calc((100vw - 1280px) / 2);
		padding-right: calc((100vw - 1280px) / 2);
	}
}

/* #endregion */
