:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #1d2220;
  --muted: #555e58;
  --line: #e1e5e0;
  --green: #294739;
  --soft: #f2f5ef;
  font:
    16px/1.55 system-ui,
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.site-head {
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  min-height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.mark {
  letter-spacing: -0.035em;
  font-weight: 650;
  font-size: 1.2rem;
}
.mark span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.16em;
}
.layout {
  width: min(calc(100% - 48px), 720px);
  margin: clamp(42px, 9vw, 96px) auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2.15rem, 6vw, 3.75rem);
  letter-spacing: -0.065em;
  line-height: 1.05;
  font-weight: 550;
}
.title-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.chip {
  border-radius: 100px;
  background: var(--soft);
  color: var(--green);
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}
.chip[data-status="Planned"] {
  color: #494c48;
  background: #f0f1ef;
}
.chip[data-status="Ready for review"] {
  color: #65491c;
  background: #f6edd8;
}
.latest {
  position: relative;
  background: var(--soft);
  border: 1px solid #e6ebe4;
  border-radius: 18px;
  padding: clamp(21px, 6vw, 37px);
}
.eyebrow {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 20px;
}
time,
.secondary {
  color: var(--muted);
  font-size: 0.84rem;
}
.latest h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.55rem, 3.9vw, 2.13rem);
  letter-spacing: -0.044em;
  line-height: 1.15;
  font-weight: 570;
}
.detail,
.next p,
.earlier li p {
  color: #404a43;
  max-width: 59ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.next {
  margin-top: 24px;
  border-top: 1px solid #dce2d8;
  padding-top: 16px;
}
.next h3,
.earlier li h3 {
  font-size: 1rem;
  margin-bottom: 3px;
  font-weight: 620;
}
.earlier {
  margin-top: 42px;
}
.earlier h2,
.controls h2 {
  font-size: 1.2rem;
  font-weight: 570;
  letter-spacing: -0.027em;
  margin-bottom: 14px;
}
.earlier ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.earlier li {
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
}
.earlier li time {
  display: block;
  margin-bottom: 4px;
}
.history-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.88rem;
}
.editor {
  width: min(calc(100% - 48px), 960px);
}
.editor h1 {
  margin-bottom: 28px;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  gap: 18px;
  align-items: start;
}
.controls {
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.controls label {
  font-size: 0.88rem;
  font-weight: 550;
  display: block;
  margin: 14px 0 4px;
}
.controls input,
.controls textarea,
.controls select {
  color: var(--ink);
  width: 100%;
  background: #fff;
  border: 1px solid #cbd2c9;
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
}
.controls textarea {
  resize: vertical;
}
.controls details,
.access-controls,
#current {
  margin-top: 17px;
}
.controls summary {
  cursor: pointer;
  font-size: 0.91rem;
  color: var(--green);
}
button,
.button {
  display: inline-block;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #cbd2c9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.89rem;
  cursor: pointer;
  text-decoration: none;
}
button[disabled] {
  opacity: 0.6;
  cursor: default;
}
a {
  color: var(--green);
}
button.button,
a.button {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  margin-top: 17px;
}
#create button {
  margin-top: 10px;
}
#link-controls {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.text-button {
  color: var(--muted);
  border: 0;
  padding-inline: 0;
  margin-top: 7px;
  display: block;
  text-align: left;
}
#feedback {
  margin-top: 15px;
}
:focus-visible {
  outline: 2px solid #41644f;
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .site-head {
    min-height: 67px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
}
