:root {
  color-scheme: light;
  --paper: #f5f1ea;
  --ink: #171717;
  --body: #3f3a34;
  --quiet: #8f8273;
  --rule: #d8d1c7;
  --signal: #c23b2d;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.site-shell {
  width: min(100%, 680px);
  max-width: 680px;
  min-height: 100dvh;
  margin-inline: auto;
  padding: clamp(2rem, 8vw, 4rem) clamp(1.25rem, 6vw, 3rem);
}

.construction-shell {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.brand-logo {
  display: block;
  width: min(64vw, 280px);
  height: auto;
  filter: brightness(0) saturate(100%) invert(7%) sepia(1%) saturate(184%) hue-rotate(314deg) brightness(99%) contrast(89%);
}

.construction-shell h1,
.mesa-header h1,
.work-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.construction-shell h1 {
  max-width: 10ch;
  font-size: clamp(3.1rem, 13vw, 6.25rem);
  line-height: 0.9;
}

.contact-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--body);
  font-size: 0.94rem;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--quiet);
}

.contact-link:hover {
  color: var(--signal);
  text-decoration-color: currentColor;
}

.mesa-shell {
  display: grid;
  align-content: center;
  gap: clamp(2rem, 7vw, 4rem);
}

.mesa-header {
  display: grid;
  gap: 1.25rem;
}

.mesa-seal {
  width: fit-content;
  margin: 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--signal);
  color: var(--body);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.19em;
}

.mesa-header h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 10vw, 5.5rem);
  line-height: 0.92;
}

.gate-panel {
  max-width: 28rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

#gate-form {
  display: grid;
  gap: 0.75rem;
}

#gate-form label {
  color: var(--body);
  font-size: 0.82rem;
  font-weight: 650;
}

#gate-form input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--quiet);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

#gate-form button {
  width: fit-content;
  min-width: 7.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}

#gate-form button:hover {
  background: var(--body);
}

#gate-form button:active {
  transform: translateY(1px);
}

#gate-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

#gate-form input:focus-visible,
#gate-form button:focus-visible,
.contact-link:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.gate-error {
  min-height: 1.35rem;
  margin: 0.15rem 0 0;
  color: var(--signal);
  font-size: 0.82rem;
}

.listening-panel {
  display: grid;
  gap: 1.5rem;
}

.work-heading {
  display: grid;
  gap: 0.55rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.work-heading h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 7vw, 3.8rem);
  line-height: 0.98;
}

.work-heading p {
  max-width: 32rem;
  margin: 0;
  color: var(--body);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.45;
}

.player-mount {
  width: 100%;
  height: 300px;
  min-height: 300px;
  background: var(--rule);
  overflow: hidden;
}

.player-mount iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.signature {
  margin: 0;
  color: var(--quiet);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .mesa-shell {
    padding-block: clamp(3rem, 8vh, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
