/*
Theme Name: Edo Japan
Theme URI: https://www.edojapan.jp
Author: Emro Aziatica BV
Description: A refined, catalogue-only theme for Edo Japan – authentic Japanese porcelain tableware. No cart, no prices, no checkout: just the collection, by category.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: Proprietary
Text Domain: edo-japan
*/

/* ------------------------------------------------------------------
 * Fonts (self-hosted, no external requests)
 * ---------------------------------------------------------------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/cormorant-garamond-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/jost-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/jost-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jost-500-normal.woff2") format("woff2"); }

/* ------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------- */
:root {
	--paper: #ffffff;
	--paper-2: #ffffff;
	--white: #ffffff;
	--ink: #141414;
	--muted: #6a655d;
	--line: #d9d3c8;
	--navy: #243c60; /* indigo taken from the logo file */

	--serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--sans: "Jost", "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(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.7;
	-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(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.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(--ink); color: var(--paper); 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: .24em; text-transform: uppercase;
	color: var(--muted); margin: 0 0 1.4em;
}
.eyebrow a { text-decoration: none; }
.eyebrow--light { color: rgba(255, 255, 255, .62); }

.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: 13px; letter-spacing: .2em; text-transform: uppercase;
	text-decoration: none; padding: 1.05em 2.2em; border: 1px solid var(--ink); color: var(--ink);
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.button:hover { background: var(--ink); color: var(--paper); }
.button--light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.button--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.site-header__inner {
	max-width: var(--wrap); margin-inline: auto; padding: 18px var(--gutter);
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.site-header__logo { display: block; color: var(--ink); line-height: 0; justify-self: center; }
.site-header__logo .logo { height: 68px; width: auto; }
.nav { display: flex; gap: clamp(16px, 3vw, 40px); align-items: center; }
.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: currentColor; 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); border: 1px solid var(--line); padding: 14px; box-shadow: 0 20px 40px rgba(20, 20, 20, .08);
}
.search__form input[type="search"] {
	width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 2px;
	font: inherit; font-weight: 300; color: var(--ink); border-radius: 0; outline: none;
}

/* ------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------- */
.hero { padding: clamp(56px, 9vw, 130px) 0 clamp(56px, 8vw, 110px); }
.hero__inner {
	max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(32px, 6vw, 96px);
}
.hero__title { font-weight: 300; font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.015em; margin-bottom: .45em; }
.hero__lead { max-width: 34em; font-size: 18px; color: #3d3a35; margin-bottom: 2.4em; }
.hero__mark { justify-self: end; width: min(100%, 340px); color: var(--ink); }
.hero__mark-svg { width: 100%; height: auto; }

/* ------------------------------------------------------------------
 * Sections
 * ---------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--tight { padding: clamp(32px, 4.5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.section--tint { background: var(--paper-2); }
.section__head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.section__title { font-weight: 300; font-size: clamp(34px, 4.4vw, 58px); }
.section__subtitle { font-weight: 300; font-size: clamp(26px, 3vw, 36px); margin-bottom: 1.2em; }

/* Category tiles */
.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: block; aspect-ratio: 1 / 1; background: var(--white); overflow: hidden; position: relative;
	display: grid; place-items: center; padding: 8%;
}
.tile__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__body { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 2px 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; transition: border-color .3s var(--ease); }
.tile:hover .tile__body { border-color: var(--ink); }
.tile__title { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 31px); line-height: 1.15; }
.tile__meta { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px) 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: 8%; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: block; padding-top: 14px; }
.card__title { display: block; font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.card__meta { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--line); }
.placeholder__mark { width: 34%; 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(--ink); }

/* ------------------------------------------------------------------
 * Page heads & breadcrumbs
 * ---------------------------------------------------------------- */
.page-head { padding: clamp(36px, 5vw, 72px) 0 clamp(8px, 2vw, 24px); }
.page-head__title { font-weight: 300; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.012em; }
.page-head__lead { margin-top: 1.4em; max-width: 36em; font-size: 18px; color: #3d3a35; }
.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: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { margin: 0 .9em; opacity: .55; }
.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%; }
.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 transparent; padding: 6px; cursor: pointer; }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product__thumb.is-active, .product__thumb:hover { border-color: var(--ink); }
.product__info { padding-top: clamp(0px, 2vw, 24px); }
.product__title { font-weight: 300; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.05; margin-bottom: .35em; }
.product__sku { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-bottom: 1.6em; margin-bottom: 1.8em; border-bottom: 1px solid var(--line); }
.product__short { font-size: 19px; color: #3d3a35; }
.product__back { margin-top: 2.4em; font-size: 12px; letter-spacing: .18em; 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; font-weight: 400; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose a { color: var(--navy); }

/* ------------------------------------------------------------------
 * 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-size: 44px; font-weight: 300; line-height: 1; color: var(--muted); }
.story__chapter h2 { font-weight: 300; font-size: clamp(30px, 3.6vw, 46px); margin-bottom: .6em; }
.story__chapter p { color: #3d3a35; }

/* ------------------------------------------------------------------
 * Dark band & footer (white logo on dark)
 * ---------------------------------------------------------------- */
.band { background: var(--ink); 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-weight: 300; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.08; margin-bottom: .5em; }
.band__lead { color: rgba(255, 255, 255, .72); max-width: 34em; margin: 0 auto 2.2em; font-size: 18px; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); border-top: 1px solid rgba(255, 255, 255, .12); }
.band + .site-footer { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; 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: 110px; width: auto; margin-bottom: 22px; }
.site-footer__tagline { font-family: var(--serif); font-size: 22px; line-height: 1.3; 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: 56px; }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__mark { order: -1; justify-self: start; width: 120px; }
	.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; }
	.story__no { font-size: 32px; }
	.site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.site-header__inner { grid-template-columns: 1fr auto; grid-template-areas: "logo search" "nav nav"; row-gap: 14px; }
	.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 var(--line); padding-top: 12px; }
}

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

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