/* yusuketakemura.com — static rebuild of the 2023 Weebly design */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/eb-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url(/fonts/eb-garamond-latin-600-italic.woff2) format("woff2"); }

:root {
  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --ink: #2f2f2f;
  --text: #555;
  --muted: #858585;
  --faint: #a6a6a6;
  --rule: #e4e4e4;
  --band: #f0f0f0;
  --button: #333;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid #333; outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; color: var(--ink); line-height: 1.3; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 50; background: #fff; padding: 8px 14px; color: var(--ink); }
.skip-link:focus { left: 16px; }

/* ---------- Site name (inner pages) ---------- */
.site-name {
  position: absolute; top: 38px; left: 40px; z-index: 5; margin: 0;
  font-style: italic; font-weight: 600; font-size: 16px; letter-spacing: .3em;
  color: #626262; text-decoration: none; line-height: 1;
}
.site-name:hover { color: var(--ink); }

/* ---------- Menu button + overlay ---------- */
.menu-button {
  position: fixed; top: 32px; right: 40px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
  background: var(--button); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.menu-button:hover { background: #111; }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

.site-menu {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(255,255,255,.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.site-menu.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.site-menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.site-menu li + li { margin-top: 6px; }
.site-menu a {
  display: inline-block; padding: 8px 4px; text-decoration: none;
  font-size: 23px; letter-spacing: .22em; color: var(--ink);
}
.site-menu a:hover { color: #000; }
.site-menu a[aria-current="page"] { color: var(--faint); }
body.menu-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--band); color: var(--faint);
  font-size: 13px; letter-spacing: .06em; line-height: 1.8;
  padding: 40px var(--gutter) 44px; margin-top: 96px;
}
.site-footer .inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; align-items: baseline; }
.site-footer nav a { display: inline-block; white-space: nowrap; text-decoration: none; margin-right: 18px; color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }
.site-footer p { margin: 0; }
.site-footer p a { text-decoration: none; color: var(--muted); }

/* ---------- Home ---------- */
.home-hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #fff; }
.home-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 32%;
}
.home-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(rgba(255,255,255,0), #fff);
}
.home-name {
  position: absolute; z-index: 2; left: 18%; top: 46%; margin: 0;
  font-style: italic; font-weight: 600; font-size: clamp(19px, 0.9vw + 7px, 30px); letter-spacing: .32em;
  color: #626262; line-height: 1.2;
}
.home-name span { display: inline; }
.home .site-footer { margin-top: 0; }

/* ---------- About ---------- */
.about-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: #fff url(/images/home/about-background-1280.jpg) no-repeat 84% 0 / cover;
}
@media (min-width: 1300px), (min-resolution: 1.5dppx) and (min-width: 700px) {
  .about-bg { background-image: url(/images/home/about-background-2560.jpg); }
}
.about-page { max-width: 1060px; margin: 0 auto; padding: 150px 40px 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.statement { position: sticky; top: 120px; }
.statement h1 { font-size: 22px; margin: 0 0 28px; letter-spacing: .04em; }
.statement p { margin: 0 0 1.4em; font-size: 17px; line-height: 1.9; }
.cv h2 { font-size: 22px; margin: 0 0 28px; letter-spacing: .04em; }
.cv h3 { font-size: 15px; font-weight: 600; letter-spacing: .14em; color: var(--ink); margin: 40px 0 12px; }
.cv h3:first-of-type { margin-top: 0; }
.cv-list { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); column-gap: 12px; row-gap: 4px; margin: 0; font-size: 15px; line-height: 1.6; }
.cv-list dt { grid-column: 1; color: var(--muted); font-variant-numeric: lining-nums; }
.cv-list dd { grid-column: 2; margin: 0; }
.cv-list dt + dd { margin-top: 0; }
.cv-list dd + dt, .cv-list dd + dt + dd { margin-top: 10px; }

/* ---------- Solo exhibition ---------- */
.solo-page { max-width: 1040px; margin: 0 auto; padding: 100px 40px 0; }
.solo-head { text-align: center; margin-bottom: 72px; }
.solo-head h1 { font-size: 19px; font-weight: 600; letter-spacing: .35em; color: #111; margin: 0 0 30px; }
.solo-head .venue { font-size: 16px; font-weight: 600; letter-spacing: .35em; color: #666; margin: 0; }
.solo-head .dates { font-size: 15px; letter-spacing: .12em; color: var(--muted); margin: 10px 0 0; }
.solo-lead { margin: 0 0 40px; }
.solo-text { max-width: 760px; margin: 0 auto 64px; text-align: center; font-size: 16px; line-height: 2; }
.solo-text p { margin: 0 0 1.2em; }
.grid-3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid-3 a { display: block; position: relative; overflow: hidden; background: #f4f4f4; }
.grid-3 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease, opacity .3s ease; }
.grid-3 a:hover img { transform: scale(1.025); }
.credit { margin: 18px 0 0; text-align: right; font-size: 13px; letter-spacing: .06em; color: var(--muted); }

/* ---------- Works ---------- */
.works-page { max-width: 760px; margin: 0 auto; padding: 120px 40px 0; }
.work { margin: 0 0 96px; text-align: center; }
.work > a, .pair a { display: inline-block; }
.work img {
  width: auto; height: auto; max-width: 100%; max-height: min(78vh, 760px);
  margin: 0 auto; background: #f6f6f6;
}
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 96px; }
.pair .work { margin: 0; }
.pair .work img { max-height: none; width: 100%; }
figcaption { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--muted); letter-spacing: .02em; }
figcaption .title { color: var(--text); font-size: 15px; }
figcaption .title em { font-style: italic; }
figcaption span { display: block; }
figcaption .photo { margin-top: 4px; font-size: 12px; color: var(--faint); }

/* ---------- Retrospective ---------- */
.retro-page { max-width: 960px; margin: 0 auto; padding: 150px 40px 0; }
.retro-page .grid-3 img { aspect-ratio: 1 / 1; }
.retro-page .grid-3 .hover-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.94) 45%);
  color: var(--ink); font-size: 14px; line-height: 1.35; text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.retro-page .grid-3 .hover-cap span { display: block; color: var(--muted); font-size: 13px; }
