/*
Theme Name: Unfamiliar Japan
Theme URI: https://unfamiliarjapan.com
Author: Yakumo Productions
Description: "Field Notes" editorial theme for Unfamiliar Japan - off-the-path Japan travel films and stories, with an understated WooCommerce shop and private concierge journeys. Built from the Claude Code design handoff (design_handoff_unfamiliar_japan).
Version: 1.0.0
Requires PHP: 7.4
Tested up to: 7.0
License: GNU General Public License v2 or later
Text Domain: unfamiliarjapan
*/

:root {
	--uj-ink: #111;
	--uj-ink-2: #151412;
	--uj-ink-3: #1b1a17;
	--uj-indigo: #33406b;
	--uj-indigo-dark: #2b3557;
	--uj-gold: #e8c07a;
	--uj-body: #33322d;
	--uj-body-soft: #5c5a53;
	--uj-muted: #6b6b64;
	--uj-muted-2: #8a877e;
	--uj-panel: #f7f6f3;
	--uj-ph-1: #dad3c7;
	--uj-ph-2: #e6e1d8;
	--uj-ph-dark: #201e1b;
	--uj-hairline: #ececec;
	--uj-pill-border: #e2e2e2;
	--uj-display: 'Bricolage Grotesque', sans-serif;
	--uj-ui: 'Space Grotesk', sans-serif;
	--uj-text: 'Hanken Grotesk', sans-serif;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background: #fff;
	color: var(--uj-body);
	font-family: var(--uj-text);
	font-size: 16px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--uj-indigo); text-decoration: none; transition: opacity .18s ease; }
a:hover { opacity: .62; }
h1, h2, h3 { margin: 0; }

.uj-wrap { max-width: 1280px; margin: 0 auto; }
.uj-label {
	font-family: var(--uj-ui);
	font-size: 15px; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase;
	color: var(--uj-ink);
}
.uj-kicker {
	font-family: var(--uj-ui);
	font-size: 11px; font-weight: 700;
	letter-spacing: .2em; text-transform: uppercase;
	color: var(--uj-indigo);
	display: block;
}
.uj-arrowlink { font-family: var(--uj-text); font-size: 14px; font-weight: 600; color: var(--uj-indigo); white-space: nowrap; }

/* ---- header ---------------------------------------------------------------- */
.uj-header { border-bottom: 2px solid var(--uj-ink); background: #fff; }
.uj-header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; padding: 24px 56px;
}
.uj-logo { display: flex; align-items: center; gap: 14px; color: var(--uj-ink); }
.uj-logo:hover { opacity: 1; }
.uj-monogram {
	width: 54px; height: 54px; background: var(--uj-ink); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--uj-ui); font-weight: 700; font-size: 22px; letter-spacing: -.03em;
}
.uj-wordmark {
	font-family: var(--uj-ui); font-weight: 700; font-size: 24px;
	letter-spacing: -.01em; text-transform: uppercase; color: var(--uj-ink);
}
.uj-nav ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.uj-nav a {
	display: inline-block; padding: 8px 14px; border-radius: 100px;
	border: 1.5px solid var(--uj-pill-border);
	font-family: var(--uj-ui); font-size: 13px; font-weight: 600; color: var(--uj-ink);
}
.uj-nav li.current-menu-item > a, .uj-nav li.current_page_item > a, .uj-nav a[aria-current] {
	border-color: var(--uj-ink);
}
.uj-menu-toggle {
	display: none; background: none; border: 1.5px solid var(--uj-ink); border-radius: 8px;
	font-family: var(--uj-ui); font-weight: 700; font-size: 13px; padding: 8px 14px;
	color: var(--uj-ink); cursor: pointer;
}

