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

@font-face {
  font-family: "Shippori Site";
  src: url("fonts/shippori-site.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Shippori Mincho";
  src: url("fonts/shippori-mincho.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --paper: #b5bcba;
  --ink: #000;
  --secondary-ink: #303833;
  --underline: #69736e;
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", "Shippori Site", "Shippori Mincho", Georgia, serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body {
  width: min(100% - 3.5rem, 48rem);
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2, h3, .item-title { text-wrap: pretty; }
a {
  color: inherit;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip {
  position: absolute;
  left: .75rem;
  top: .75rem;
  padding: .25rem .6rem;
  background: var(--paper);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.home { padding: clamp(4.2rem, 14vh, 9rem) 0 5rem; }
.home h1 {
  font-size: clamp(2.8rem, 6vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -.026em;
}
.home h1 span {
  display: block;
  margin-top: .75rem;
  font-size: clamp(1.45rem, 2.9vw, 1.8rem);
  line-height: 1.5;
  letter-spacing: .025em;
}
.intro { margin-top: 2.4rem; max-width: 34rem; }
.home nav { margin-top: 2rem; }
.home-contact {
  margin-top: 2.2rem;
  color: var(--secondary-ink);
  font-size: 1.05rem;
}
nav { display: flex; gap: .35rem clamp(.75rem, 4vw, 1.35rem); align-items: baseline; flex-wrap: wrap; }
nav a { padding-block: .18rem; }
.masthead {
  padding-top: clamp(1.8rem, 6vh, 3.8rem);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .65rem 2rem;
}
.masthead .name { font-size: 1.45rem; text-decoration: none; }
.masthead .name:hover, .item-title:hover { text-decoration: underline; }
.masthead nav { font-size: 1.08rem; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover, .masthead nav [aria-current] { text-decoration: underline; }
.page { padding: clamp(2.4rem, 8vh, 5rem) 0 4.5rem; }
.page > h1 { margin-bottom: 2rem; font-size: clamp(2.35rem, 5vw, 3.3rem); line-height: 1.1; }
.year-group { display: grid; grid-template-columns: 3.8rem minmax(0, 1fr); gap: .25rem 1rem; }
.year-group + .year-group { margin-top: 2.3rem; }
.year-group h2 { font-size: 1.18rem; color: var(--secondary-ink); padding-top: .17rem; }
.work-list { list-style: none; padding: 0; }
.work-list li + li { margin-top: 1.35rem; }
.item-title { text-decoration: none; font-size: 1.42rem; line-height: 1.22; }
.item-title:lang(ja) { font-size: 1.15rem; line-height: 1.65; }
.item-info { font-size: 1.06rem; color: var(--secondary-ink); margin-top: .18rem; }
.item-links { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .8rem; }
.item-info .item-links { margin-inline-start: .8em; }
.item-info > .item-links:first-child { margin-inline-start: 0; }
.detail { max-width: 41rem; }
.detail > h1 { font-size: clamp(2rem, 4.8vw, 2.9rem); line-height: 1.13; margin-bottom: 1.45rem; }
.detail > h1:lang(ja) { font-size: clamp(1.65rem, 3.8vw, 2.35rem); line-height: 1.5; }
.detail .translation { margin-bottom: 1.2rem; color: var(--secondary-ink); }
.detail > p + p { margin-top: .5rem; }
.detail .item-links, .related { margin-top: 1.65rem; }
.related h2, .prose h2 { font-size: 1.48rem; line-height: 1.3; margin-bottom: .55rem; }
.prose ul { padding-inline-start: 1.2em; }
.related ul { padding: 0; list-style: none; }
.related li + li { margin-top: .85rem; }
.record-date, .data-link { margin-top: 2.6rem; font-size: .94rem; color: var(--secondary-ink); }
.prose { max-width: 38rem; }
.prose > * + * { margin-top: .85rem; }
.prose a[href$=".pdf"] { color: var(--secondary-ink); font-size: 1.05rem; }
.prose h2 { margin-top: 2rem; }
.prose li + li { margin-top: .23rem; }
@media (max-width: 36rem) {
  body { width: calc(100% - 2.5rem); }
  .masthead { display: block; }
  .masthead nav { margin-top: .5rem; }
  .year-group { display: block; }
  .year-group h2 { margin-bottom: .55rem; }
}
@media print {
  :root { background: white; color: black; }
  body { width: 100%; font-size: 11pt; }
  .home, .page { padding: 0; }
  .skip, .masthead, .data-link { display: none; }
  .work-list li { break-inside: avoid; }
}
