/* The garden's palette, shared with the SSH app (internal/tui/styles). */
:root {
  --bloom: #c2548b;
  --leaf: #4f7f3a;
  --soil: #7a716c;
  --page: #faf8f5;
  --ink: #2b2825;

  /* The terminal stays dark in both themes, like a real one. */
  --terminal: #1c1b19;
  --terminal-bar: #2a2825;
  --terminal-ink: #e9e4dc;
  --terminal-leaf: #7fb069;
  --terminal-soil: #8a817c;
  --terminal-bloom: #e6a2c5;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bloom: #e6a2c5;
    --leaf: #7fb069;
    --soil: #8a817c;
    --page: #121110;
    --ink: #e9e4dc;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  background: var(--page);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1rem;
  line-height: 1.5;
}

main {
  width: 100%;
  max-width: 34rem;
  text-align: center;
}

h1 {
  margin: 0 0 1.5rem;
  color: var(--bloom);
  font-size: 1.25rem;
  font-weight: 700;
}

.terminal {
  margin: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--terminal);
  color: var(--terminal-ink);
  text-align: left;
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.18);
}

.terminal-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  background: var(--terminal-bar);
}

.terminal-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--terminal-soil);
}

.terminal-bar span:first-child {
  background: var(--terminal-bloom);
}

.terminal-bar span:nth-child(2) {
  background: var(--terminal-leaf);
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0.75rem 1.1rem 1rem;
}

.prompt {
  color: var(--terminal-soil);
  user-select: none;
}

code {
  flex: 1;
  color: var(--terminal-leaf);
  font: inherit;
  word-break: break-all;
}

button {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--terminal-soil);
  border-radius: 0.3rem;
  background: transparent;
  color: var(--terminal-ink);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

button:hover {
  border-color: var(--terminal-leaf);
  color: var(--terminal-leaf);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--bloom);
  outline-offset: 2px;
}

.home {
  margin: 1.5rem 0 0;
}

a {
  color: var(--soil);
}

a:hover {
  color: var(--leaf);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