/* ---- hero ------------------------------------------------------------------- */
.uj-hero { position: relative; height: 600px; background: var(--uj-ph-dark); overflow: hidden; }
.uj-hero-tag {
	position: absolute; top: 40px; left: 56px; z-index: 5;
	display: flex; align-items: center; gap: 12px;
	color: rgba(255, 255, 255, .72);
	font-family: var(--uj-ui); font-size: 11px; font-weight: 700;
	letter-spacing: .24em; text-transform: uppercase;
}
.uj-hero-tag .uj-play {
	width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; color: #fff;
}
.uj-slide {
	position: absolute; inset: 0;
	display: flex; align-items: flex-end;
	padding: 56px 64px;
	background-size: cover; background-position: center;
	opacity: 0; transition: opacity .9s ease; pointer-events: none;
}
.uj-slide.uj-active { opacity: 1; pointer-events: auto; }
.uj-slide::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(20, 18, 15, .9), rgba(20, 18, 15, .05) 62%, rgba(20, 18, 15, .35));
}
.uj-slide-content { position: relative; z-index: 2; }
.uj-slide-kicker {
	font-family: var(--uj-ui); font-size: 12px; font-weight: 700;
	letter-spacing: .24em; text-transform: uppercase; color: var(--uj-gold);
	display: block; margin-bottom: 12px;
}
.uj-slide-title a { color: #fff; }
.uj-slide-title {
	font-family: var(--uj-display); font-weight: 800; font-size: 52px;
	line-height: 1.02; letter-spacing: -.025em; color: #fff;
	max-width: 800px; text-wrap: balance;
}
.uj-slide-meta { margin-top: 14px; font-family: var(--uj-text); font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, .72); }
.uj-hero-dots { position: absolute; right: 64px; bottom: 56px; z-index: 5; display: flex; gap: 10px; }
.uj-hero-dots button {
	width: 34px; height: 4px; border-radius: 2px; border: 0; padding: 0;
	background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .3s ease;
}
.uj-hero-dots button.uj-active { background: var(--uj-gold); }

/* ---- intro ------------------------------------------------------------------ */
.uj-intro { padding: 44px 64px 8px; max-width: 820px; }
.uj-intro p {
	margin: 0; font-family: var(--uj-text); font-weight: 500;
	font-size: 22px; line-height: 1.5; color: var(--uj-body); text-wrap: pretty;
}

/* ---- recent stories --------------------------------------------------------- */
.uj-section-head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 20px; padding: 40px 64px 8px;
}
.uj-stories-grid {
	display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px;
	padding: 24px 64px 56px;
}
.uj-feature a { color: inherit; }
.uj-feature-image {
	height: 340px; border-radius: 10px; background: var(--uj-ph-1);
	background-size: cover; background-position: center; margin-bottom: 18px;
}
.uj-feature .uj-kicker { margin-bottom: 8px; }
.uj-feature-title {
	font-family: var(--uj-display); font-weight: 700; font-size: 30px;
	line-height: 1.12; letter-spacing: -.02em; color: var(--uj-ink-2);
}
.uj-feature-excerpt { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--uj-body-soft); max-width: 520px; }
.uj-story-list { display: flex; flex-direction: column; }
.uj-story-item {
	display: flex; gap: 20px; align-items: flex-start;
	padding: 18px 0; border-bottom: 1px solid var(--uj-hairline);
}
.uj-story-item:first-child { padding-top: 0; }
.uj-story-item:last-child { border-bottom: 0; }
.uj-story-thumb {
	flex: 0 0 130px; width: 130px; height: 96px; border-radius: 8px;
	background: var(--uj-ph-1); background-size: cover; background-position: center;
}
.uj-story-item .uj-kicker { font-size: 10px; margin-bottom: 6px; }
.uj-story-title { font-family: var(--uj-display); font-weight: 700; font-size: 19px; line-height: 1.2; }
.uj-story-title a { color: var(--uj-ink-2); }

