/* ==========================================================================
   Nature Jewelry — base styles
   Colours are sampled from the logo and the pendant photos.
   Layout uses logical properties throughout, so it mirrors for Hebrew.
   ========================================================================== */

/* Fonts (self-hosted, Latin + Hebrew) ------------------------------------ */

@font-face {
	font-family: "Frank Ruhl Libre";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url(../fonts/frank-ruhl-libre-latin-wght-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Frank Ruhl Libre";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url(../fonts/frank-ruhl-libre-latin-ext-wght-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Frank Ruhl Libre";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url(../fonts/frank-ruhl-libre-hebrew-wght-normal.woff2) format("woff2");
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
	font-family: "Assistant";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(../fonts/assistant-latin-wght-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Assistant";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(../fonts/assistant-latin-ext-wght-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Assistant";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(../fonts/assistant-hebrew-wght-normal.woff2) format("woff2");
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* Tokens ----------------------------------------------------------------- */

:root {
	--paper: #fbebdc;      /* the logo's paper ground */
	--card: #fffaf4;       /* label stock, form fields */
	--sand: #f3dfca;       /* panels */
	--stone: #dcc3a8;      /* borders */
	--bark: #3b2616;       /* text */
	--bark-soft: #6e523c;  /* secondary text */
	--gold: #ab7221;       /* the logo's foil lettering */
	--gold-deep: #835322;  /* links */
	--moss: #46563e;       /* actions */
	--moss-deep: #333f2d;
	--celadon: #b9cbb3;    /* the green leaf */

	--serif: "Frank Ruhl Libre", "Times New Roman", serif;
	--sans: "Assistant", "Helvetica Neue", Arial, sans-serif;

	--wrap: 76rem;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--section: clamp(3.5rem, 8vw, 6.5rem);
}

/* Base ------------------------------------------------------------------- */

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

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

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	background: var(--paper);
	color: var(--bark);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.15;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.25rem, 5vw, 3rem);
	font-weight: 300;
	letter-spacing: -0.01em;
}

h2 {
	font-size: clamp(1.75rem, 3.4vw, 2.25rem);
}

h3 {
	font-size: 1.3125rem;
	font-weight: 500;
}

p,
ul,
ol,
dl,
blockquote,
table {
	margin: 0 0 1.25em;
}

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

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

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

::selection {
	background: var(--celadon);
	color: var(--bark);
}

/* Short pages (empty cart, 404) still push the footer to the window's edge. */
.site-main {
	flex: 1 0 auto;
}

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

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

.skip-link {
	position: absolute;
	inset-block-start: -10rem;
	inset-inline-start: 1rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--bark);
	color: var(--paper);
}

.skip-link:focus {
	inset-block-start: 1rem;
	color: var(--paper);
}

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

/* Buttons and forms ------------------------------------------------------ */

/* .wp-block-button__link is the button block from the editor; :not() keeps
   a colour picked there. */
.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button .wp-block-button__link:not(.has-background) {
	display: inline-block;
	padding: 0.8em 1.7em;
	border: 1px solid var(--moss);
	border-radius: 999px;
	background: var(--moss);
	color: var(--card);
	font: 600 1rem/1.3 var(--sans);
	text-decoration: none;
	cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button .wp-block-button__link:not(.has-background):hover {
	border-color: var(--moss-deep);
	background: var(--moss-deep);
	color: var(--card);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 0.7em 0.9em;
	border: 1px solid var(--stone);
	border-radius: 4px;
	background: var(--card);
	color: var(--bark);
	font: inherit;
}

label {
	font-weight: 600;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	margin-block: 1.5rem;
}

.search-form label {
	flex: 1;
}

/* Header ----------------------------------------------------------------- */

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-block: 1.25rem;
}

.site-brand,
.custom-logo-link {
	display: block;
	flex: none;
	margin-inline-end: auto;
}

.site-brand img,
.custom-logo-link img {
	width: auto;
	height: 4.25rem;
}

.site-nav ul {
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a,
.cart-link {
	padding-block: 0.4rem;
	color: var(--bark);
	font-weight: 500;
	text-decoration: none;
}

.site-nav a:hover,
.cart-link:hover,
.site-nav .current-menu-item > a {
	box-shadow: inset 0 -1px 0 var(--gold);
}

.cart-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-inline-start: 1rem;
}

