:root {
  font:
    15px/1.6 system-ui,
    sans-serif;
  color: #24332c;
  background: #f7f8f4;
  --green: #27634b;
  --line: #dce4da;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.brand {
  text-decoration: none;
  color: inherit;
  font-size: 19px;
  letter-spacing: -0.5px;
}
.brand strong {
  margin-left: 15px;
  color: var(--green);
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
a {
  color: var(--green);
}
button,
.primary {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #274a37;
  padding: 7px 13px;
  text-decoration: none;
}
button:hover {
  background: #eef4ed;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: var(--green);
  color: white;
  border: 0;
  display: inline-block;
  padding: 12px 22px;
}
#welcome {
  max-width: 860px;
  margin: 10vh auto 16vh;
  padding: 32px;
}
h1 {
  font:
    500 clamp(30px, 4vw, 55px) / 1.15 Georgia,
    serif;
  letter-spacing: -1px;
}
#welcome p {
  max-width: 500px;
  color: #617066;
  font-size: 18px;
  margin: 28px 0;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
}
#workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: calc(100vh - 126px);
}
aside {
  padding: 25px 18px;
  border-right: 1px solid var(--line);
}
.aside-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h2 {
  font-size: 15px;
}
.muted {
  font-size: 12px;
  color: #6b776b;
}
#files {
  margin-top: 26px;
}
#files button {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  background: transparent;
  margin: 5px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#files button.selected {
  background: #e5eee2;
  color: #214f36;
}
#files small {
  display: block;
  color: #718074;
  font-size: 11px;
}
.document {
  min-width: 0;
  background: #fff;
}
#empty {
  padding: 80px 8%;
}
#empty h1 {
  font-size: 38px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}
#name {
  min-width: 100px;
  flex: 1;
  font:
    500 23px Georgia,
    serif;
  border: 0;
  padding: 6px;
  background: transparent;
  color: #253d2e;
}
#status {
  font-size: 12px;
  color: #5e715f;
}
.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 65vh;
}
.panes > div {
  min-width: 0;
}
.panes > div:first-child {
  border-right: 1px solid var(--line);
}
.pane-label {
  padding: 18px 28px 8px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #849181;
}
textarea {
  display: block;
  width: 100%;
  min-height: 62vh;
  resize: vertical;
  border: 0;
  outline-offset: -4px;
  padding: 15px 28px;
  background: white;
  font:
    14px/1.8 ui-monospace,
    monospace;
  color: #304639;
}
article {
  padding: 0 28px 28px;
  overflow-wrap: anywhere;
}
article h1 {
  font-size: 32px;
}
article pre {
  white-space: pre-wrap;
  background: #f1f5ef;
  padding: 15px;
}
article img {
  max-width: 100%;
}
#notice {
  background: #fff4db;
  padding: 16px 28px;
  border-bottom: 1px solid #e5d1a8;
}
#notice p {
  margin: 0 0 10px;
}
#notice button {
  margin: 4px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 36px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #718074;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid #3d7c5e;
  outline-offset: 3px;
}
@media (max-width: 900px) {
  header {
    padding: 0 18px;
  }
  nav {
    gap: 10px;
  }
  #workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .panes {
    grid-template-columns: 1fr;
  }
  .panes > div:first-child {
    border-right: 0;
  }
  textarea {
    min-height: 40vh;
  }
  .toolbar {
    flex-wrap: wrap;
    padding: 16px;
  }
  footer span {
    display: none;
  }
}
@media (max-width: 550px) {
  #workspace {
    display: block;
  }
  aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  #files {
    max-height: 150px;
    overflow: auto;
    margin-top: 8px;
  }
}