/* ---- makers (shop row) ------------------------------------------------------ */
.uj-makers { background: var(--uj-panel); padding: 52px 64px; }
.uj-makers-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.uj-makers-sub { margin: 6px 0 0; font-size: 15px; color: var(--uj-muted); }
.uj-makers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 30px; }
.uj-product a { color: inherit; display: block; }
.uj-product-image {
	aspect-ratio: 1; border-radius: 10px; background: var(--uj-ph-2);
	background-size: cover; background-position: center; margin-bottom: 12px;
}
.uj-product-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.uj-product-name { font-family: var(--uj-text); font-weight: 600; font-size: 15px; color: var(--uj-ink-3); }
.uj-product-region { font-size: 13px; color: var(--uj-muted-2); margin: 2px 0 6px; }
.uj-product-price { font-family: var(--uj-ui); font-weight: 600; font-size: 15px; color: var(--uj-ink); }
.uj-product-price del { color: var(--uj-muted-2); font-weight: 400; margin-right: 6px; }
.uj-product-price ins { text-decoration: none; }

/* ---- tours band -------------------------------------------------------------- */
.uj-tours { display: grid; grid-template-columns: 1fr 1fr; background: var(--uj-indigo); color: #fff; }
.uj-tours-copy { padding: 64px; }
.uj-tours-eyebrow {
	font-family: var(--uj-ui); font-size: 12px; font-weight: 700;
	letter-spacing: .22em; text-transform: uppercase; color: var(--uj-gold);
	display: block; margin-bottom: 16px;
}
.uj-tours h2 {
	font-family: var(--uj-display); font-weight: 800; font-size: 40px;
	line-height: 1.08; letter-spacing: -.02em; max-width: 440px; color: #fff;
}
.uj-tours p { margin: 18px 0 26px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .8); max-width: 440px; }
.uj-tours-cta {
	display: inline-block; background: #fff; color: var(--uj-indigo);
	font-family: var(--uj-text); font-weight: 700; font-size: 15px;
	padding: 15px 28px; border-radius: 8px;
}
.uj-tours-cta:hover { opacity: .85; }
.uj-tours-image { background: var(--uj-indigo-dark); background-size: cover; background-position: center; min-height: 340px; }

/* ---- footer ------------------------------------------------------------------ */
.uj-footer { background: var(--uj-ink-2); color: #fff; padding: 56px 64px 40px; }
.uj-footer-grid {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
	padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.uj-footer-wordmark { font-family: var(--uj-display); font-weight: 800; font-size: 22px; color: #fff; }
.uj-footer-blurb { margin: 12px 0 18px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .55); max-width: 280px; }
.uj-footer h5 {
	margin: 0 0 14px; font-family: var(--uj-ui); font-size: 12px; font-weight: 700;
	letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .4);
}
.uj-footer ul { list-style: none; margin: 0; padding: 0; }
.uj-footer ul a { display: inline-block; padding: 4px 0; font-size: 14px; color: rgba(255, 255, 255, .78); }
.uj-social { display: flex; gap: 10px; }
.uj-social a {
	width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--uj-ui); font-size: 11px; font-weight: 700; color: #fff;
}
.uj-newsletter-form { display: flex; margin-top: 4px; }
.uj-newsletter-form input[type=email] {
	flex: 1; min-width: 0; padding: 12px 14px;
	background: rgba(255, 255, 255, .08); color: #fff;
	border: 1px solid rgba(255, 255, 255, .2); border-right: 0;
	border-radius: 8px 0 0 8px; font-family: var(--uj-text); font-size: 14px;
}
.uj-newsletter-form input[type=email]::placeholder { color: rgba(255, 255, 255, .45); }
.uj-newsletter-form button {
	background: var(--uj-gold); color: var(--uj-ink); border: 0;
	border-radius: 0 8px 8px 0; padding: 0 18px; font-size: 16px; cursor: pointer;
}
.uj-newsletter-msg { margin-top: 8px; font-size: 13px; color: var(--uj-gold); }
.uj-footer-bottom { padding-top: 24px; font-size: 12px; color: rgba(255, 255, 255, .4); }

