:root {
  color-scheme: dark;
  --paper: #11130f;
  --paper-dark: #171914;
  --ink: #ece9df;
  --muted: #aaa99f;
  --line: #383a31;
  --line-dark: #666653;
  --rust: #ded09b;
  --blue: #c8b46b;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .5rem .85rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus-visible { transform: translateY(1rem); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }

.site-header,
.site-main,
.site-footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--line-dark);
}
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; clip-path: circle(50%); object-fit: cover; }
.brand > span { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; font-size: .9rem; font-weight: 650; }
.brand > span span { color: var(--muted); font-size: .76rem; font-weight: 450; }
.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.top-nav a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; color: var(--blue); font-size: .88rem; text-underline-offset: 4px; }
.top-nav a:hover { text-decoration: underline; }

.hero { padding: 50px 18px 54px; border-bottom: 1px solid var(--line); }
h1, h2, .work-copy strong, .making-group h3, .community-links strong, .external-links strong {
  font-family: var(--serif);
  font-weight: 500;
}
h1 { font-size: clamp(2.35rem, 4.2vw, 3.8rem); letter-spacing: -.04em; line-height: 1.25; }

.section-block { padding: 48px 18px 54px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; gap: 18px; margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.02em; }
.work-list { border-top: 1px solid var(--line-dark); }
.work-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.work-row-feature { grid-template-columns: 112px minmax(0, 1fr) 24px; }
.work-row > img, .work-row > picture { display: block; width: 100%; height: 72px; border: 1px solid var(--line); object-fit: cover; }
.work-row > picture > img { width: 100%; height: 100%; object-fit: cover; }
.work-row > picture.room-mark > img { object-fit: contain; background: var(--paper-dark); }
.work-copy { display: grid; gap: 2px; min-width: 0; }
.work-copy strong { color: var(--blue); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.work-copy small { color: var(--muted); font-size: .89rem; }
.work-initial { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line-dark); color: var(--rust); font-family: var(--serif); font-size: 1.2rem; }
.row-arrow { justify-self: end; color: var(--rust); }
.work-row:hover .work-copy strong, .work-row:focus-visible .work-copy strong { color: var(--rust); }

.making-section { background: var(--paper-dark); }
.making-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.making-group h3 { margin-bottom: 8px; font-size: 1.35rem; }
.making-group > p { max-width: 42em; margin-bottom: 14px; color: var(--muted); font-size: .94rem; }
.text-links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.text-links li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.text-links a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; color: var(--blue); font-weight: 650; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.text-links a:hover { color: var(--rust); text-decoration-color: currentColor; }
.text-links span { color: var(--muted); font-size: .88rem; }
.section-link { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; margin-top: 12px; color: var(--rust); font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.making-experiment { display: grid; grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr); align-items: baseline; gap: 18px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.making-experiment h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.making-experiment p { color: var(--muted); font-size: .94rem; }
.making-experiment a { display: inline-flex; min-height: 44px; align-items: center; color: var(--blue); font-weight: 650; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.making-experiment a:hover, .making-experiment a:focus-visible { color: var(--rust); text-decoration-color: currentColor; }
.making-experiment span { margin-left: 12px; }

.community-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; border-top: 1px solid var(--line-dark); }
.community-links a { display: grid; gap: 2px; padding: 12px 3px; border-bottom: 1px solid var(--line); }
.community-links strong, .external-links strong { color: var(--blue); font-size: 1.15rem; }
.community-links span, .external-links span:not(.row-arrow) { color: var(--muted); font-size: .89rem; }
.other-sites { padding-bottom: 44px; }
.external-links { border-top: 1px solid var(--line-dark); }
.external-links a { display: grid; grid-template-columns: minmax(150px, .5fr) minmax(0, 1fr) 24px; align-items: center; gap: 16px; padding: 12px 3px; border-bottom: 1px solid var(--line); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; padding: 18px 0 34px; color: var(--muted); font-size: .8rem; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .site-header, .site-main, .site-footer { width: min(100% - 32px, 1120px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 16px; }
  .top-nav { justify-content: flex-start; gap: 6px 18px; width: 100%; }
  .hero { padding: 42px 4px 46px; }
  .section-block { padding: 36px 4px 42px; }
  .making-columns { gap: 34px; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .site-header, .site-main, .site-footer { width: calc(100% - 28px); }
  .brand > span { font-size: .84rem; }
  .brand > span span { font-size: .72rem; }
  .top-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 4px; }
  .top-nav a { justify-content: center; padding-inline: 2px; font-size: .78rem; text-align: center; white-space: nowrap; }
  h1 { font-size: clamp(1.7rem, 8.3vw, 2.7rem); }
  .hero { padding-top: 34px; }
  .work-row { grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 12px; }
  .work-row-feature { grid-template-columns: 72px minmax(0, 1fr) 18px; }
  .work-row > img, .work-row > picture { height: 56px; }
  .work-copy small { font-size: .82rem; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 3px; }
  .section-heading > p { line-height: 1.25; }
  .making-columns, .community-links { grid-template-columns: 1fr; }
  .making-columns { gap: 30px; }
  .making-experiment { grid-template-columns: 1fr; gap: 2px; margin-top: 26px; padding-top: 14px; }
  .making-experiment span { display: block; margin: 2px 0 0; }
  .external-links a { grid-template-columns: minmax(0, 1fr) 20px; gap: 2px 12px; }
  .external-links strong, .external-links span:not(.row-arrow) { grid-column: 1; }
  .external-links .row-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

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