:root {
  color-scheme: light;
  --ink: #29212a;
  --muted: #756c75;
  --paper: #f8f5f2;
  --accent: #c78868;
  --plum: #261b27;
  --line: #e6ded9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

a {
  color: inherit;
}

.masthead {
  position: relative;
  overflow: hidden;
  padding: clamp(0.5rem, 1vw, 0.75rem) max(1.25rem, calc((100vw - 1120px) / 2)) clamp(0.75rem, 1.5vw, 1.25rem);
  background-color: var(--plum);
  background:
    linear-gradient(rgb(38 27 39 / 62%), rgb(38 27 39 / 62%)),
    radial-gradient(ellipse at 86% 20%, rgb(199 136 104 / 22%), transparent 32%),
    radial-gradient(ellipse at 12% 100%, rgb(130 100 127 / 24%), transparent 38%),
    url("header.jpg") center / cover no-repeat;
  color: #fffaf5;
}

.masthead::after {
  position: absolute;
  right: -3rem;
  bottom: -7rem;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgb(255 250 245 / 16%);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 2.5rem rgb(255 250 245 / 3%), 0 0 0 5rem rgb(255 250 245 / 3%);
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.site-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  color: #fffaf5;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-name span {
  color: #d3cbd2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin: 1.25rem 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgb(255 250 245 / 20%);
}

.site-nav a {
  color: #d3cbd2;
  font-size: 0.88rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fffaf5;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: #c78868;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.intro {
  margin: 1rem 0 0;
  color: #d3cbd2;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.65;
}

.content-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(0.875rem, 1.75vw, 1.5rem) 1.25rem;
}

main > .content-section:first-child {
  padding-top: clamp(0.5rem, 1vw, 0.75rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.5rem;
}

h2 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.07em;
}

.section-mark {
  color: #a79ca5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.08em;
}

.schedule-section {
  padding-bottom: 1rem;
}

.notice {
  padding: clamp(0.75rem, 2vw, 1.2rem);
  border: 1px solid var(--line);
  background: #fffdfa;
}

.notice > p {
  max-width: 48rem;
  margin: 0;
  line-height: 1.9;
}

.edit-hint {
  margin: -0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.8;
}

.edit-hint code {
  padding: 0.1rem 0.3rem;
  background: #eee8e4;
  color: #563a50;
  font-size: 0.9em;
}

.schedule-error {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #a93c3c;
  background: #fff0ed;
  color: #742d2d;
  font-size: 0.9rem;
}

.schedule-error[hidden] {
  display: none;
}

.event-venue {
  margin: 0.5rem 0 0;
  color: #514851;
  font-size: 0.9rem;
  font-weight: 600;
}

.event-card .event-copy > p.event-venue + p {
  margin-top: 0.4rem;
}

.event-card h3 a {
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.button-link {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  background: var(--plum);
  color: #fffaf5;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.button-link:hover {
  background: #563a50;
}

.text-link,
.profile-source a {
  color: #77516e;
  font-size: 0.9rem;
  text-underline-offset: 0.2em;
}

.archive-section {
  padding-top: 1.25rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fffdfa;
}

.event-image {
  display: block;
  overflow: hidden;
  background: #e8e1de;
}

.event-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.event-image img {
  display: block;
  width: 100%;
  max-height: 32rem;
  object-fit: cover;
  object-position: top;
  transition: transform 300ms ease;
}

.event-image:hover img,
.event-image:focus-visible img {
  transform: scale(1.025);
}

.event-copy {
  padding: 1.15rem 1.2rem 1.4rem;
}

.event-card--text .event-copy {
  padding: 0.75rem 1rem;
}

.event-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  margin: 0 0 0.65rem;
  color: #77516e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.event-date span {
  color: var(--muted);
  font-family: "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.event-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.event-card .event-copy > p:last-child {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.gallery-section {
  border-top: 1px solid var(--line);
}

.gallery {
  columns: 3 220px;
  column-gap: 1rem;
}

.gallery a {
  display: block;
  break-inside: avoid;
  margin: 0 0 1rem;
  overflow: hidden;
  background: #e8e1de;
  outline-offset: 4px;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 350ms ease, opacity 350ms ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  transform: scale(1.025);
  opacity: 0.92;
}

.profile-section {
  max-width: 840px;
}

.profile-section h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.profile-photo {
  display: block;
  width: min(100%, 24rem);
  height: auto;
  margin: 0 0 1.5rem;
}

.profile-lead {
  margin: 0;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.9;
}

.profile-body {
  padding-top: 0.75rem;
}

.profile-body p {
  margin: 1.15rem 0;
  color: #514851;
  line-height: 2;
}

.profile-source {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

footer {
  padding: 1.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: #77516e;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

footer p {
  margin: 0.8rem 0 0;
  font-family: "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .site-name {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .site-nav {
    gap: 1.2rem;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-card:not(.event-card--text) {
    display: grid;
    grid-template-columns: minmax(110px, 36%) 1fr;
  }

  .event-image img {
    height: 100%;
    max-height: none;
  }

  .event-copy {
    align-self: center;
    padding: 1rem;
  }

  .gallery {
    columns: 2 145px;
    column-gap: 0.65rem;
  }

  .gallery a {
    margin-bottom: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
