:root {
  --paper: #f7f7f2;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #626766;
  --line: #d9ddd8;
  --green: #2f5d50;
  --red: #9a3d32;
  --blue: #345f7b;
  --gold: #96772f;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
}

body {
  margin: 0;
  font-family: Charter, "Iowan Old Style", "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.62;
}

body,
button,
input {
  letter-spacing: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--red);
}

.site-header,
.site-footer {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  display: block;
  border: 1px solid var(--line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  font-size: 14px;
}

.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.nav a[aria-current="page"],
.nav a:hover {
  border-color: var(--line);
  background: var(--paper);
}

main {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.page-kicker,
.eyebrow,
.meta,
.label,
.button,
.price,
.price-table,
.address,
.route-list {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
}

h2 {
  margin: 44px 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

p {
  max-width: 760px;
}

img {
  max-width: 100%;
  height: auto;
}

.lead {
  max-width: 820px;
  margin-top: 18px;
  color: #303332;
  font-size: 1.24rem;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 44px;
  align-items: center;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.album-hero {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.home-photo {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}

.home-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.album-cover {
  width: min(100%, 460px);
  margin: 22px 0 24px;
}

.album-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.home-photo figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.archive-mark {
  width: 100%;
  max-width: 220px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.album-list,
.song-list,
.track-list,
.info-grid {
  display: grid;
  gap: 18px;
}

.album-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.album-card,
.song-card,
.track-card,
.info-panel,
.notice {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.album-card,
.info-panel,
.notice {
  padding: 22px;
}

.album-card {
  text-decoration: none;
  color: var(--ink);
}

.album-card-cover {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.album-card:hover {
  border-color: var(--green);
}

.album-card p,
.info-panel p,
.notice p {
  margin-bottom: 0;
}

.terms-entry {
  max-width: 820px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.terms-entry summary {
  min-height: 48px;
  padding: 12px 16px;
  color: var(--ink);
  cursor: pointer;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
}

.terms-entry p {
  margin: 0;
  padding: 0 16px 16px;
}

.detail-list {
  margin: 0;
  padding: 0 18px 16px 36px;
}

.detail-list li {
  margin: 0 0 8px;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.title-menu {
  margin: 6px 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.title-menu ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding-left: 22px;
}

.title-menu li {
  padding-left: 2px;
}

.title-menu a {
  color: var(--ink);
  text-decoration: none;
}

.title-menu a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.song-card,
.track-card {
  overflow: hidden;
  scroll-margin-top: 24px;
}

.song-main,
.track-main {
  padding: 24px;
}

.audio-panel {
  margin: 16px 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.audio-button {
  width: fit-content;
}

.audio-panel audio {
  width: 100%;
  max-width: 620px;
  display: block;
  margin-top: 10px;
}

.audio-pending,
.audio-hint {
  display: block;
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.support-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.support-box {
  min-width: 0;
  padding: 16px;
  background: #fbfbf8;
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.address {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.82rem;
}

.price {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--green);
  background: #ffffff;
  color: var(--green);
}

.button.is-disabled {
  border-color: var(--line);
  background: #ecefed;
  color: #606665;
  cursor: default;
}

.lyrics {
  margin-top: 18px;
  padding-left: 18px;
  border-left: 3px solid var(--green);
}

.lyrics p {
  margin: 0 0 18px;
}

.price-table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  background: #eef3f1;
}

.route-list {
  padding-left: 18px;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
}

.footer-inner {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .header-inner,
  .home-intro {
    align-items: flex-start;
  }

  .header-inner {
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .home-intro,
  .album-list,
  .info-grid,
  .support-strip {
    grid-template-columns: 1fr;
  }

  .home-photo,
  .archive-mark {
    max-width: 520px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 17px;
  }

  main {
    width: min(100% - 24px, 1040px);
    padding-top: 34px;
  }

  .header-inner,
  .footer-inner {
    width: min(100% - 24px, 1040px);
  }

  .song-main,
  .track-main,
  .album-card,
  .info-panel,
  .notice {
    padding: 18px;
  }
}
