:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  background: #fff8ec;
  color: #102744;
  --ink: #102744;
  --muted: #485e6a;
  --line: #d8d9cf;
  --accent: #006f68;
  --coral: #ff745b;
  --panel: #fffdf8;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell { width: min(77rem, calc(100% - 4rem)); margin-inline: auto; }
.bar-inner {
  min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between;
  gap: .35rem .85rem; padding-block: .35rem;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(.4rem, 2.8vw, 2rem); }
.site-nav a, .site-nav button {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .2rem;
  color: var(--ink); background: transparent; border: 0; font-size: .875rem;
  font-weight: 750; text-decoration: none; cursor: pointer;
}
.site-nav a:hover, .site-nav button:hover { color: var(--accent); text-decoration: underline; }
.site-nav .history-link {
  justify-content: center; padding-inline: .75rem; border: 1px solid #acdccc;
  border-radius: .28rem; background: #d5f3e8; white-space: nowrap;
}
.site-nav .history-link:hover { background: #bdebdc; }
.hero {
  isolation: isolate; position: relative; overflow: hidden; display: grid; grid-template-columns: 3fr 2fr;
  align-items: stretch; background: #ffe8cb; border-radius: .65rem;
}
.hero-copy { align-self: center; position: relative; z-index: 1; padding: clamp(2rem, 5.7vw, 5.4rem) 0 clamp(2rem, 5.7vw, 5.4rem) clamp(1.4rem, 5.7vw, 5.4rem); }
.hero h1 {
  max-width: 15ch; font-size: clamp(2.3rem, 4.9vw, 4.8rem); font-weight: 920;
  line-height: .99; letter-spacing: -.07em; overflow-wrap: break-word;
}
.hero-second-line { display: block; margin-top: .22em; color: #a83124; }
.hero-subtitle {
  max-width: 39ch; margin-top: 1.25rem; color: #394655;
  font-size: clamp(1rem, 1.5vw, 1.16rem); font-weight: 590; line-height: 1.5;
}
.hero-subtitle strong { color: var(--ink); }
.hero-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.hero .hero-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero .hero-links > * { justify-content: center; text-align: center; min-height: 3rem; }
.hero-links a, .hero-links button, .sites-dialog > header button {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem .85rem;
  background: var(--ink); border: 1px solid var(--ink); border-radius: .28rem;
  color: white; font-size: .875rem; font-weight: 730; text-decoration: none;
}
.hero-links a:hover, .hero-links button:hover, .sites-dialog > header button:hover { background: #24446b; }
.hero-art { position: relative; min-width: 0; }
.art-sun {
  position: absolute; top: 12%; left: 7%; width: 59%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(#ffad57, #ff745b 75%);
}
.art-arch {
  position: absolute; right: -12%; bottom: 0; width: 77%; height: 64%;
  border-radius: 48% 48% 0 0 / 51% 51% 0 0;
  background: repeating-linear-gradient(90deg, #007c75 0 2px, transparent 2px 10px), #20b9a7;
  transform: rotate(-12deg); transform-origin: bottom right;
}
.art-water {
  position: absolute; right: -15%; bottom: -23%; width: 116%; height: 42%; border-radius: 50%;
  background: #2bd1c0; transform: rotate(-17deg);
}
.hero-art::after {
  content: ""; position: absolute; inset: auto 2rem 1.5rem auto; width: 9rem; height: 2.35rem;
  background: repeating-linear-gradient(0deg, #fff8ec 0 2px, transparent 2px 8px);
  transform: rotate(-17deg);
}
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.music-open {
  display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem;
  color: var(--accent); background: #d5f3e8; border: 1px solid #acdccc; border-radius: 50%;
  font-size: 1.25rem; font-weight: 800; cursor: pointer;
}
.music-open:hover, .music-open.is-playing { background: #a9e6d5; }
.hero-links button { cursor: pointer; }
.site-player { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .35rem; max-width: 100%; min-width: 0; }
.site-player button {
  flex: none; width: 2.75rem; min-height: 2.75rem; color: var(--accent);
  background: transparent; border: 1px solid transparent; border-radius: .25rem; cursor: pointer;
}
.site-player button:hover { background: #bdebdc; }
.track-copy { flex: 1; display: grid; min-width: 0; padding-inline: .3rem; }
.track-label { color: var(--muted); font-size: .8125rem; }
.track-copy strong { font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-status { flex: 1 0 100%; color: var(--muted); font-size: .875rem; }
.music-status:empty { display: none; }
.sites-dialog {
  width: min(36rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto;
  padding: clamp(1rem, 4vw, 1.8rem); border: 1px solid var(--line); border-radius: .65rem;
  background: var(--panel); color: var(--ink);
}
.sites-dialog::backdrop { background: #102744aa; }
.sites-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sites-dialog button { cursor: pointer; }
.site-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.site-directory a {
  display: flex; align-items: center; min-height: 2.75rem; padding: .45rem .6rem;
  border: 1px solid var(--line); overflow-wrap: anywhere; text-decoration: none;
}
.site-directory a:hover { background: #d5f3e8; color: var(--accent); }
.inner-page { min-height: 65vh; padding-block: clamp(2.2rem, 6vw, 5rem); }
.inner-page h1 { margin-top: .8rem; font-size: clamp(2.85rem, 8vw, 6rem); line-height: 1; letter-spacing: -.075em; }
.inner-page h1 span { color: #a83124; }
.page-intro { margin-top: 1.2rem; color: var(--muted); font-size: clamp(1.12rem, 2.5vw, 1.5rem); max-width: 43ch; line-height: 1.45; }
.about-copy { max-width: 60ch; border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.5rem; line-height: 1.65; }
.about-copy p + p { margin-top: 1rem; }
.music-library { max-width: 48rem; margin-top: 1.75rem; border: 1px solid var(--line); background: var(--panel); }
.music-library .site-player { padding: .8rem; background: #d5f3e8; }
.music-library .music-toggle { border-color: #acdccc; }
.tracklist { padding: 0; margin: 0; list-style: none; }
.tracklist a {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3rem;
  padding: .7rem 1rem; border-top: 1px solid var(--line); text-decoration: none;
}
.tracklist a:hover, .tracklist a[aria-current] { color: var(--accent); background: #e4f7ef; }
.tracklist a[aria-current] { box-shadow: inset .2rem 0 var(--accent); }
@media (max-width: 30rem) {
  .bar-inner { gap: .25rem; }
  .site-nav { gap: .2rem; }
  .site-nav a, .site-nav button { font-size: .8125rem; }
  .site-nav .history-link { padding-inline: .45rem; }
  .hero .hero-links { grid-template-columns: 1fr; }
}
@media (max-width: 44rem) {
  .bar-inner { min-height: 3.65rem; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 1.7rem 1.2rem 1rem; }
  .hero h1 { font-size: clamp(2.15rem, 8.25vw, 3.5rem); }
  .hero-art { height: clamp(5.75rem, 20vw, 8.5rem); }
  .art-sun { left: 51%; top: 8%; width: clamp(5rem, 25vw, 9rem); }
  .art-arch { width: 45%; height: 145%; right: -7%; bottom: -54%; }
  .art-water { width: 85%; right: -11%; bottom: -76%; height: 130%; }
  .hero-art::after { width: 6rem; height: 1.5rem; right: 1rem; bottom: .65rem; }
  .site-directory { grid-template-columns: minmax(0, 1fr); }
}

time, .credit { color: var(--muted); }
.log { padding-block: clamp(2.5rem, 5vw, 4.6rem); min-height: 16rem; }
.empty { margin-top: 1.25rem; padding: 1.5rem; background: #f4ecdf; border-radius: .5rem; }
.day + .day { padding-top: 2rem; }
.day-heading { font-size: 1.15rem; margin-bottom: .8rem; }
.entry { padding: clamp(1rem, 3vw, 2rem); margin-bottom: 1rem; border: 1px solid var(--line); background: var(--panel); border-radius: .65rem; scroll-margin-top: 1rem; }
.entry h3 { margin-block: .4rem .65rem; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.credit { margin-bottom: 1rem; }
.video-media { width: 100%; max-width: 52rem; }
.player, .video-preview { display: block; aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: .45rem; }
.player { background: #102744; }
.video-preview { position: relative; overflow: hidden; background: #d5f3e8; }
.video-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.preview-label {
  position: absolute;
  inset: auto auto .7rem .7rem;
  padding: .5rem .8rem;
  border-radius: .3rem;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 5px #0004;
}
.video-preview:hover .preview-label { text-decoration: underline; }
.video-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.play-inline {
  margin-top: .65rem;
  min-height: 2.75rem;
  padding: .35rem .8rem;
  border: 1px solid #b2c5bb;
  border-radius: .3rem;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.play-inline:hover { background: #d5f3e8; }
.play-inline:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.entry ul { padding-left: 1.25rem; }
.details-heading { margin: 1.35rem 0 .5rem; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 !important; margin: 0; list-style: none; }
.tags li { padding: .22rem .6rem; border-radius: .25rem; background: #d5f3e8; overflow-wrap: anywhere; }
.multiline { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
details { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: .8rem; }
summary { font-weight: 700; cursor: pointer; }
details .multiline { margin-top: .65rem; max-height: 24rem; overflow: auto; }
.files li { margin-block: .6rem; overflow-wrap: anywhere; }
.files audio, .files video { display: block; margin: .5rem 0 0; max-width: 100%; }
.files video { width: 36rem; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; border-top: 1px solid var(--line); color: var(--muted); padding-block: 1.5rem 2rem; font-size: .9rem; }
@media (max-width: 44rem) {
  .shell { width: calc(100% - 2rem); }
  .log { padding-block: 1.75rem 2.5rem; }
  .day + .day { padding-top: 1.4rem; }
  .entry-meta { align-items: center; gap: .15rem .8rem; font-size: .875rem; }
  .entry-meta a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .video-actions > button { flex: 1 1 auto; }
}

.comments-dialog {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: clamp(1rem, 4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: var(--ink);
  background: var(--panel);
}
.comments-dialog::backdrop { background: #102744aa; }
.comments-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.comments-header .play-inline, .comments-form .play-inline { margin-top: 0; }
.comments-video { margin-block: .6rem 1rem; color: var(--muted); overflow-wrap: anywhere; }
.comments-form { display: grid; justify-items: start; gap: .6rem; }
.comments-form input {
  width: 100%;
  min-height: 2.75rem;
  padding: .45rem .65rem;
  border: 1px solid #b2c5bb;
  border-radius: .3rem;
  font: inherit;
}
.comments-status:empty { display: none; }

.music-dialog .music-library { margin-top: 0; }
