/* ==========================================================================
   Menu (hamburger) — spec Linh, 13 Nov 2026. Values for a 390px phone.
   Full-screen navy #0E1A24, one left column, 24px margins. Top-left: four links
   (SEI / JAKU under Experiences); right: 金継ぎ faint; bottom-left: signature block.
   Cream is always #EFE9DF, gold always #B89B5E. No text-shadow, no rounded corners,
   no images, no handwriting font. Opacity-only motion.
   From 768px: same overlay, column max 560px on the site's content edge.
   ========================================================================== */
.site-nav, .design-b .site-nav {
	--mn-navy: #0E1A24;
	--mn-cream: #EFE9DF;
	--mn-gold: #B89B5E;
	--mn-serif: 'Cormorant Garamond', Georgia, serif;
	--mn-label: 'Montserrat', system-ui, sans-serif;
	--mn-ja: 'Shippori Mincho', 'Noto Serif JP', serif;
	position: fixed; inset: 0; z-index: 40;
	display: block;
	background: var(--mn-navy); color: var(--mn-cream);
	opacity: 0; transition: opacity .3s ease;
	overflow-y: auto; overscroll-behavior: contain;
	text-shadow: none;
}
.site-nav.is-open { opacity: 1; }
.site-nav[hidden] { display: none; }
html.menu-lock, html.menu-lock body { overflow: hidden; }

