/* ==========================================================================
   Lynh Ko — main stylesheet
   Navy · gold · washi. Quiet, generous spacing, readable.
   ========================================================================== */

:root {
	--navy: #262a33;
	--navy-deep: #1b1e25;
	--gold: #c5a46d;
	--gold-soft: #dcc49a;
	--gold-ink: #8a6a35; /* gold dark enough for text on washi (AA) */
	--washi: #f3efe7;
	--washi-2: #ebe5d9;
	--ink: #2b2b2b;
	--stone: #6f6a62;
	--line: rgba(38, 42, 51, .14);

	--serif: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
	--body: 'EB Garamond', 'Noto Serif JP', Georgia, serif;
	--jp: 'Noto Serif JP', serif;

	--gutter: clamp(1.25rem, 4vw, 3rem);
	--section: clamp(5rem, 12vw, 9rem);
	--ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--washi);
	color: var(--ink);
	font-family: var(--body);
	font-size: clamp(1.06rem, .98rem + .3vw, 1.2rem);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
p { margin: 0 0 1.2em; }
[lang="ja"] { font-family: var(--jp); font-weight: 300; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--gold); color: var(--navy-deep); padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.center { text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--stone); }
.small { font-size: .9rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.eyebrow {
	font-family: var(--serif);
	font-size: .95rem;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--gold-ink);
	margin-bottom: 1rem;
}
.eyebrow [lang="ja"] { letter-spacing: .2em; margin-left: .6em; text-transform: none; }

/* Buttons ---------------------------------------------------------------- */
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 48px; padding: .75em 2.2em;
	font-family: var(--serif); font-size: 1.05rem; letter-spacing: .18em; text-transform: uppercase;
	text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.button--gold { background: var(--gold); color: var(--navy-deep); }
.button--gold:hover { background: var(--gold-soft); color: var(--navy-deep); }
.button--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.button--outline:hover { background: var(--navy); color: var(--washi); }
.button--ghost { border-color: rgba(197,164,109,.6); color: var(--gold-soft); }
.button--ghost:hover { background: var(--gold); color: var(--navy-deep); }
.button--block { width: 100%; }

.text-link {
	font-family: var(--serif); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15em;
}
.text-link--gold { color: var(--gold-ink); }
.link-row { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.8rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.1rem var(--gutter);
	color: var(--washi);
	transition: background .4s var(--ease), padding .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(27, 30, 37, .92); backdrop-filter: blur(8px); padding-block: .7rem; }
.site-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--gold-soft); }
.site-brand:hover { color: var(--gold); }
.site-brand__mark svg { width: auto; height: 38px; }
.site-brand__name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .08em; }

.site-header__actions { display: flex; align-items: center; gap: 1.4rem; }
.site-header__book {
	font-family: var(--serif); letter-spacing: .2em; text-transform: uppercase; font-size: .95rem;
	text-decoration: none; color: var(--washi); border: 1px solid rgba(197,164,109,.55); padding: .45rem 1.1rem;
}
.site-header__book:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }

.menu-toggle {
	display: flex; align-items: center; gap: .8rem; min-height: 44px;
	background: none; border: 0; color: inherit; cursor: pointer; padding: 0;
	font-family: var(--serif); font-size: .95rem; letter-spacing: .2em; text-transform: uppercase;
}
.menu-toggle__lines { position: relative; width: 34px; height: 10px; }
.menu-toggle__lines span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle__lines span:first-child { top: 0; }
.menu-toggle__lines span:last-child { top: 9px; }
.menu-open .menu-toggle__lines span:first-child { top: 5px; transform: rotate(18deg); }
.menu-open .menu-toggle__lines span:last-child { top: 5px; transform: rotate(-18deg); }

