:root {
  --paper: #f5f4ee;
  --paper-deep: #eae8df;
  --ink: #242821;
  --muted: #81837b;
  --line: #d8d5cb;
  --green: #405348;
  --yellow: #f8e648;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --header-height: 4.5rem;
  --font: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.105;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='fine'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23fine)' opacity='.72'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 280 280' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='coarse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.34' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23coarse)' opacity='.32'/%3E%3C/svg%3E");
  background-size: 160px 160px, 280px 280px;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--yellow); color: var(--ink); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: -4rem;
  left: 1rem;
  padding: 0.6rem 0.85rem;
  background: var(--yellow);
}
.skip-link:focus { top: 0.75rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  grid-column: 2;
  justify-self: center;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.language-button {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  padding: 0.2rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.language-button:hover,
.language-button:focus-visible { border-color: var(--ink); }
.site-nav { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: clamp(1.2rem, 2.5vw, 2.8rem); }
.site-nav a {
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active { border-color: var(--ink); }
.menu-button { display: none; }

.hero {
  height: 100svh;
  min-height: 34rem;
  position: relative;
  overflow: hidden;
  background: #20231f;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(238, 235, 220, 0.06);
  pointer-events: none;
}
.hero-photo {
  position: absolute;
  inset: -0.4rem;
  width: calc(100% + 0.8rem);
  height: calc(100% + 0.8rem);
  max-width: none;
  object-fit: cover;
  object-position: center center;
  filter: blur(1.05px) saturate(0.78) contrast(0.95) brightness(0.97);
}
.hero-logo-vertical {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: clamp(10rem, 17vw, 16rem);
  height: auto;
  transform: translate(-50%, -46%);
}

.home-content { padding: 4rem var(--pad) 7rem; }
.home-block {
  max-width: 82rem;
  margin: 0 auto;
  padding: 4.5rem 0;
  display: grid;
  grid-template-columns: minmax(9rem, 0.27fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  border-top: 1px solid var(--line);
}
.home-block:last-child { border-bottom: 1px solid var(--line); }
.block-side h2 {
  max-width: 9rem;
  margin: 0 0 1.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.view-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.intro-copy {
  max-width: 48rem;
  margin: -0.25rem 0 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
}
.simple-list { border-top: 1px solid var(--line); }
.list-row {
  min-height: 4.4rem;
  display: grid;
  grid-template-columns: 9rem 1fr;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.list-row time { color: var(--muted); font-size: 0.75rem; }
.empty-row { color: var(--muted); }

.contact {
  padding: 7rem var(--pad);
  display: grid;
  grid-template-columns: minmax(12rem, 0.55fr) minmax(20rem, 1fr);
  gap: clamp(3rem, 8vw, 10rem);
  background: var(--paper-deep);
  scroll-margin-top: var(--header-height);
}
.contact-heading p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
.contact-form { max-width: 48rem; }
.contact-form label { display: block; margin-bottom: 1.8rem; }
.subject-field {
  margin: 0 0 2.4rem;
  padding: 0;
  border: 0;
}
.subject-field legend {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.subject-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.subject-option {
  position: relative;
  display: block;
  margin: 0 !important;
}
.subject-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.subject-option span {
  min-height: 3.2rem;
  margin: 0 !important;
  padding: 0.75rem 0.9rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: 0.72rem !important;
  line-height: 1.35;
  letter-spacing: 0.025em !important;
  text-align: center;
  text-transform: none !important;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.subject-option:hover span { border-color: var(--ink); }
.subject-option input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.subject-option input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper) !important;
}
.contact-form label > span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
  background: transparent;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-bottom-width: 2px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.send-button {
  min-width: 8rem;
  padding: 0.75rem 1rem;
  display: inline-flex;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.send-button:hover,
.send-button:focus-visible { background: var(--ink); color: var(--paper); }
.form-status { min-height: 1.5rem; margin: 1rem 0 0; color: var(--muted); font-size: 0.72rem; }

.subpage {
  min-height: calc(100svh - 13rem);
  padding: calc(var(--header-height) + 5rem) var(--pad) 8rem;
}
.page-heading {
  max-width: 82rem;
  margin: 0 auto 4.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.page-heading p { margin: 0; color: var(--muted); font-size: 0.62rem; }
.page-heading h1 {
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.about-layout {
  max-width: 82rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}
.about-image { margin: 0; }
.about-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.full-bio { max-width: 42rem; }
.bio-heading { margin: 0 0 2.6rem; }
.bio-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.bio-heading p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.full-bio > p { margin: 0 0 1.35rem; font-size: 1rem; font-weight: 400; line-height: 1.8; }
.profile-details { margin: 4rem 0 0; border-top: 1px solid var(--line); }
.profile-details div {
  padding: 0.85rem 0;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
}
.profile-details dt { color: var(--muted); }
.profile-details dd { margin: 0; }
.archive-group,
.music-archive { max-width: 82rem; margin: 0 auto; }
.archive-group + .archive-group { margin-top: 7rem; }
.archive-group h2 {
  margin: 0 0 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.archive-list { border-top: 1px solid var(--line); }
.archive-row {
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: 10rem 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.archive-row time { color: var(--muted); font-size: 0.75rem; }
.archive-row p { margin: 0; }
.translation { color: var(--muted); font-size: 0.8rem; }
.music-archive {
  min-height: 18rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer {
  min-height: 12rem;
  padding: 3rem var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--ink);
}
.site-footer > p { grid-column: 1; margin: 0; color: var(--muted); font-size: 0.6rem; letter-spacing: 0.12em; }
.footer-home { grid-column: 2; justify-self: center; width: clamp(5.6rem, 8vw, 7.6rem); opacity: 0.92; }
.footer-home img { width: 100%; height: auto; }
.social-links { grid-column: 3; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
.social-links a {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  opacity: 0.58;
}
.social-links a:hover,
.social-links a:focus-visible { opacity: 1; }
.social-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(0.35);
}

@media (max-width: 760px) {
  :root { --header-height: 4rem; }
  .menu-button {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: block;
    padding: 0.3rem 0;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    font-size: 0.7rem;
    cursor: pointer;
  }
  .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0;
    padding: 3rem var(--pad);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--paper-deep);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1.5rem; font-weight: 300; letter-spacing: -0.02em; }
  .hero { min-height: 38rem; background-position: 58% center; }
  .hero-photo { object-position: 58% center; }
  .hero-logo-vertical { width: min(35vw, 11.5rem); transform: translate(-50%, -44%); }
  .home-content { padding-top: 2.5rem; padding-bottom: 5rem; }
  .home-block { padding: 3.5rem 0; grid-template-columns: 1fr; gap: 2.2rem; }
  .block-side { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
  .block-side h2 { margin: 0; }
  .intro-copy { font-size: 0.98rem; }
  .list-row { grid-template-columns: 4rem 1fr; }
  .contact { padding-top: 5rem; padding-bottom: 5rem; grid-template-columns: 1fr; }
  .contact-heading p { max-width: none; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .subject-options { grid-template-columns: 1fr 1fr; }
  .subpage { padding-top: calc(var(--header-height) + 3rem); padding-bottom: 5rem; }
  .page-heading { margin-bottom: 3rem; }
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .archive-row { grid-template-columns: 4rem 1fr; gap: 1rem; }
  .site-footer { min-height: 16rem; grid-template-columns: 1fr; align-items: center; justify-items: center; gap: 2rem; text-align: center; }
  .site-footer > p, .footer-home, .social-links { grid-column: 1; justify-self: center; }
  .site-footer > p { grid-row: 3; }
  .footer-home { grid-row: 1; width: 6.8rem; }
  .social-links { grid-row: 2; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
