/*
 * Work Detail -- cafe style for work single pages
 *
 *   Target: body.sg-work-page (= post x {design,magazine,book,editions,event})
 *   Scoped to .sg-work namespace. Loaded after main.css for override priority.
 *   Plain CSS -- no SCSS recompile needed on deploy.
 *
 * @since 2026-06-23
 * @since 2026-06-24 WORKS label + kicker merged into head row
 */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Monoton&family=Pinyon+Script&family=Zen+Kaku+Gothic+New:wght@400;500&family=Zen+Old+Mincho:wght@400;500;700&display=swap');

body.sg-work-page {
  --sgw-paper: #f6f1e7;
  --sgw-paper-card: #fdfbf6;
  --sgw-ink: #2c2620;
  --sgw-ink-soft: #5b5147;
  --sgw-ink-faint: #8a7f70;
  --sgw-line: #e7dcc8;
  --sgw-accent: #d5167a;
  --sgw-serif: "Zen Old Mincho", serif;
  --sgw-sans: "Zen Kaku Gothic New", system-ui, sans-serif;
  --sgw-script: "Pinyon Script", cursive;
  background: var(--sgw-paper);
}

.sg-work {
  color: var(--sgw-ink);
  font-family: var(--sgw-sans);
}

.sg-work__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.1rem, 4vw, 1.6rem) 4rem;
}

/* -- WORKS zone label: smaller than category page, same Monoton feel -- */
.sg-work__zone-label {
  font-family: 'Monoton', var(--sgw-serif);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--sgw-ink);
  margin: 0 0 0.6rem;
}

/* -- Head row: [arrow + kicker] left / cat logo right -- */
.sg-work__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding-bottom: 1rem;
  margin-bottom: 1.6rem;
  border-bottom: 2px solid var(--sgw-ink);
}

/* arrow + kicker as a single left unit */
.sg-work__back-wrap {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.sg-work__back {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--sgw-ink-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.sg-work__back:hover {
  color: var(--sgw-ink);
}
.sg-work__ico {
  width: 14px;
  height: 14px;
  flex: none;
}

/* kicker sits right of the arrow */
.sg-work__kicker {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}
.sg-work__kicker-en {
  font-family: var(--sgw-script);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1;
  color: var(--sgw-ink);
}
.sg-work__kicker-ja {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--sgw-ink-faint);
}

.sg-work__cat {
  width: 84px;
  flex: none;
  line-height: 0;
}
.sg-work__cat svg {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--sgw-ink);
}

/* -- Title -- */
.sg-work__title {
  font-family: var(--sgw-serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--sgw-ink);
  margin: 0 0 0.9rem;
}

/* -- Meta (date / categories) -- */
.sg-work__meta {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--sgw-ink-faint);
  margin: 0 0 1.8rem;
}
.sg-work__cats::before {
  content: "\00b7";
  margin: 0 0.6em;
  opacity: 0.5;
}

/* -- Eyecatch -- */
.sg-work__eye {
  margin: 0 0 2rem;
}
.sg-work__eye img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
}

/* -- Body copy -- */
.sg-work__body {
  font-size: 0.95rem;
  line-height: 1.95;
  color: #3a342e;
}
.sg-work__body > :first-child {
  margin-top: 0;
}
.sg-work__body p {
  margin: 0 0 1.2em;
}
.sg-work__body h2,
.sg-work__body h3 {
  font-family: var(--sgw-serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--sgw-ink);
  margin: 2em 0 0.6em;
}
.sg-work__body h2 { font-size: 1.1rem; }
.sg-work__body h3 { font-size: 1rem; }
.sg-work__body img { max-width: 100%; height: auto; }
.sg-work__body a {
  color: var(--sgw-accent);
  text-underline-offset: 0.18em;
}

/* -- External link button -- */
.sg-work__ext { margin: 1.8rem 0 0; }
.sg-work__ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.2em;
  border: 1px solid var(--sgw-ink);
  border-radius: 0;
  color: var(--sgw-ink);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transition: background 0.25s, color 0.25s;
}
.sg-work__ext-btn:hover {
  background: var(--sgw-ink);
  color: var(--sgw-paper);
}

/* -- Tags -- */
.sg-work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 2.4rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--sgw-line);
}
.sg-work__tag {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--sgw-ink-soft);
  border: 1px solid #d8ccb6;
  border-radius: 0;
  padding: 0.3em 0.75em;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.sg-work__tag:hover {
  border-color: var(--sgw-ink-soft);
  color: var(--sgw-ink);
}

@media (max-width: 600px) {
  .sg-work__cat { width: 68px; }
  .sg-work__kicker-en { font-size: 1.3rem; }
}

/* ===========================================================
 * themerain overrides (this page only)
 * =========================================================== */

body.sg-work-page .site-header {
  --text-color: var(--sgw-ink);
  --bg-color: var(--sgw-paper);
  color: var(--sgw-ink);
}
body.sg-work-page .site-header svg {
  fill: var(--sgw-ink);
}
body.sg-work-page .site-header .site-logo a,
body.sg-work-page .site-header .site-menu a,
body.sg-work-page .site-header .site-social a {
  color: var(--sgw-ink);
}

/* -- entry-navigation -- */
body.sg-work-page .entry-navigation {
  max-width: 760px;
  margin: 3rem auto 0;
  padding: 1.8rem clamp(1.1rem, 4vw, 1.6rem) 3.5rem;
  border-top: 1px solid var(--sgw-line);
  text-align: left;
}
body.sg-work-page .entry-navigation p {
  font-family: var(--sgw-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sgw-ink-faint);
  margin: 0 0 0.45rem;
}
body.sg-work-page .entry-navigation a {
  font-family: var(--sgw-serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--sgw-ink);
  text-decoration: none;
  transition: color 0.2s;
}
body.sg-work-page .entry-navigation a:hover {
  color: var(--sgw-accent);
}