/* ---- inner pages (extend the system) ----------------------------------------- */
.uj-content { padding: 44px 64px 64px; }
.uj-page-title {
	font-family: var(--uj-display); font-weight: 800; font-size: 46px;
	letter-spacing: -.02em; line-height: 1.05; color: var(--uj-ink-2); margin-bottom: 24px;
}
.uj-entry-content { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--uj-body); }
.uj-entry-content a { text-decoration: underline; }
.uj-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.uj-archive-grid .uj-story-thumb { width: 100%; height: 200px; flex: none; margin-bottom: 14px; }
.uj-pagination { margin-top: 44px; font-family: var(--uj-ui); font-weight: 600; }
.uj-pagination .page-numbers { padding: 6px 12px; border: 1.5px solid var(--uj-pill-border); border-radius: 100px; margin-right: 6px; color: var(--uj-ink); }
.uj-pagination .page-numbers.current { border-color: var(--uj-ink); }

/* WooCommerce catalog: understated cards in the same system */
.woocommerce ul.products { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.woocommerce ul.products li.product a { color: inherit; }
.woocommerce ul.products li.product img { border-radius: 10px; }
.woocommerce ul.products .woocommerce-loop-product__title { font-family: var(--uj-text); font-weight: 600; font-size: 15px; color: var(--uj-ink-3); margin-top: 12px; }
.woocommerce ul.products .price { font-family: var(--uj-ui); font-weight: 600; font-size: 15px; color: var(--uj-ink); }
.woocommerce ul.products .button { display: none; } /* understated: card links, no add-to-cart in the grid */
.woocommerce span.onsale { background: var(--uj-indigo); border-radius: 100px; font-family: var(--uj-ui); }
.woocommerce div.product .product_title { font-family: var(--uj-display); font-weight: 800; font-size: 40px; letter-spacing: -.02em; }
.woocommerce div.product p.price { font-family: var(--uj-ui); font-size: 22px; color: var(--uj-ink); }
.woocommerce div.product .single_add_to_cart_button, .woocommerce .button.checkout, .woocommerce a.checkout-button {
	background: var(--uj-indigo); color: #fff; border: 0; border-radius: 8px;
	font-family: var(--uj-text); font-weight: 700; padding: 15px 28px;
}

/* ---- responsive --------------------------------------------------------------- */
@media (max-width: 900px) {
	.uj-header-inner { padding: 18px 24px; flex-wrap: wrap; }
	.uj-menu-toggle { display: inline-block; }
	.uj-nav { display: none; width: 100%; }
	.uj-nav.uj-open { display: block; }
	.uj-nav ul { flex-direction: column; padding-top: 10px; }
	.uj-hero { height: 480px; }
	.uj-slide { padding: 32px 24px; }
	.uj-slide-title { font-size: 34px; }
	.uj-hero-tag { left: 24px; }
	.uj-hero-dots { right: 24px; bottom: 24px; }
	.uj-intro, .uj-section-head, .uj-content { padding-left: 24px; padding-right: 24px; }
	.uj-stories-grid { grid-template-columns: 1fr; padding: 24px 24px 40px; }
	.uj-makers { padding: 40px 24px; }
	.uj-makers-grid { grid-template-columns: repeat(2, 1fr); }
	.uj-tours { grid-template-columns: 1fr; }
	.uj-tours-copy { padding: 44px 24px; }
	.uj-footer { padding: 44px 24px 32px; }
	.uj-footer-grid { grid-template-columns: 1fr 1fr; }
	.uj-archive-grid { grid-template-columns: 1fr 1fr; }
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.uj-wordmark { font-size: 18px; }
	.uj-slide-title { font-size: 30px; }
	.uj-makers-grid, .uj-footer-grid, .uj-archive-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
	.uj-page-title { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
	.uj-slide { transition: none; }
}