@media (hover: hover) {
  .retro-page .grid-3 a:hover .hover-cap, .retro-page .grid-3 a:focus-visible .hover-cap { opacity: 1; transform: none; }
}

/* ---------- Contacts ---------- */
.contact-page { max-width: 640px; margin: 0 auto; padding: 190px 40px 0; text-align: center; }
.contact-page h2 { font-size: 24px; font-weight: 400; letter-spacing: .04em; color: #5f5f5f; margin: 0 0 30px; }
.contact-page section + section { margin-top: 96px; }
.contact-page p { margin: 0 0 6px; font-size: 17px; line-height: 1.6; }
.contact-page .small { font-size: 15px; color: var(--muted); }
.contact-lines { list-style: none; padding: 0; margin: 22px 0 0; }
.contact-lines li { margin: 0 0 12px; }
.contact-lines .label { display: block; font-size: 13px; letter-spacing: .16em; color: var(--faint); }
.contact-lines a { font-size: 19px; text-decoration: none; border-bottom: 1px solid var(--rule); color: var(--ink); }
.contact-lines a:hover { border-color: var(--ink); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 120px 24px 0; }
.notfound h1 { font-size: 22px; letter-spacing: .1em; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
  background: rgba(255,255,255,.98); color: var(--text);
}
.lightbox::backdrop { background: rgba(255,255,255,.9); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; padding: 64px 72px 8px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; }
.lb-caption { text-align: center; padding: 6px 24px 26px; font-size: 15px; line-height: 1.5; color: var(--muted); min-height: 70px; }
.lb-caption .title { color: var(--ink); }
.lb-caption span { display: block; }
.lb-btn {
  position: fixed; z-index: 2; border: 0; background: transparent; color: #444; cursor: pointer;
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 30px; line-height: 1; font-family: var(--serif);
}
.lb-btn:hover { color: #000; }
.lb-close { top: 26px; right: 36px; border-radius: 50%; background: var(--button); color: #fff; width: 44px; height: 44px; font-size: 26px; }
.lb-close:hover { background: #111; color: #fff; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; top: 36px; left: 40px; font-size: 13px; letter-spacing: .14em; color: var(--faint); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .about-page { grid-template-columns: 1fr; gap: 64px; }
  .statement { position: static; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .menu-button { top: 20px; right: var(--gutter); }
  .site-name { top: 34px; left: var(--gutter); font-size: 14px; letter-spacing: .24em; }
  .home-hero img { object-position: 76% 30%; }
  .home-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.6) 45%, rgba(255,255,255,0) 80%);
  }
  .home-name { left: var(--gutter); top: auto; bottom: 22%; font-size: 30px; letter-spacing: .16em; line-height: 1.25; }
  .home-name span { display: block; }
  .about-page, .solo-page, .works-page, .retro-page, .contact-page { padding-left: var(--gutter); padding-right: var(--gutter); }
  .about-page { padding-top: 110px; }
  .solo-page { padding-top: 110px; }
  .solo-head { margin-bottom: 44px; }
  .solo-head h1 { font-size: 17px; letter-spacing: .22em; }
  .solo-head .venue { font-size: 14px; letter-spacing: .22em; }
  .solo-text { text-align: left; font-size: 16px; line-height: 1.85; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .works-page { padding-top: 100px; }
  .work { margin-bottom: 64px; }
  .work img { max-height: none; }
  .pair { gap: 10px; margin-bottom: 64px; }
  .pair figcaption { font-size: 13px; }
  .retro-page { padding-top: 100px; }
  .contact-page { padding-top: 130px; }
  .cv-list { grid-template-columns: 5.6em minmax(0, 1fr); font-size: 15px; }
  .site-footer .inner { display: block; }
  .site-footer nav { margin-bottom: 10px; }
  .lb-stage { padding: 76px 8px 4px; }
  .lb-stage img { max-height: calc(100vh - 200px); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 20px; right: var(--gutter); }
  .lb-count { top: 34px; left: var(--gutter); }
  .lb-caption { padding: 6px 56px 24px; font-size: 14px; }
}

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