.nj-cart-count {
	display: inline-grid;
	place-items: center;
	min-width: 1.6rem;
	height: 1.6rem;
	padding-inline: 0.4rem;
	border-radius: 999px;
	background: var(--sand);
	font-size: 0.875rem;
	font-weight: 600;
}

.nav-toggle {
	display: none;
	padding: 0.5em 1.1em;
	border-color: var(--stone);
	background: transparent;
	color: var(--bark);
}

.nav-toggle:hover {
	border-color: var(--bark);
	background: transparent;
	color: var(--bark);
}

@media (max-width: 47.99rem) {
	.site-header__inner {
		flex-wrap: wrap;
		gap: 0.75rem;
	}

	.site-brand img,
	.custom-logo-link img {
		height: 3.25rem;
	}

	.nav-toggle {
		display: inline-block;
		order: 2;
	}

	.cart-link {
		order: 1;
		margin-inline-start: 0;
	}

	.site-nav {
		display: none;
		order: 3;
		flex-basis: 100%;
	}

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

	.site-nav ul {
		flex-direction: column;
		gap: 0;
		border-block-start: 1px solid var(--stone);
	}

	.site-nav a {
		display: block;
		padding-block: 0.85rem;
		border-block-end: 1px solid var(--stone);
	}
}

/* Specimen label ----------------------------------------------------------
   The one recurring device: a small card that says what a pendant is made
   of, like the label glued to a pressed-plant sheet. Rows come from the
   product's attributes.
   ------------------------------------------------------------------------ */

.nj-label {
	max-width: 21rem;
	padding: 1.1rem 1.25rem 1rem;
	border: 1px solid var(--bark);
	border-radius: 2px;
	background: var(--card);
	box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--stone);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.nj-label__name {
	margin: 0 0 0.7rem;
	padding-block-end: 0.6rem;
	border-block-end: 1px solid var(--bark);
	font-family: var(--serif);
	font-size: 1.1875rem;
	font-weight: 500;
	line-height: 1.2;
}

.nj-label__name a {
	color: inherit;
	text-decoration: none;
}

.nj-label__name a:hover {
	text-decoration: underline;
}

.nj-label__rows {
	margin: 0;
}

.nj-label__rows > div {
	display: grid;
	grid-template-columns: 5.25rem 1fr;
	gap: 0.75rem;
	padding-block: 0.3rem;
	border-block-end: 1px dotted var(--stone);
}

.nj-label__rows dt {
	color: var(--bark-soft);
}

.nj-label__rows dd {
	margin: 0;
	font-family: var(--serif);
	font-size: 1rem;
}

.nj-label__foot {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.75rem 0 0;
	color: var(--moss);
	font-weight: 600;
}

.nj-label__sold {
	color: var(--bark-soft);
}

.nj-label__price {
	color: var(--bark);
	font-family: var(--serif);
	font-weight: 500;
}

/* Home: hero ------------------------------------------------------------- */

.hero {
	padding-block: clamp(1.5rem, 4vw, 3.5rem) var(--section);
}

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

.hero__text h1 {
	margin-block-end: 0.35em;
	font-size: clamp(2.75rem, 7.2vw, 5.5rem);
	font-weight: 300;
	line-height: 0.98;
	letter-spacing: -0.02em;
}

.hero__lede {
	max-width: 30rem;
	margin-block-end: 2rem;
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--bark-soft);
}

.hero__media {
	position: relative;
}

.hero__photo {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--sand);
}

.hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
}

/* The label overlaps only the bottom edge of the photo, so it never hides
   the pendant whichever product is featured. */

.hero__media .nj-label {
	position: relative;
	width: calc(100% - 1.5rem);
	max-width: none;
	margin-block-start: -3.5rem;
	margin-inline-start: calc(-1 * clamp(0.75rem, 2.5vw, 2rem));
	transform: rotate(-1deg);
}

[dir="rtl"] .hero__media .nj-label {
	transform: rotate(1deg);
}

