:root {
  --green: #245b48;
  --ink: #233f35;
  --paper: #f7f8f3;
  --border: #dfe5da;
  --muted: #6d7c70;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.6 system-ui,
    -apple-system,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 86px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 15px;
}
.brand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand span {
  color: #94b15b;
}
.brand small {
  font-size: 10px;
  letter-spacing: 2px;
  margin-left: 12px;
  font-weight: 500;
}
.shell {
  display: flex;
  max-width: 1500px;
  min-height: calc(100vh - 150px);
  margin: auto;
}
aside {
  width: 250px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
}
aside p,
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--muted);
}
nav {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
nav a {
  padding: 10px 12px;
  border-radius: 7px;
}
nav a:hover {
  background: #e6eddc;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 70px;
  overflow-wrap: anywhere;
}
.sidebar-bottom p {
  letter-spacing: 0;
  font-weight: 400;
}
main {
  padding: 45px;
  width: 100%;
  min-width: 0;
}
main.auth {
  max-width: 560px;
  margin: 20px auto;
  padding: 25px 15px;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  font-weight: 600;
  margin: 8px 0 14px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  line-height: 1.4;
}
p {
  color: var(--muted);
}
.panel {
  padding: 30px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.panel h1 {
  font-size: 32px;
}
.panel h2 {
  margin-top: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  margin: 6px 0;
}
.page-heading .button {
  white-space: nowrap;
}
.eyebrow {
  margin: 0 0 14px;
}
.editor {
  max-width: 850px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 18px 0 7px;
}
input,
select,
textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cdd8c9;
  border-radius: 7px;
  background: #fcfdf9;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
button,
.button {
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  border-radius: 7px;
  padding: 11px 19px;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
}
form > button {
  margin-top: 22px;
}
.secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--border);
}
.text-button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 8px;
}
.hint {
  font-size: 12px;
  line-height: 1.6;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.notice,
.error,
.success {
  padding: 17px 21px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 13px;
}
.notice {
  background: #e9eedf;
  margin-top: 25px;
}
.notice p {
  margin-bottom: 0;
}
.error {
  background: #fae9e3;
  color: #8b3423;
}
.success {
  background: #dfeedd;
  color: #265630;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  background: #edf1e5;
}
.stat strong {
  display: block;
  font-size: 40px;
  font-weight: 600;
  margin: 7px 0;
}
.stat span,
.stat small {
  font-size: 12px;
}
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.filter-bar input {
  flex: 1;
}
.filter-bar select {
  width: 170px;
}
.filter-bar button {
  margin: 0;
}
.post-row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.post-row:last-child {
  border-bottom: 0;
}
.post-row h2 {
  font-size: 17px;
  margin: 0 0 4px;
}
.post-row p {
  font-size: 12px;
  margin: 0 0 8px;
}
.post-icon {
  width: 52px;
  height: 67px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #dce5d3;
  font-size: 27px;
  font-family: Georgia, serif;
  border-radius: 4px;
}
.peach {
  background: #ecd7bd;
}
.lilac {
  background: #e3daed;
}
.blue {
  background: #d9e6ee;
}
.post-summary {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.actions button,
.actions .button {
  margin: 0;
  font-size: 12px;
  padding: 8px 12px;
}
.badge {
  display: inline-flex;
  border-radius: 20px;
  background: #edf0e7;
  font-size: 10px;
  padding: 3px 10px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}
.published {
  background: #dceccf;
  color: #315e28;
}
.archived {
  background: #e9e9e9;
  color: #646464;
}
.draft {
  background: #f5eacb;
  color: #7a6323;
}
.recent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.empty {
  text-align: center;
  padding: 35px 12px;
}
.empty p {
  max-width: 500px;
  margin: 15px auto 25px;
}
.pagination {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
footer {
  border-top: 1px solid var(--border);
  padding: 22px 5%;
  font-size: 11px;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9db65d;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  main {
    padding: 30px 22px;
  }
  aside {
    width: 200px;
    padding: 30px 18px;
  }
  .post-row {
    flex-wrap: wrap;
  }
  .actions {
    width: 100%;
    padding-left: 72px;
  }
}
@media (max-width: 700px) {
  header {
    height: 75px;
    padding: 0 20px;
  }
  .brand {
    font-size: 21px;
  }
  .brand small {
    display: none;
  }
  header > a:last-child {
    font-size: 12px;
  }
  .shell {
    display: block;
  }
  aside {
    width: 100%;
    padding: 15px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  aside > p {
    display: none;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
  }
  nav a {
    padding: 7px 10px;
    font-size: 12px;
  }
  .sidebar-bottom {
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar-bottom p {
    margin: 0;
  }
  .sidebar-bottom button {
    padding: 5px 13px;
    margin: 0;
  }
  main {
    padding: 28px 18px;
  }
  .page-heading {
    flex-direction: column;
    align-items: start;
  }
  h1 {
    font-size: 28px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 30px;
  }
  .panel {
    padding: 20px;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .filter-bar input {
    flex-basis: 100%;
  }
  .filter-bar select {
    flex: 1;
  }
  .actions {
    padding-left: 0;
  }
  main.auth {
    margin: 10px auto;
  }
  .post-row {
    gap: 14px;
  }
}
