:root {
  color-scheme: dark;
  --bg: #09090b;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.66);
  --line: rgba(244, 241, 234, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  background:
    radial-gradient(ellipse 60% 40% at 50% 12%, rgba(78, 70, 52, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

button,
a {
  font: inherit;
  color: inherit;
}

.back {
  position: fixed;
  z-index: 5;
  top: 18px;
  left: 22px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.back:hover,
.back:focus-visible {
  color: var(--text);
}

.app {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 56px;
}

.intro {
  text-align: center;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 560;
  letter-spacing: -0.03em;
}

.list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.item {
  border-bottom: 1px solid var(--line);
}

.item-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 2px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
}

.item-button:hover {
  color: #fff;
}

.item-button:focus-visible,
.back:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  position: relative;
}

.mark::before,
.mark::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.mark::after {
  transform: rotate(90deg);
}

.item.is-open .mark::after {
  transform: rotate(0deg);
}

.panel p {
  margin: 0;
  padding: 0 36px 18px 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 560px) {
  .back {
    top: 14px;
    left: 14px;
  }

  .app {
    width: calc(100% - 32px);
    padding-top: 72px;
  }
}
