/* ============================================================
   Ryosuke Hayashi — ryosukehayashi.com
   Design principles (fixed):
   - Pure white background. Only artworks carry color.
   - Three-step gray hierarchy: #1a1a1a / #6b6b6b / #9a9a9a
   - Helvetica-family + Noto Sans JP / Hiragino
   - "削るほど強くなる" — no decoration, no template parts.
   ============================================================ */

:root {
  --ink:     #1a1a1a;
  --sub:     #6b6b6b;
  --caption: #9a9a9a;
  --bg:      #ffffff;
  --hair:    #e8e8e8;
  --max:     960px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial,
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.9;
  font-feature-settings: "palt";
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sub); }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

img { display: block; max-width: 100%; height: auto; }

/* ---- Layout ---- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / Nav ---- */

header {
  padding: 48px 0 0;
}

.site-name {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
}

.site-name .ja {
  color: var(--sub);
  font-size: 12px;
  margin-left: 10px;
}

nav {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .06em;
}

nav a {
  color: var(--sub);
  margin-right: 22px;
}

nav a[aria-current="page"] {
  color: var(--ink);
}

/* ---- Main ---- */

main { padding: 64px 0 96px; }

h1 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .02em;
}

h2 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 3em;
  margin-bottom: 1.2em;
}

p { font-size: 13px; line-height: 1.9; }

.sub { color: var(--sub); }

.caption {
  font-size: 11px;
  color: var(--caption);
  line-height: 1.7;
}

/* ---- Home ---- */

.home main {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home .hero {
  max-width: 620px;
  margin: 0 auto;
}

.home .hero figcaption {
  margin-top: 14px;
}

.home .statement-line {
  margin-top: 40px;
  font-style: italic;
  color: var(--sub);
  text-align: center;
  font-size: 13px;
}

/* ---- Works ---- */

.work {
  margin-bottom: 96px;
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  gap: 40px;
  align-items: start;
}

.work .plate {
  background: #f6f6f5;   /* placeholder tone until image is provided */
}

.work .plate img[data-missing="true"] { display: none; }

.work .plate .ph {
  aspect-ratio: var(--ar, 318 / 410);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--caption);
  font-size: 11px;
}

.work .meta .title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}

.work .meta .yearsize {
  margin-top: 6px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.7;
}

.work .meta .materials {
  margin-top: 14px;
  font-size: 11px;
  color: var(--caption);
  line-height: 1.7;
  max-width: 360px;
}

.work .meta .note {
  margin-top: 10px;
  font-size: 11px;
  font-style: italic;
  color: var(--caption);
}

.section-divider {
  margin: 96px 0 64px;
  border: 0;
  border-top: 1px solid var(--hair);
}

.section-label {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--sub);
  margin-bottom: 48px;
}

/* ---- Biography ---- */

.bio-block { max-width: 640px; }

.bio-block + .bio-block { margin-top: 2.4em; }

.statement p + p { margin-top: 1.4em; }

.cv-list { list-style: none; }

.cv-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.cv-list .y { color: var(--sub); }

.cv-list .ja-line {
  display: block;
  color: var(--caption);
  font-size: 11px;
  line-height: 1.7;
}

/* ---- News ---- */

.news-list { list-style: none; max-width: 640px; }

.news-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.news-list .d { color: var(--sub); }

/* ---- Contact ---- */

.contact-block { max-width: 640px; }
.contact-block p + p { margin-top: 1em; }

/* ---- Footer ---- */

footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--hair);
}

footer .caption a { color: var(--caption); }
footer .caption a:hover { color: var(--sub); }

/* ---- Mobile: vertical flow (image → caption) ---- */

@media (max-width: 720px) {
  header { padding-top: 32px; }
  main { padding: 48px 0 72px; }

  .work {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 72px;
  }

  .work .meta .materials { max-width: none; }

  .home main { min-height: auto; }
}

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