:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --ink: #171e23;
  --muted: #4e5555;
  --line: #d5d5cc;
  --night: #151e26;
  --light: #fbf8f0;
  --blue: #acc2cd;
  --reading: "Yu Gothic Medium", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --mincho: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif CJK JP", "MS PMincho", serif;
  --gutter: clamp(1.35rem, 6.1vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.9 var(--reading); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
figure, h1, h2, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #517b96; outline-offset: 5px; }

.skip-link { position: fixed; z-index: 5; top: .875rem; left: .875rem; transform: translateY(-200%); padding: .4rem .8rem; background: var(--paper); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 2; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: clamp(.6rem, 2vw, 1.5rem); min-height: 5rem; padding-inline: var(--gutter); max-width: 100rem; margin-inline: auto; }
.wordmark { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; font: 700 .875rem/1.25 Arial, sans-serif; letter-spacing: .17em; white-space: nowrap; }
.wordmark-second { font-weight: 400; }
.cut-mark { position: relative; flex: none; width: 1.4rem; height: 1.4rem; color: #3d5667; }
.cut-mark::before, .cut-mark::after { position: absolute; content: ""; inset: 0; border: 1px solid currentColor; }
.cut-mark::after { rotate: 45deg; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.25vw, 2.45rem); margin-inline-start: auto; }
.site-nav a { position: relative; padding-block: .45rem; font-size: .875rem; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .back-top:hover { text-decoration: underline; text-underline-offset: .35em; }
.site-nav .nav-shop { padding: .38rem .9rem; border: 1px solid #8f999b; }
.menu-toggle { display: none; }
.language { position: relative; flex: none; }
.language summary { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding-inline: .4rem; list-style: none; font-size: .875rem; white-space: nowrap; cursor: pointer; }
.language summary::-webkit-details-marker { display: none; }
.language summary::after { content: ""; width: .38rem; height: .38rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-.12rem) rotate(45deg); }
.language[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.language-options { position: absolute; z-index: 1; right: 0; display: grid; min-width: 8.75rem; padding: .35rem; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 8px 18px #171e2318; }
.language-options a { padding: .45rem .6rem; font-size: .875rem; text-decoration: none; }
.language-options a:hover, .language-options [aria-current="page"] { background: #e8edeb; }
.language-options [aria-current="page"] { font-weight: 700; }

.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--night); color: var(--light); }
.hero-content { display: flex; align-items: center; justify-content: flex-end; padding: clamp(3rem, 6vw, 6rem) clamp(1.75rem, 4.1vw, 5rem) clamp(3.4rem, 7vw, 7rem) var(--gutter); }
.hero-inner { width: min(100%, 26rem); }
.hero-kicker, .eyebrow { display: inline-flex; align-items: center; gap: .65rem; font: 600 .8125rem/1.4 Arial, sans-serif; letter-spacing: .21em; color: #3d5767; }
.hero-kicker { color: var(--blue); }
.hero-kicker::before, .eyebrow::before { content: ""; display: inline-block; width: 1.4rem; height: 1px; background: currentColor; }
.hero h1 { margin: .28em 0 .26em; font: 500 clamp(3.9rem, 7.2vw, 7.5rem)/1.12 var(--mincho); letter-spacing: .055em; }
.hero:lang(en) h1, .hero:lang(zh) h1 { font-size: clamp(3.1rem, 5.7vw, 6.25rem); }
.hero:lang(en) h1 { letter-spacing: .015em; }
.hero p { color: #e1e3df; line-height: 2.05; }
.hero .button { margin-top: clamp(1.4rem, 3vw, 2.55rem); }
.hero-figure { position: relative; min-height: clamp(31rem, 45vw, 46rem); overflow: hidden; background: #b3ac9e; }
.hero-figure img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 35% 57%; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.1rem; min-width: 9.5rem; padding: .62rem 1.2rem; border: 1px solid transparent; font-weight: 600; font-size: .875rem; letter-spacing: .07em; line-height: 1.6; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.button--light { background: var(--light); color: var(--night); }
.button--light:hover { background: #dce7eb; border-color: #dce7eb; }
.hero :focus-visible, .shop :focus-visible, .gallery-dialog :focus-visible { outline-color: #c6d9e5; }

.section-shell { width: min(calc(100% - var(--gutter) * 2), 78rem); margin-inline: auto; }
section[id] { scroll-margin-top: 5rem; }
.section-heading h2 { margin-top: .46em; font: 500 clamp(1.9rem, 3.3vw, 3.1rem)/1.35 var(--mincho); letter-spacing: .08em; }
html:lang(en) { --mincho: Georgia, serif; --reading: Arial, sans-serif; }
html:lang(ko) { --mincho: Batang, "Noto Serif CJK KR", serif; --reading: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
html:lang(zh-Hans) { --mincho: "Songti SC", SimSun, serif; --reading: "Microsoft YaHei", "PingFang SC", sans-serif; }
html:lang(zh-Hant) { --mincho: "Songti TC", PMingLiU, serif; --reading: "Microsoft JhengHei", "PingFang TC", sans-serif; }
html:lang(en) :is(.story, .works, .shop) .eyebrow { display: none; }
html:lang(en) .section-heading h2 { letter-spacing: .025em; }
.story, .profile { display: grid; grid-template-columns: minmax(15.5rem, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 8vw, 9rem); }
.story { padding-block: clamp(4.5rem, 8.7vw, 8.5rem); }
.story-copy, .profile-copy { max-width: 32rem; }
.story-copy p, .profile-copy p { line-height: 2.15; }
.story-copy p + p, .profile-copy p + p { margin-top: 1.1rem; }
.story-copy .story-lead { font: 500 clamp(1.3rem, 2.25vw, 2rem)/1.7 var(--mincho); letter-spacing: .055em; }
.story-copy p:not(.story-lead), .profile-copy p:not(.profile-name), .works-heading > p { color: var(--muted); }

.works { background: #e9edec; border-block: 1px solid #dbe1df; }
.works-inner { padding-block: clamp(4rem, 7.5vw, 7rem); }
.works-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 3.5vw, 3rem); }
.works-heading > p { padding-bottom: .15rem; }
.works-grid { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr); gap: clamp(1.4rem, 3.4vw, 3.5rem); }
.work--base { margin-top: clamp(1rem, 4.1vw, 4rem); }
.work-image { position: relative; display: block; aspect-ratio: 1.35; overflow: hidden; background: #cec8bd; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: scale .35s ease; }
.work--side img { object-position: 36% 65%; }
.work-image:hover img { scale: 1.025; }
.work-zoom { position: absolute; top: .75rem; right: .75rem; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; color: var(--ink); background: var(--paper); font: 400 1.5rem/1 Arial, sans-serif; }
.work figcaption { border-bottom: 1px solid #c3cecd; padding: .8rem 0; font-family: var(--mincho); font-weight: 600; letter-spacing: .075em; }

.profile { padding-block: clamp(4rem, 7vw, 7rem); }
.profile-copy .profile-name { font: 500 clamp(1.5rem, 2.5vw, 2.15rem)/1.5 var(--mincho); letter-spacing: .12em; }
.profile-name span { display: block; margin-top: .45rem; color: #3d5767; font: 600 .8125rem/1.5 Arial, sans-serif; letter-spacing: .17em; }
.career { margin: 1.5rem 0 .85rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.career li { display: grid; grid-template-columns: 3.6rem 1fr; gap: .6rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.career time { padding-top: .34rem; color: #3d5767; font: 600 .875rem/1.5 Arial, sans-serif; font-variant-numeric: tabular-nums; }
.profile-source { color: var(--muted); font-size: .8125rem; text-underline-offset: .25em; }
.shop { background: var(--night); color: var(--light); }
.shop-inner { display: grid; grid-template-columns: minmax(15.5rem, .8fr) minmax(0, 1.2fr); align-items: end; gap: 1.1rem clamp(2rem, 8vw, 9rem); padding-block: clamp(3rem, 6.4vw, 6rem); }
.shop .eyebrow { color: var(--blue); }
.shop-copy p { color: #d8e2e6; }
.shop-copy .button { margin-top: 1rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; min-height: 6rem; padding-block: 1.3rem; }
.back-top { margin-left: auto; font-size: .875rem; text-decoration: none; }
.footer-inner small { color: var(--muted); font: 400 .75rem/1.5 Arial, sans-serif; letter-spacing: .095em; }

.gallery-dialog { max-width: min(66rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); border: 1px solid #56646b; padding: 0; color: var(--light); background: var(--night); }
.gallery-dialog::backdrop { background: rgb(13 19 25 / 88%); }
.gallery-view { display: grid; gap: .7rem; padding: .65rem; }
.gallery-toolbar, .gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.gallery-toolbar { padding-left: .4rem; }
.gallery-photo { width: 100%; max-height: calc(100vh - 10rem); object-fit: contain; }
.gallery-dialog button { min-height: 2.75rem; padding: .2rem .75rem; border: 1px solid #82939a; color: inherit; background: transparent; cursor: pointer; }
.gallery-dialog button:hover { background: #334651; }
.gallery-dialog .gallery-close { min-width: 2.75rem; font: 400 1.6rem/1 Arial, sans-serif; }

@media (max-width: 960px) {
  .masthead { min-height: 4.25rem; gap: .8rem; }
  .wordmark { gap: .65rem; letter-spacing: .12em; }
  .site-nav .nav-shop { padding-inline: .6rem; }
  section[id] { scroll-margin-top: 4.25rem; }
  .masthead { flex-wrap: wrap; }
  .wordmark { min-height: 2.75rem; }
  .cut-mark { width: 1.15rem; height: 1.15rem; }
  .language { order: 1; margin-inline-start: auto; }
  .menu-toggle { order: 2; }
  .site-nav { order: 3; width: 100%; flex-wrap: wrap; padding: 0 0 .8rem; }
  .menu-ready { position: relative; }
  .menu-ready .menu-toggle { display: flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .3rem 0 .3rem .6rem; border: 0; background: transparent; color: inherit; font-size: .875rem; cursor: pointer; }
  .menu-toggle-icon { width: .95rem; height: .6rem; border-block: 1px solid currentColor; }
  .menu-ready .site-nav { position: absolute; top: 100%; left: 0; display: grid; padding: .65rem var(--gutter) 1rem; gap: 0; background: var(--paper); border-block: 1px solid var(--line); }
  .menu-ready .site-nav a { min-height: 2.75rem; padding-block: .53rem; }
  .menu-ready .site-nav .nav-shop { width: fit-content; margin-top: .35rem; }
  .menu-ready .menu-toggle[aria-expanded="false"] + .site-nav { display: none; }
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-content { justify-content: flex-start; padding: 2.9rem var(--gutter) 3.25rem; }
  .hero h1 { font-size: clamp(3.45rem, 11.5vw, 5rem); }
  .hero:lang(en) h1, .hero:lang(zh) h1 { font-size: clamp(3rem, 10vw, 5rem); }
  .hero-figure { min-height: 0; aspect-ratio: 1.36; }
  .hero-figure img { object-position: 35% 68%; }
  .story, .profile, .shop-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .works-heading { display: grid; }
  .works-grid { grid-template-columns: 1fr; }
  .work--base { margin-top: 0; }
  .footer-inner { column-gap: 1rem; }
  .footer-inner small { width: 100%; }
}

@media (max-width: 420px) {
  .masthead { gap: .45rem; }
  .masthead .wordmark { font-size: .75rem; letter-spacing: .1em; }
  .language summary { padding-inline: .2rem; gap: .4rem; }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu-ready .menu-toggle { min-width: 2.75rem; padding: 0; justify-content: center; }
}

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