/*
Theme Name: Royal Tea
Theme URI: https://www.royaltea.eu
Author: Emro Aziatica BV
Description: A luxurious, catalogue-only theme for Royal Tea – fine tea mugs, tea sets and tea accessories. No cart, no prices, no stock information, no checkout: just the collection, by chapter.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: Proprietary
Text Domain: royal-tea
*/

/* ------------------------------------------------------------------
 * Fonts (self-hosted, no external requests)
 * ---------------------------------------------------------------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/playfair-display-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/playfair-display-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/playfair-display-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/lato-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/lato-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/lato-700-normal.woff2") format("woff2"); }

/* ------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------- */
:root {
	--ivory: #ffffff;
	--cream: #ffffff;
	--white: #ffffff;
	--ink: #14201a;
	--muted: #67706a;
	--line: #ddd6c4;

	--green-900: #072a1a;
	--green-800: #0a3b24;
	--green-600: #0b6b3f; /* brand green, taken from the logo file */
	--green-500: #0e8a4b;
	--gold: #b8975a;
	--gold-light: #d8bf86;

	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Lato", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1280px;
	--wrap-narrow: 760px;
	--gutter: clamp(20px, 4vw, 56px);
	--ease: cubic-bezier(.2, .6, .2, 1);
}

/* ------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--ivory); color: var(--ink);
	font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.75;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-600); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--green-600); color: #fff; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green-800); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

.eyebrow {
	font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
	color: var(--muted); margin: 0 0 1.4em;
}
.eyebrow a { text-decoration: none; }
.eyebrow--light { color: rgba(255, 255, 255, .65); }
.eyebrow--gold { color: var(--gold); }

.notice { padding: 1.2em 1.4em; border: 1px solid var(--line); background: var(--white); color: var(--muted); }

.button {
	display: inline-block; font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
	text-decoration: none; padding: 1.15em 2.4em; border: 1px solid var(--green-800); color: var(--green-800);
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.button:hover { background: var(--green-800); color: #fff; }
.button--light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.button--light:hover { background: #fff; color: var(--green-800); border-color: #fff; }
.button--gold { border-color: var(--gold); background: var(--gold); color: var(--green-900); }
.button--gold:hover { background: transparent; color: var(--gold-light); border-color: var(--gold-light); }

/* ------------------------------------------------------------------
 * Header (white wordmark on brand green)
 * ---------------------------------------------------------------- */
