@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #202522;
  --muted: #8b938a;
  --paper: #202522;
  --panel: #292f2b;
  --lime: #75d7ff;
  --orange: #f26c45;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #fffdf8;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--paper);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 40px));
  margin: auto;
  padding: 25px 0;
  border-bottom: 1px solid #3b433d;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--lime);
  border-radius: 50%;
  font: 14px 'DM Mono', monospace;
}

.back {
  color: var(--muted);
  font: 12px 'DM Mono', monospace;
  text-decoration: none;
}

.back:hover {
  color: var(--lime);
}

main {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
  padding: 55px 0 70px;
}

.editor-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.06em;
}

.path {
  margin: 0;
  color: var(--muted);
  font: 12px 'DM Mono', monospace;
}

.actions {
  display: flex;
  gap: 10px;
}

button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--lime);
  border-radius: 2px;
  color: var(--ink);
  background: var(--lime);
  font: 500 12px 'DM Mono', monospace;
  cursor: pointer;
}

button:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.editor {
  display: grid;
  grid-template-columns: 55px 1fr;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid #434c45;
  border-radius: 3px;
  background: var(--panel);
  box-shadow: 8px 8px 0 #111512;
}

.lines {
  padding: 19px 14px 19px 0;
  color: #667168;
  background: #252b27;
  font: 13px/1.65 'DM Mono', monospace;
  text-align: right;
  user-select: none;
}

textarea {
  width: 100%;
  min-height: 530px;
  resize: vertical;
  padding: 19px 20px;
  color: #f4f0e8;
  background: transparent;
  border: 0;
  outline: 0;
  font: 13px/1.65 'DM Mono', monospace;
  tab-size: 4;
}

.notice {
  margin: 17px 0 0;
  color: var(--muted);
  font: 11px 'DM Mono', monospace;
}

@media (max-width: 680px) {
  header,
  main {
    width: min(100% - 28px, 520px);
  }
  .editor-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .editor {
    grid-template-columns: 42px 1fr;
  }
  textarea {
    padding-left: 14px;
  }
}