.mn {
	position: relative;
	display: flex; flex-direction: column;
	min-height: 100%;
	box-sizing: border-box;
	/* top bar 72px + 64px: the first link's text sits ~136px from the top */
	padding: 131px 24px calc(24px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { .mn { max-width: 560px; box-sizing: content-box; margin-inline: auto; min-height: calc(100% - 131px - 24px - env(safe-area-inset-bottom)); } }
.mn p { margin: 0; }
.mn ul { list-style: none; margin: 0; padding: 0; }
.mn li { margin: 0; padding: 0; }
.mn li::before, .mn li::marker { content: none; }
.mn a { color: inherit; text-decoration: none; transition: color .3s ease; }
.mn a:hover { color: #FBF8F3; }
.mn a:focus-visible, .design-b.menu-open .site-header a:focus-visible, .design-b.menu-open .site-header button:focus-visible { outline: 1px solid var(--mn-gold, #B89B5E); outline-offset: 4px; }

/* Four links: 300 italic 26/34, 24px between lines, each tap area 44px (5px padding) */
.mn__nav { position: relative; z-index: 1; }
.design-b .mn__list > li > a { display: inline-block; padding: 5px 0; font-family: var(--mn-serif); font-weight: 300; font-style: italic; font-size: 26px; line-height: 34px; letter-spacing: 0; color: var(--mn-cream); }
.design-b .mn__list > li > a:hover { color: #FBF8F3; }
.mn__list > li + li { margin-top: 14px; } /* 5 + 14 + 5 = 24px between the lines */

/* SEI / JAKU: under Experiences, 1px gold rule, text 24px in, 12px apart, 44px tap areas */
.mn__sub { margin: 1px 0 0 12px !important; padding: 0; border-left: 1px solid var(--mn-gold); }
.mn__sub li { margin: 0; }
.design-b .mn__sub a { display: block; min-height: 44px; box-sizing: border-box; margin: -8px 0; padding: 14px 0 14px 11px; font-family: var(--mn-label); font-weight: 400; font-size: 11px; line-height: 16px; letter-spacing: .22em; text-transform: uppercase; color: var(--mn-gold); }
.mn__sub li:first-child a { margin-top: 0; }
.mn__sub li:last-child a { margin-bottom: 0; }
.mn__sub li + li a { margin-top: -16px; } /* 14 + 14 - 16 = 12px between the two words */
.design-b .mn__sub a:hover { color: #CDB582; }

/* 金継ぎ: decorative, right side, from beside About down toward the signature (the triangle) */
.mn__kanji {
	position: absolute; z-index: 0; top: 290px; right: 24px;
	writing-mode: vertical-rl; text-orientation: upright;
	font-family: var(--mn-ja); font-weight: 400; font-size: 64px; line-height: 1; letter-spacing: .45em;
	color: rgba(239, 233, 223, .12);
	pointer-events: none; user-select: none;
}
.mn__kanji--svg { width: auto; height: 310px; letter-spacing: 0; }
.mn__kanji--svg svg { display: block; height: 100%; width: auto; fill: currentColor; }

/* Signature block: at the bottom (margin-top: auto), 1px rule in cream 30%, text 20px in */
/* v2 (19 Nov): no rule and no indent, the block is flush with the 24px margin. The block itself is the shared .sig component (below). */
.mn__sign { position: relative; z-index: 1; margin-top: auto; }
.mn__nav { margin-bottom: 48px; } /* short screen: the signature is pushed down and scrolls, never over the links */
/* Shared signature block (menu + footer): cream #EFE9DF name, gold #B89B5E tag, @lynh.ko then the email stacked.
   The menu values are the defaults; .sig--ft (footer.css) changes only the sizes. */
.sig p { margin: 0; }
.design-b .sig__slogan { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-style: italic; font-size: 18px; line-height: 26px; letter-spacing: 0; color: rgba(239, 233, 223, .85); }
.design-b .sig__name { margin-top: 20px; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-style: normal; font-size: 24px; line-height: 30px; letter-spacing: 0; color: #EFE9DF; }
.design-b .sig__tag { margin-top: 8px; font-family: 'Montserrat', system-ui, sans-serif; font-weight: 400; font-size: 11px; line-height: 16px; letter-spacing: .22em; text-transform: uppercase; color: #B89B5E; }
.design-b .sig__contact { margin-top: 16px; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-style: normal; font-size: 16px; line-height: 24px; color: rgba(239, 233, 223, .7); }
.sig__contact a { display: block; width: max-content; max-width: 100%; padding: 4px 0; color: inherit; text-decoration: none; transition: color .3s ease; }
.design-b .sig__contact a:hover { color: rgba(239, 233, 223, .95); }
.sig:first-child .sig__name { margin-top: 0; } /* no slogan above (footer): the name starts the block */
:lang(vi) .sig__tag { text-transform: none; letter-spacing: .08em; font-size: 12px; }

/* Fade in: links, SEI/JAKU and the signature, 500ms, 60ms apart */
.site-nav [data-mn], .site-nav .mn__sub li { opacity: 0; transition: opacity .5s ease; }
.site-nav.is-open [data-mn], .site-nav.is-open .mn__sub li { opacity: 1; }
.site-nav.is-open .mn__list > li:nth-child(1) { transition-delay: .06s; }
.site-nav.is-open .mn__list > li:nth-child(2) { transition-delay: .12s; }
.site-nav.is-open .mn__sub li:nth-child(1) { transition-delay: .18s; }
.site-nav.is-open .mn__sub li:nth-child(2) { transition-delay: .24s; }
.site-nav.is-open .mn__list > li:nth-child(3) { transition-delay: .30s; }
.site-nav.is-open .mn__list > li:nth-child(4) { transition-delay: .36s; }
.site-nav.is-open .mn__list > li:nth-child(5) { transition-delay: .42s; }
.site-nav.is-open .mn__sign { transition-delay: .42s; }

/* Top bar while the menu is open: same place, same parts, cream on navy */
.design-b.menu-open .site-header,
.design-b.menu-open .site-header.is-scrolled { color: #EFE9DF; background: #0E1A24; }
.design-b.menu-open .site-header .site-header__book:hover { color: #FBF8F3; border-color: #FBF8F3; }
.design-b.menu-open .site-header .menu-toggle__lines span:first-child { transform: rotate(45deg); }
.design-b.menu-open .site-header .menu-toggle__lines span:last-child { transform: rotate(-45deg); }
.design-b.menu-open .site-header .menu-toggle__lines { width: 18px; height: 18px; }
.design-b.menu-open .site-header .menu-toggle__lines span { top: 8.5px; }

/* Vietnamese: capitals with marks look heavy — sentence case */

@media (prefers-reduced-motion: reduce) {
	.site-nav, .design-b .site-nav, .site-nav [data-mn], .site-nav .mn__sub li, .mn a { transition: none !important; }
	.site-nav [data-mn], .site-nav .mn__sub li { opacity: 1; }
}
