:root {
  --ink: #0d0d0d;
  --stone: #5a5a5a;
  --parchment: #c8b38a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "EB Garamond", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", serif;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
}

.title-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
}

.title-screen__frame {
  width: 100%;
  max-width: 720px;
  border: 1px solid var(--stone);
  padding: 1.75rem 1.5rem 1.25rem;
}

.title-screen__header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.title-screen__crest {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.title-screen__crest-image {
  display: block;
  height: 46px;
  width: auto;
}

.title-screen__logo {
  margin: 0;
  font-family: "UnifrakturCook", "EB Garamond", serif;
  font-size: clamp(3.4rem, 7vw, 4.4rem);
  letter-spacing: -0.04em;
}

.title-screen__subtitle {
  max-width: 26rem;
  margin: 0.6rem auto 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--stone);
}

.title-screen__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.title-screen__link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(90, 90, 90, 0.35);
}

.title-screen__link::after {
  content: "↗";
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.title-screen__link:hover::after,
.title-screen__link:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.title-screen__link:hover,
.title-screen__link:focus-visible {
  outline: none;
}

.title-screen__footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--stone);
}

.title-screen__mark {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.radio {
  border-top: 1px solid rgba(90, 90, 90, 0.35);
  border-bottom: 1px solid rgba(90, 90, 90, 0.35);
  padding: 1.1rem 0 1.25rem;
  margin-bottom: 1.25rem;
}

.radio__header {
  margin-bottom: 0.75rem;
}

.radio__title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.radio__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--stone);
}

.radio__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1rem;
}

.radio__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
   width: 7.5rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.radio__button:hover,
.radio__button:focus-visible {
  background: rgba(200, 179, 138, 0.14);
  outline: none;
}

.radio__button-icon {
  font-size: 0.85rem;
}

.radio__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--stone);
}

.radio__status-light {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(90, 90, 90, 0.7);
  background: transparent;
}

.radio--playing .radio__status-light {
  background: #2a7a3b;
  border-color: #2a7a3b;
}

.radio--playing .radio__status-text {
  color: var(--ink);
}

.radio--playing .radio__button-icon {
  transform: translateY(1px);
}

.radio__volume {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--stone);
}

.radio__volume-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.radio__volume-slider {
  width: 100%;
  accent-color: #000000;
}


@media (max-width: 600px) {
  .radio__body {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .title-screen__frame {
    padding: 2.25rem 1.75rem 2rem;
  }
  .title-screen__crest-image {
    height: 40px;
  }
}