/* Overlay nav ------------------------------------------------------------ */
.site-nav {
	position: fixed; inset: 0; z-index: 40;
	background: var(--navy-deep); color: var(--washi);
	display: flex; align-items: center;
	opacity: 0; transition: opacity .5s var(--ease);
	overflow-y: auto;
}
.site-nav.is-open { opacity: 1; }
.lang-switch { list-style: none; padding: 0; display: flex; gap: 1rem; text-transform: uppercase; letter-spacing: .2em; }
@media (prefers-reduced-motion: reduce) {
	.site-nav { transition: none; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
	position: relative; height: 100vh; height: 100svh; min-height: 560px;
	display: grid; place-items: center; overflow: hidden;
	background: var(--navy-deep); color: var(--washi);
}
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(27,30,37,.55) 0%, rgba(27,30,37,.25) 45%, rgba(27,30,37,.7) 100%);
}
.hero__content { position: relative; text-align: center; color: var(--gold-soft); animation: rise 1.6s var(--ease) both .2s; }
.hero__mark svg { height: clamp(140px, 24vh, 230px); width: auto; margin: 0 auto 1.6rem; filter: drop-shadow(0 2px 18px rgba(0,0,0,.35)); }
.hero__title { font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.8rem); letter-spacing: .14em; font-weight: 300; margin: 0; color: var(--washi); }
.hero__tagline { margin: .6rem 0 0; letter-spacing: .28em; text-transform: uppercase; font-family: var(--serif); font-size: .95rem; color: var(--gold-soft); }
.hero__scroll {
	position: absolute; right: var(--gutter); bottom: 2rem;
	display: flex; flex-direction: column; align-items: center; gap: .8rem;
	font-family: var(--serif); font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--washi);
	writing-mode: vertical-rl;
}
.hero__scroll::after { content: ""; width: 1px; height: 70px; background: linear-gradient(var(--washi), transparent); animation: drip 2.4s var(--ease) infinite; }
.hero__pause {
	position: absolute; left: var(--gutter); bottom: 2rem; background: none; border: 0; color: rgba(243,239,231,.75);
	font-family: var(--serif); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; cursor: pointer; min-height: 44px;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .hero__content, .hero__scroll::after { animation: none; } }

/* Intro ------------------------------------------------------------------ */
.intro { padding: var(--section) var(--gutter); }
.intro__inner { max-width: 1000px; margin: 0 auto; display: grid; gap: 3rem; align-items: start; }
@media (min-width: 800px) { .intro__inner { grid-template-columns: auto 1fr; gap: clamp(3rem, 8vw, 7rem); } }
.intro__vertical {
	font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.5;
	color: var(--gold-ink); margin: 0; padding-left: 1.4rem; border-left: 1px solid var(--gold); white-space: nowrap;
}
.intro__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--navy); }
.intro__text p { max-width: 36em; }

/* Section head ----------------------------------------------------------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(3rem, 7vw, 5rem); padding: 0 var(--gutter); }
.section-head h2 { color: var(--navy); }

/* Workshop rows ---------------------------------------------------------- */
.home-workshops { padding: var(--section) 0; background: var(--washi-2); }
.home-workshops--archive { background: var(--washi); }
.workshop-rows { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: clamp(4rem, 9vw, 7rem); }
.workshop-row { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) {
	.workshop-row { grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); }
	.workshop-row--flip .workshop-row__media { order: 2; }
}
.workshop-row__media { display: block; overflow: hidden; aspect-ratio: 9 / 11; background: var(--navy); }
.workshop-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.workshop-row__media:hover img { transform: scale(1.03); }
.workshop-row__jp { color: var(--gold-ink); letter-spacing: .16em; font-size: .85rem; text-transform: uppercase; margin-bottom: .4rem; }
.workshop-row__title { margin-bottom: .4rem; }
.workshop-row__title a { text-decoration: none; color: var(--navy); }
.workshop-row__meta { font-family: var(--serif); letter-spacing: .12em; color: var(--stone); text-transform: uppercase; font-size: .95rem; }
.workshop-row__next { font-style: italic; color: var(--stone); }
.home-workshops > .center { margin-top: clamp(3rem, 7vw, 5rem); }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: var(--navy); color: var(--washi); padding: var(--section) var(--gutter); text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
	content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
	border: 1px solid rgba(197,164,109,.16); border-radius: 50%;
}
.cta-band__inner { position: relative; max-width: 620px; margin: 0 auto; }
.cta-band__jp { color: var(--gold); letter-spacing: .2em; font-size: 1rem; text-transform: uppercase; }
.cta-band h2 { color: var(--washi); }
.cta-band p { color: rgba(243,239,231,.8); }
.cta-band .button { margin-top: 1rem; }

