:root {
  --bg: #b1b1b1;
  --text: #1c1916;
  --muted: #3a342e;
  --accent: #5a301c;
  --rule: rgba(28, 25, 22, 0.2);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background-color: #b1b1b1;
  background-color: var(--bg);
  background-image: url("salon-background-image.jpg");
  background-repeat: repeat;
  color: #1c1916;
  color: var(--text);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: transparent;
  color: #1c1916;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.45;
  padding: 0.85rem 0.75rem 1.5rem;
  padding-top: calc(0.85rem + env(safe-area-inset-top));
  padding-right: calc(0.75rem + env(safe-area-inset-right));
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  padding-left: calc(0.75rem + env(safe-area-inset-left));
}

.wrap {
  --pad-x: 1.15rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.4rem var(--pad-x) 1.75rem;
  background: rgba(246, 241, 231, 0.92);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kicker,
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  margin-bottom: 0.45rem;
}

.event-title {
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

.event-title[hidden] {
  display: none;
}

.schedule-nav {
  margin-top: 1.35rem;
}

.back-current {
  margin: 0 0 0.75rem;
}

.back-current[hidden] {
  display: none;
}

.back-current a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.archive[hidden] {
  display: none;
}

.archive summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--rule);
  background: rgba(255, 250, 242, 0.72);
}

.archive summary::-webkit-details-marker {
  display: none;
}

.archive summary::marker {
  content: "";
}

.archive summary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.archive-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0.2rem 0;
  max-width: 18rem;
  border: 1px solid var(--rule);
  background: rgba(246, 241, 231, 0.96);
}

.archive-list a,
.archive-list .is-open {
  display: block;
  padding: 0.6rem 0.75rem;
  color: inherit;
}

.archive-list .is-open {
  font-family: var(--serif);
}

.now[hidden] {
  display: none;
}

.now {
  margin-top: 2.25rem;
}

.section-label {
  margin-bottom: 0.85rem;
}

.now-status {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: normal;
  line-height: 1.2;
}

.is-idle .now-status {
  font-family: var(--sans);
  font-size: 1.125rem;
  color: var(--muted);
}

.now-by {
  margin-top: 0.4rem;
  color: var(--muted);
}

.now-by:empty,
.now-time:empty {
  display: none;
}

.now-time {
  margin-top: 0.85rem;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  color: var(--muted);
}

.progress {
  height: 2px;
  margin-top: 1.15rem;
  background: var(--rule);
}

.is-idle .progress {
  display: none;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
}

.hour {
  margin-top: 2.75rem;
}

.empty {
  color: var(--muted);
}

.piece-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.piece-item + .piece-item {
  border-top: 1px solid var(--rule);
}

.piece-item.is-current {
  margin-left: calc(var(--pad-x) * -1);
  margin-right: calc(var(--pad-x) * -1);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  background: rgba(90, 48, 28, 0.09);
}

.piece {
  margin: 0;
}

.piece-head {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.95rem 0;
  font-weight: normal;
  color: inherit;
}

.piece summary {
  cursor: pointer;
}

.piece summary::-webkit-details-marker {
  display: none;
}

.piece summary::marker {
  content: "";
}

.piece summary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.piece summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.85rem;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-0.15rem) rotate(45deg);
}

.piece[open] summary::after {
  transform: translateY(0.12rem) rotate(-135deg);
}

.piece-main {
  display: flex;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.piece-text {
  flex: 1;
  min-width: 0;
}

.piece-title,
.now-status,
.event-title {
  overflow-wrap: break-word;
}

.piece-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.25;
}

.now-flag {
  display: none;
  margin-right: 0.45rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: 0.18em;
}

.piece-item.is-current .now-flag {
  display: inline;
}

.piece-by {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 1rem;
}

.piece-time {
  flex-shrink: 0;
  margin-left: 1rem;
  padding-top: 0.25rem;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}

.note {
  margin: 0;
  max-width: 38em;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.note + .note {
  margin-top: 0.9rem;
}

.note:last-child {
  margin-bottom: 1.1rem;
}

.poem {
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar {
    transition: none;
  }
}

::selection {
  background: #5a301c;
  background: var(--accent);
  color: #f6f1e7;
}
