/* Arca landing: Selected Ember. The logo gets selected and its weight edited, like in the app. */
:root {
  --bg: #161412;
  --fg: #f4f1ea;
  --muted: #918c84;
  --faint: #555351;
  --line-fg: #d6d0c6;
  --action: oklch(0.69 0.17 45);
  --action-hover: oklch(0.63 0.173 45);
  --display: 'Bricolage Grotesque', sans-serif;
  --sans: 'Manrope', -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--fg);
}

/* A faint warm light behind the logo, breathing. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(40vmax 30vmax at 50% 46%, oklch(0.69 0.17 45 / 9%), transparent 70%);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.hero {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
}
/* The mark is sized in the logo's em, and the wordmark's box is trimmed to the letters: "arca" has only x-height
     letters, so Bricolage's box carries ~.29em empty above and ~.16em below. Spacing then measures from what you see. */
.mark {
  position: relative;
  display: flex;
  font-size: clamp(72px, 13vw, 136px);
}
.wordmark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  margin: -0.27em 0 -0.14em;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1em;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 96;
  transition: font-weight 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.stop {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.05em;
  background: var(--action);
  animation: glow 3s ease-in-out infinite;
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 oklch(0.69 0.17 45 / 0%);
  }
  50% {
    box-shadow: 0 0 0.2em 0.02em oklch(0.69 0.17 45 / 60%);
  }
}

/* The selection: dashed box, handles, tag, and the Typography panel. */
.sel-box {
  position: absolute;
  inset: -0.1em -0.12em -0.1em -0.12em;
  border: 1.5px dashed var(--action);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.sel-box i {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1.5px solid var(--action);
}
.sel-box i:nth-child(1) {
  left: -5px;
  top: -5px;
}
.sel-box i:nth-child(2) {
  right: -5px;
  top: -5px;
}
.sel-box i:nth-child(3) {
  left: -5px;
  bottom: -5px;
}
.sel-box i:nth-child(4) {
  right: -5px;
  bottom: -5px;
}
.sel-tag {
  position: absolute;
  left: -1.5px;
  top: -26px;
  background: var(--action);
  color: #fff;
  font: 600 11px var(--sans);
  padding: 4px 7px;
  white-space: nowrap;
}
.sel-panel {
  position: absolute;
  left: calc(100% + 28px);
  top: 50%;
  transform: translate(-6px, -50%);
  opacity: 0;
  transition:
    opacity 0.25s,
    transform 0.25s;
  background: #26231f;
  box-shadow: 3px 3px 0 rgb(0 0 0 / 40%);
  color: var(--fg);
  text-align: left;
  width: 168px;
  font-size: 12px;
}
.sel-panel b {
  display: block;
  padding: 9px 12px;
  font-family: var(--display);
  font-size: 12px;
  border-bottom: 1px solid #3d3a37;
}
.sel-panel div {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
}
.sel-panel code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.sel-panel code.hot {
  color: oklch(0.78 0.14 50);
}
body.is-selected .sel-box,
body.is-selected .sel-panel {
  opacity: 1;
}
body.is-selected .sel-panel {
  transform: translate(0, -50%);
}
body.is-edited .wordmark {
  font-weight: 480;
}
@media (max-width: 760px) {
  .sel-panel {
    display: none;
  }
}

/* The line is the second level, the download the third. */
.download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  color: var(--fg);
  border: 1px solid #3d3a37;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.download:hover {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}
.download svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  margin-top: -2px;
}
.line {
  max-width: 30ch;
  text-wrap: balance;
  font-family: var(--display);
  font-variation-settings: 'opsz' 32;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--line-fg);
  /* .24em = space above the capitals, .27em = space below the baseline, inside the line box. */
  margin: calc(clamp(36px, 4vw, 52px) - 0.24em) 0 calc(clamp(30px, 3vw, 40px) - 0.27em);
}
.download {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation: none !important;
    transition: none !important;
  }
}