/* Page header (inner pages) --------------------------------------------- */
.page-header {
	background: var(--navy-deep) url("../img/hero-poster.jpg") center / cover no-repeat;
	color: var(--washi); position: relative;
	padding: clamp(9rem, 20vw, 13rem) var(--gutter) clamp(4rem, 9vw, 6rem);
	text-align: center;
}
.page-header::before { content: ""; position: absolute; inset: 0; background: rgba(27,30,37,.72); }
.page-header__inner { position: relative; max-width: 760px; margin: 0 auto; }
.page-header__jp { color: var(--gold); letter-spacing: .24em; font-size: .9rem; text-transform: uppercase; margin-bottom: .8rem; }
.page-header__title { font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem); font-weight: 300; margin: 0; }
.page-header__lead { margin: 1.4rem auto 0; max-width: 34em; color: rgba(243,239,231,.82); }

/* Page body / editor content -------------------------------------------- */
.page-body { padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) var(--section); }
.page-body__cover { max-width: 1160px; margin: 0 auto 4rem; }
.entry-content { max-width: 720px; margin: 0 auto; }
.entry-content > .alignwide { max-width: 1160px; margin-left: 50%; transform: translateX(-50%); width: min(1160px, calc(100vw - 2 * var(--gutter))); }
.entry-content > .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.entry-content h2 { color: var(--navy); margin-top: 2.4em; }
.entry-content h3 { color: var(--navy); margin-top: 2em; }
.entry-content blockquote { margin: 2.5em 0; padding: 0 0 0 1.6rem; border-left: 1px solid var(--gold); font-family: var(--serif); font-size: 1.45rem; font-style: italic; color: var(--navy); }
.entry-content figure { margin: 2.5em 0; }
.entry-content figcaption { font-size: .9rem; color: var(--stone); margin-top: .6rem; text-align: center; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.entry-content .wp-block-gallery { gap: .8rem; }
.entry-content details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.entry-content details:last-of-type { border-bottom: 1px solid var(--line); }
.entry-content summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content summary::after { content: "+"; color: var(--gold-ink); transition: transform .3s var(--ease); }
.entry-content details[open] summary::after { transform: rotate(45deg); }
.entry-content details > *:not(summary) { margin-top: .8rem; }
.entry-content .wp-block-columns { gap: 2.5rem; }
.entry-content .wp-block-button__link { background: var(--gold); color: var(--navy-deep); border-radius: 0; font-family: var(--serif); letter-spacing: .18em; text-transform: uppercase; padding: .8em 2.2em; }
.h-small { font-size: 1.05rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin: 2.5rem 0 1rem; font-family: var(--serif); }

/* Single workshop -------------------------------------------------------- */
.workshop-single { padding: clamp(3rem, 7vw, 5rem) var(--gutter) var(--section); }
.workshop-single__grid { max-width: 1160px; margin: 0 auto; display: grid; gap: 3rem; }
@media (min-width: 960px) { .workshop-single__grid { grid-template-columns: 1fr 360px; gap: 5rem; align-items: start; } .workshop-single__aside { position: sticky; top: 6rem; } }
.workshop-single__cover { margin: 0 0 3rem; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.workshop-single__cover img { width: 100%; height: 100%; object-fit: cover; }
.workshop-single .entry-content { margin: 0; }
.fact-card { background: #fff; border: 1px solid var(--line); padding: 2rem; }
.fact-card .h-small:first-of-type { margin-top: 1.5rem; }
.facts { margin: 0; display: grid; gap: .9rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .7rem; }
.facts dt { color: var(--stone); font-size: .95rem; }
.facts dd { margin: 0; text-align: right; color: var(--navy); }
.session-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.session-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: 1rem; }
.session-list__seats { color: var(--gold-ink); white-space: nowrap; }
.session-list .is-full { color: var(--stone); text-decoration: line-through; }
.session-list .is-full .session-list__seats { text-decoration: none; }
.tick-list { list-style: none; padding: 0; }
.tick-list li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .85em; width: .8rem; height: 1px; background: var(--gold); }

/* Forms ------------------------------------------------------------------ */
.booking-form, .contact-form { display: grid; gap: 2.2rem; }
.booking-form__group { border: 0; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.booking-form__group legend { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .9rem; padding: 0; }
.step { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--gold); border-radius: 50%; font-size: 1rem; color: var(--gold-ink); }
.choice-list { display: grid; gap: .7rem; }
.choice { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--line); background: #fff; padding: 1rem 1.2rem; cursor: pointer; transition: border-color .2s; }
.choice:hover { border-color: var(--gold); }
.choice:has(input:checked) { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.choice input { margin-top: .45rem; accent-color: var(--gold-ink); }
.choice__title { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
.choice__meta { display: block; color: var(--stone); font-size: .95rem; }
.field { display: grid; gap: .4rem; }
.field--narrow { max-width: 200px; }
.field-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: .95rem; color: var(--stone); letter-spacing: .02em; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 50px; padding: .7rem .9rem;
	font: inherit; font-size: 1.05rem; color: var(--ink);
	background: #fff; border: 1px solid rgba(38,42,51,.25); border-radius: 0;
	transition: border-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(197,164,109,.25); }
.field__hint { font-size: .92rem; color: var(--stone); margin: 0; }
.field__hint.is-low { color: #9a3b2a; }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: 1rem; cursor: pointer; }
.check input { margin-top: .4rem; accent-color: var(--gold-ink); width: 1.1rem; height: 1.1rem; }
.booking-form__submit { display: grid; gap: .8rem; justify-items: start; border-top: 1px solid var(--line); padding-top: 2rem; }
.notice { padding: 1.4rem 1.6rem; margin-bottom: 2rem; border-left: 3px solid var(--gold); background: #fff; }
.notice--error { border-color: #9a3b2a; }
.notice__title { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); margin-bottom: .4rem; }
.notice ul { margin: 0; padding-left: 1.2em; }

/* Journal list ----------------------------------------------------------- */
.post-item { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.post-item__date { color: var(--stone); font-size: .9rem; letter-spacing: .1em; margin: 0; }
.post-item__title a { text-decoration: none; color: var(--navy); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(243,239,231,.72); padding: clamp(4rem, 8vw, 6rem) var(--gutter) 2rem; font-size: 1rem; }
.site-footer a { color: var(--washi); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__inner { max-width: 1160px; margin: 0 auto; display: grid; gap: 3rem; }
@media (min-width: 860px) { .site-footer__inner { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer__brand { display: flex; gap: 1.2rem; align-items: center; color: var(--gold); }
.site-footer__mark svg { height: 80px; width: auto; }
.site-footer__name { font-family: var(--serif); font-size: 1.6rem; color: var(--washi); margin: 0; letter-spacing: .06em; }
.site-footer__name [lang="ja"] { font-size: 1rem; color: var(--gold); margin-left: .4rem; }
.site-footer__tag { margin: 0; font-size: .95rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.site-footer__list li { margin-bottom: .5rem; }
.site-footer__contact .button { margin-top: .4rem; }
.site-footer__copy { max-width: 1160px; margin: 4rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(197,164,109,.18); font-size: .85rem; letter-spacing: .12em; }

.hero__jp, .hero__actions, .page-header__img { display: none; }

/* Reveal on scroll ------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Small screens ---------------------------------------------------------- */
@media (max-width: 600px) {
	.site-brand__name { display: none; }
	.site-header__actions { gap: 1rem; }
	.menu-toggle__label { display: none; }
	.hero__pause { display: none; }
	.intro__vertical { white-space: normal; }
}

/* WP admin bar (logged-in only) ------------------------------------------ */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header.is-scrolled { top: 0; } }

/* About page helpers ----------------------------------------------------- */
.entry-content .lead { font-size: 1.25em; line-height: 1.7; }
.entry-content .about-split { gap: clamp(2rem, 5vw, 4rem); margin: clamp(3rem, 7vw, 5rem) 0; }
.entry-content .about-split figure { margin: 0; }
.entry-content .about-split img { width: 100%; height: auto; }
