@charset "UTF-8";

/* Shared palette and typography: slides/docs/assets/archive.css. */
:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --ink: #252924;
  --muted: #686c63;
  --line: #d5d7cd;
  --accent: #b53d27;
  --surface: #eeeee4;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
html[lang="ja"] body:not(.not-found) [lang="en"],
html[lang="en"] body:not(.not-found) [lang="ja"],
[hidden] { display: none !important; }
::selection { background: #edd4ca; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.mono, .eyebrow { font-family: var(--mono); font-weight: 400; }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .18em; line-height: 1.7; }
.accent, .title-dot { color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 24px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 500; line-height: 1.6; transition: color .18s, border-color .18s; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link > span[aria-hidden] { color: var(--accent); font-size: 19px; line-height: 1; }
.skip-link { position: absolute; z-index: 5; top: 12px; left: 12px; transform: translateY(-160%); padding: 8px 16px; background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; border-bottom: 1px solid var(--ink); padding-block: 26px; gap: 24px; }
.brand { font-size: 15px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 400; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 12px; }
.main-nav a:hover { color: var(--accent); }
.nav-arrow { margin-left: 7px; color: var(--accent); font-size: 14px; }
.language-switch { display: flex; align-items: center; gap: 5px; padding-left: 20px; border-left: 1px solid var(--line); font-family: var(--mono); font-size: 11px; }
.language-switch > span { color: var(--muted); }
.language-switch button { border: 0; padding: 5px 6px; background: transparent; color: var(--muted); cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--accent); box-shadow: 0 1px 0 currentColor; font-weight: 700; }

.hero { padding-block: 70px 52px; border-bottom: 1px solid var(--ink); }
.hero h1 { font-size: clamp(36px, 6vw, 80px); font-weight: 650; letter-spacing: -.055em; line-height: 1.15; }

.section { padding-block: 64px; }
.section-label { display: flex; align-items: baseline; gap: 15px; }
.section-number { color: var(--accent); font-size: 11px; white-space: nowrap; }
.section-label h2 { font-size: 19px; font-weight: 550; letter-spacing: -.02em; }
.about-section { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; border-bottom: 1px solid var(--ink); }
.profile-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.portrait { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; }
.profile-name { font-size: 27px; letter-spacing: .05em; line-height: 1.5; font-weight: 550; }
.profile-name [lang="en"] { letter-spacing: -.025em; }
.profile-handle { color: var(--muted); margin-top: 5px; font-size: 11px; }
.profile-handle > span { padding-inline: 6px; color: var(--muted); }
.profile-copy { max-width: 680px; font-size: 15px; line-height: 2.1; }
.topics { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin-block: 23px 27px; gap: 8px; }
.topics li { padding: 3px 11px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.profile-links { display: flex; gap: 30px; }
.link-note { font-size: 11px; font-weight: 400; }

.section-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-note { font-size: 12px; color: var(--muted); }
.project { display: grid; grid-template-columns: 36px minmax(0, 1fr) 137px; column-gap: 28px; padding-block: 30px 32px; border-top: 1px solid var(--line); }
.project:first-child { border-top-color: var(--ink); }
.project:last-child { border-bottom: 1px solid var(--ink); }
.project-id { color: var(--accent); font-size: 12px; padding-top: 3px; }
.project-category { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.project h3 { font-size: 28px; font-weight: 550; letter-spacing: -.04em; line-height: 1.4; margin-block: 5px 12px; }
.project h3 a { display: inline-flex; align-items: center; gap: 15px; }
.project-arrow { font-size: 22px; color: var(--accent); transition: transform .18s; }
.project h3 a:hover { color: var(--accent); }
.project h3 a:hover .project-arrow { transform: translate(3px, -3px); }
.project-main > p:last-child { max-width: 700px; font-size: 14px; color: var(--muted); line-height: 1.95; }
.project-meta { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; padding-block: 2px 3px; }
.project-branding { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.project-logo { width: 96px; height: 96px; object-fit: contain; }
.project-tag { padding: 3px 10px; font-family: var(--mono); font-size: 10px; border: 1px solid var(--line); white-space: nowrap; }
.readme-link { font-size: 11px; letter-spacing: .03em; white-space: nowrap; padding-block: 6px; }
.readme-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.readme-link span { color: var(--accent); margin-left: 12px; }
.all-projects { margin-top: 28px; }

.book-section { padding-block: 60px 65px; }
.book-layout { display: grid; grid-template-columns: 1fr 210px 1.7fr; column-gap: 60px; row-gap: 38px; align-items: start; padding-block: 36px 50px; border-block: 1px solid var(--ink); }
.book-layout > .section-label { grid-column: 1 / -1; }
.book-cover { grid-column: 2; }
.book-cover img { width: 100%; border: 1px solid var(--line); }
.book-copy .eyebrow { font-size: 10px; letter-spacing: .08em; }
.book-copy h3 { font-size: 36px; font-weight: 550; line-height: 1.4; margin-top: 15px; letter-spacing: -.04em; }
.book-subtitle { color: var(--muted); font-size: 13px; margin-top: 4px; }
.book-description { color: var(--muted); font-size: 14px; margin-top: 21px; line-height: 1.95; }
.book-credits { color: var(--muted); font-size: 12px; line-height: 1.9; margin-block: 20px; }

.slides-section { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; padding-block: 30px 70px; border-bottom: 1px solid var(--ink); }
.slides-link { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 12px; margin: -12px; transition: background .18s; }
.slides-link:hover { background: var(--surface); }
.slides-title { display: block; font-size: 36px; font-weight: 550; line-height: 1.45; letter-spacing: -.045em; }
.slides-description { display: block; font-size: 13px; color: var(--muted); margin-top: 20px; }
.slides-path { display: inline-block; font-size: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; margin-top: 17px; }
.slides-arrow { color: var(--accent); font-size: 48px; font-weight: 400; line-height: 1; transition: transform .18s; }
.slides-link:hover .slides-arrow { transform: translate(3px, -3px); }

.site-footer { padding-block: 30px 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 25px; }
.footer-contact { display: flex; align-items: baseline; gap: 20px; font-size: 12px; color: var(--muted); }
.footer-contact > .mono { color: var(--accent); font-size: 11px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 12px; color: var(--muted); }
.footer-bottom > .mono { font-size: 10px; letter-spacing: .08em; }
.footer-bottom a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.not-found { min-height: 100svh; display: grid; align-items: center; }
.not-found h1 { font-size: clamp(48px, 7vw, 90px); line-height: 1.1; font-weight: 650; letter-spacing: -.065em; margin-block: 25px; }
.not-found main > p:not(.eyebrow) { color: var(--muted); margin-bottom: 30px; }

@media (max-width: 1050px) {
  .site-header { gap: 20px; }
  .main-nav { gap: 20px; }
  .language-switch { padding-left: 16px; }
  .about-section, .slides-section { grid-template-columns: 1fr 2.4fr; gap: 30px; }
  .project { grid-template-columns: 30px minmax(0, 1fr) 110px; gap: 20px; }
  .book-layout { grid-template-columns: .15fr 180px 1.5fr; column-gap: 40px; }
  .book-copy h3 { font-size: 32px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 20px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 22px 14px; gap: 20px; flex-wrap: wrap; }
  .brand { font-size: 14px; }
  .language-switch { order: 1; margin-left: auto; padding-left: 12px; }
  .main-nav { width: 100%; order: 2; justify-content: space-between; gap: 16px; padding-block: 3px; font-size: 12px; }
  .hero { padding-block: 48px 36px; }
  .section { padding-block: 42px; }
  .section-label { gap: 13px; }
  .section-label h2 { font-size: 17px; }
  .about-section { grid-template-columns: 1fr; gap: 30px; }
  .profile-heading { gap: 17px; margin-bottom: 21px; }
  .portrait { width: 64px; height: 64px; }
  .profile-name { font-size: 23px; }
  .profile-handle { font-size: 10px; }
  .profile-copy { font-size: 14px; line-height: 2; }
  .topics { gap: 7px; margin-top: 21px; }
  .topics li { font-size: 10px; padding: 3px 10px; }
  .section-topline { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 25px; }
  .section-note { padding-left: 39px; font-size: 12px; }
  .project { grid-template-columns: 24px minmax(0, 1fr); gap: 17px 15px; padding-block: 25px; }
  .project-id { grid-row: span 2; font-size: 10px; }
  .project-category { font-size: 9px; }
  .project h3 { font-size: 26px; margin-bottom: 11px; }
  .project-main > p:last-child { font-size: 14px; line-height: 1.95; }
  .project-meta { grid-column: 2; flex-direction: row; align-items: center; padding: 0; }
  .project-branding { flex-direction: row; gap: 8px; }
  .project-logo { width: 56px; height: 56px; }
  .project-tag { font-size: 10px; padding: 2px 9px; }
  .readme-link { font-size: 10px; }
  .all-projects { font-size: 12px; }
  .book-section { padding-block: 0 42px; }
  .book-layout { grid-template-columns: 1fr; gap: 30px; padding-block: 34px 40px; }
  .book-cover { grid-column: 1; width: 155px; margin: 0 auto; }
  .book-copy h3 { font-size: 32px; }
  .book-subtitle { font-size: 12px; }
  .book-description { font-size: 14px; }
  .slides-section { grid-template-columns: 1fr; gap: 28px; padding-block: 0 42px; }
  .slides-title { font-size: 31px; }
  .slides-arrow { font-size: 38px; }
  .slides-description { font-size: 12px; margin-top: 16px; }
  .slides-path { margin-top: 13px; }
  .footer-top { align-items: flex-start; gap: 20px; }
  .footer-contact { gap: 10px; font-size: 11px; }
  .footer-bottom { flex-wrap: wrap; row-gap: 19px; font-size: 11px; }
  .footer-bottom > .mono { display: none; }
  .not-found h1 { font-size: 52px; }
}
@media (max-width: 360px) {
  .footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