.site-header { background: var(--green-800); color: #fff; position: relative; z-index: 20; border-bottom: 1px solid rgba(216, 191, 134, .35); }
.site-header a:hover { color: var(--gold-light); }
.site-header__inner {
	max-width: var(--wrap); margin-inline: auto; padding: 14px var(--gutter);
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.site-header__logo { display: block; color: #fff; line-height: 0; justify-self: center; }
.site-header__logo .logo { height: 58px; width: auto; }
.nav { display: flex; gap: clamp(16px, 2.6vw, 36px); align-items: center; flex-wrap: wrap; }
.nav a {
	font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
	position: relative; padding: 6px 0;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold-light); transition: right .35s var(--ease); }
.nav a:hover::after { right: 0; }
.nav--right { justify-content: flex-end; }

.search { position: relative; }
.search summary { list-style: none; cursor: pointer; padding: 6px; display: block; line-height: 0; }
.search summary::-webkit-details-marker { display: none; }
.search__form {
	position: absolute; right: 0; top: calc(100% + 14px); width: min(360px, 86vw);
	background: var(--white); color: var(--ink); border: 1px solid var(--line); padding: 14px; box-shadow: 0 20px 40px rgba(7, 42, 26, .18);
}
.search__form input[type="search"] {
	width: 100%; border: 0; border-bottom: 1px solid var(--green-800); background: transparent; padding: 10px 2px;
	font: inherit; font-weight: 300; color: var(--ink); border-radius: 0; outline: none;
}

/* ------------------------------------------------------------------
 * Hero – a glow of brand green, like the logo
 * ---------------------------------------------------------------- */
.hero {
	background: radial-gradient(ellipse 80% 90% at 50% 100%, var(--green-500) 0%, var(--green-600) 38%, var(--green-800) 100%);
	color: #fff; text-align: center; position: relative; overflow: hidden;
	padding: clamp(80px, 12vw, 170px) var(--gutter) clamp(80px, 11vw, 150px);
}
.hero::before {
	content: ""; position: absolute; inset: clamp(14px, 2vw, 28px); border: 1px solid rgba(216, 191, 134, .45); pointer-events: none;
}
.hero__inner { position: relative; max-width: 880px; margin-inline: auto; }
.hero__title { font-weight: 400; font-size: clamp(38px, 5.8vw, 80px); line-height: 1.08; letter-spacing: -.005em; margin-bottom: .5em; }
.hero__lead { max-width: 34em; margin: 0 auto 2.4em; font-size: 18px; color: rgba(255, 255, 255, .82); }

/* ------------------------------------------------------------------
 * Sections & chapters
 * ---------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--tight { padding: clamp(32px, 4.5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.section--tint { background: var(--cream); }
.section__subtitle { font-weight: 400; font-size: clamp(26px, 3vw, 36px); margin-bottom: 1.2em; }

.chapter { padding: clamp(64px, 8vw, 120px) 0; }
.chapter--alt { background: var(--cream); }
.chapter__head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 64px); }
.chapter__no { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); margin: 0 0 .4em; }
.chapter__title { font-size: clamp(36px, 4.8vw, 60px); position: relative; padding-bottom: .6em; }
.chapter__title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 1px; background: var(--gold); transform: translateX(-50%); }
.chapter__lead { margin-top: 1.4em; color: #3c4a42; }
.chapter__more { text-align: center; margin: clamp(36px, 5vw, 60px) 0 0; }

/* Category tiles (used on category pages with sub-categories) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.tiles--small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { display: block; text-decoration: none; color: var(--ink); }
.tile__media { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--white); overflow: hidden; padding: 8%; border: 1px solid transparent; transition: border-color .4s var(--ease); }
.tile__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.tile:hover .tile__media { border-color: var(--gold); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__body { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.tile__title { font-family: var(--serif); font-size: clamp(21px, 2vw, 27px); line-height: 1.2; }
.tile__meta { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 40px) clamp(16px, 2vw, 28px); }
.grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: block; text-decoration: none; color: var(--ink); }
.card__media { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--white); padding: 9%; overflow: hidden; border: 1px solid transparent; transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.card:hover .card__media { border-color: var(--gold); box-shadow: 0 18px 36px -22px rgba(7, 42, 26, .35); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: block; padding-top: 16px; text-align: center; }
.card__title { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.card__meta { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--line); }
.placeholder__mark { width: 60%; height: auto; }

/* Pagination */
.navigation.pagination { margin-top: clamp(40px, 5vw, 72px); }
.nav-links { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px; text-decoration: none; border: 1px solid transparent; font-size: 15px; }
a.page-numbers:hover { border-color: var(--line); }
.page-numbers.current { border-color: var(--gold); color: var(--green-800); }

/* ------------------------------------------------------------------
 * Page heads & breadcrumbs
 * ---------------------------------------------------------------- */
.page-head { padding: clamp(36px, 5vw, 72px) 0 clamp(8px, 2vw, 24px); }
.page-head__title { font-weight: 400; font-size: clamp(36px, 5vw, 68px); line-height: 1.1; }
.page-head__lead { margin-top: 1.4em; max-width: 36em; font-size: 18px; color: #3c4a42; }
.page-head--story { padding-bottom: clamp(24px, 4vw, 56px); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-bottom: 1.8em; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { margin: 0 .9em; color: var(--gold); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ------------------------------------------------------------------
 * Product page
 * ---------------------------------------------------------------- */
.product { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 8vw, 110px); }
.product__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.product__main { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--white); padding: 7%; border: 1px solid var(--line); }
.product__main img { width: 100%; height: 100%; object-fit: contain; }
.product__thumbs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.product__thumb { display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--white); border: 1px solid var(--line); padding: 6px; cursor: pointer; }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product__thumb.is-active, .product__thumb:hover { border-color: var(--gold); }
.product__info { padding-top: clamp(0px, 2vw, 24px); }
.product__title { font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.12; margin-bottom: .4em; }
.product__sku { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-bottom: 1.6em; margin-bottom: 1.8em; border-bottom: 1px solid var(--gold); }
.product__short { font-size: 19px; color: #3c4a42; }
.product__back { margin-top: 2.4em; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.product__back a { text-decoration: none; }
.product__back a:hover { text-decoration: underline; }

.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose a { color: var(--green-600); }

/* ------------------------------------------------------------------
 * Our Story
 * ---------------------------------------------------------------- */
.story { padding: clamp(16px, 3vw, 40px) 0 clamp(56px, 8vw, 112px); }
.story__chapter { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding: clamp(32px, 4.5vw, 60px) 0; border-top: 1px solid var(--line); }
.story__chapter:last-child { border-bottom: 1px solid var(--line); }
.story__no { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--gold); }
.story__chapter h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: .6em; }
.story__chapter p { color: #3c4a42; }

/* ------------------------------------------------------------------
 * Dark band & footer
 * ---------------------------------------------------------------- */
.band {
	background: radial-gradient(ellipse 70% 120% at 50% 0%, var(--green-600) 0%, var(--green-800) 60%, var(--green-900) 100%);
	color: #fff; text-align: center; padding: clamp(64px, 9vw, 130px) 0;
}
.band__inner { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }
.band__title { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.14; margin-bottom: .55em; }
.band__lead { color: rgba(255, 255, 255, .78); max-width: 34em; margin: 0 auto 2.2em; font-size: 18px; }

.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .78); border-top: 1px solid rgba(216, 191, 134, .35); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer__inner { max-width: var(--wrap); margin-inline: auto; padding: clamp(48px, 6vw, 88px) var(--gutter); display: grid; grid-template-columns: 1.2fr 1.5fr 1fr; gap: clamp(32px, 5vw, 80px); }
.site-footer__brand { color: #fff; }
.logo--footer { height: 96px; width: auto; margin-bottom: 18px; }
.site-footer__tagline { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.35; color: rgba(255, 255, 255, .78); max-width: 14em; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.site-footer__col li { margin-bottom: .55em; break-inside: avoid; }
.site-footer__col:last-child ul { columns: 1; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bar p { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter); font-size: 13px; letter-spacing: .04em; color: rgba(255, 255, 255, .55); }

/* ------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------- */
@media (max-width: 1080px) {
	.tiles--small, .grid, .grid--four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	body { font-size: 16px; }
	.site-header__logo .logo { height: 50px; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tiles--small, .grid, .grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.product__layout { grid-template-columns: 1fr; }
	.story__chapter { grid-template-columns: 1fr; gap: 8px; }
	.site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
	.site-header__inner { grid-template-columns: 1fr auto; grid-template-areas: "logo search" "nav nav"; row-gap: 12px; }
	.site-header__logo { grid-area: logo; justify-self: start; }
	.nav--right { grid-area: search; }
	.nav--left { grid-area: nav; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 10px; gap: 8px 14px; }
}

@media (max-width: 520px) {
	.nav a { font-size: 11px; letter-spacing: .14em; }
	.tiles, .tiles--small { gap: 14px; }
	.tile__body { flex-direction: column; gap: 2px; }
	.card__title { font-size: 17px; }
	.hero::before { inset: 10px; }
	.site-footer__col ul { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