.hero__media .nj-label__rows {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1.5rem;
}

.hero__media .nj-label__rows > div {
	grid-template-columns: 1fr;
	gap: 0;
	padding-block: 0.4rem;
}

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

/* Home: sections --------------------------------------------------------- */

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

.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	margin-block-end: clamp(1.75rem, 4vw, 3rem);
}

.section__head h2 {
	margin: 0;
}

.hero + .section {
	padding-block-start: 0;
}

/* The wide photo with one sentence on a moss panel. */

.band {
	position: relative;
	display: grid;
	align-items: end;
	min-height: clamp(24rem, 52vw, 40rem);
}

.band__photo,
.band__inner {
	grid-area: 1 / 1;
}

.band__photo {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.band__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.band__inner {
	position: relative;
	display: flex;
	justify-content: flex-end;
}

.band__text {
	max-width: 27rem;
	margin: 0;
	padding: clamp(1.75rem, 4vw, 3rem);
	background: var(--moss);
	color: var(--card);
	font-family: var(--serif);
	font-size: clamp(1.5rem, 2.8vw, 2.125rem);
	font-weight: 300;
	line-height: 1.22;
	text-wrap: balance;
}

@media (max-width: 47.99rem) {
	.band {
		display: block;
		min-height: 0;
	}

	.band__photo {
		position: static;
		aspect-ratio: 4 / 3;
	}

	.band__inner {
		padding-inline: 0;
	}

	.band__text {
		max-width: none;
	}
}

.care {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem clamp(1.5rem, 4vw, 4rem);
}

.care h3 {
	margin-block-end: 0.4em;
}

.care p {
	margin: 0;
	color: var(--bark-soft);
}

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

.about {
	background: var(--sand);
}

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

.about__logo img {
	width: 100%;
	max-width: 24rem;
	margin-inline: auto;
	border-radius: 50%;
}

.about__text p {
	max-width: 34rem;
	font-size: 1.1875rem;
}

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

	.about__logo img {
		max-width: 15rem;
	}
}

/* Pages and posts -------------------------------------------------------- */

.page-body {
	padding-block: clamp(2rem, 5vw, 4rem) var(--section);
}

.page-title {
	margin-block-end: 0.75em;
}

.entry-content {
	font-size: 1.125rem;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2 {
	margin-block-start: 1.75em;
	font-size: 1.75rem;
}

.entry-content h3 {
	margin-block-start: 1.5em;
}

/* Only images placed in the text get breathing room; images inside blocks
   such as the cart and checkout keep the block's own spacing. */
.entry-content > figure,
.entry-content > .wp-block-image,
.entry-content > p > img:only-child {
	margin-block: 2rem;
}

.entry-content .alignwide,
.entry-content .alignfull {
	max-width: none;
}

.entry {
	padding-block: 1.75rem;
	border-block-end: 1px solid var(--stone);
}

.entry__title {
	margin: 0;
	font-size: 1.75rem;
}

.entry__title a {
	color: inherit;
	text-decoration: none;
}

.entry__title a:hover {
	text-decoration: underline;
}

.entry__date {
	margin: 0.25rem 0 0.75rem;
	color: var(--bark-soft);
	font-size: 0.9375rem;
}

.nav-links {
	display: flex;
	gap: 1rem;
	margin-block-start: 2rem;
}

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

.site-footer {
	border-block-start: 1px solid var(--stone);
	background: var(--sand);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.5rem 3rem;
	align-items: end;
	padding-block: 3rem 2rem;
}

.site-footer__brand img {
	width: auto;
	height: 5.5rem;
}

.site-footer__brand p {
	margin: 0.75rem 0 0;
	color: var(--bark-soft);
}

.site-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav a {
	color: var(--bark);
}

.site-footer__legal {
	grid-column: 1 / -1;
	margin: 0;
	padding-block-start: 1.25rem;
	border-block-start: 1px solid var(--stone);
	color: var(--bark-soft);
	font-size: 0.9375rem;
}

@media (max-width: 47.99rem) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		align-items: start;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.button,
	button,
	input[type="submit"] {
		transition: background-color 0.15s, border-color 0.15s;
	}
}
