:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --ink: #202d27;
  --green: #0d633c;
  --sage: #e1eddd;
  --line: #d4d9ce;
  --muted: #536257;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
a {
  color: var(--green);
  text-underline-offset: 0.22em;
}
a,
button {
  touch-action: manipulation;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a.action {
  cursor: pointer;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  padding: 0.62rem 1.05rem;
  border-radius: 0.35rem;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
}
button:hover,
a.action:hover {
  filter: brightness(0.9);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
}
.plain {
  padding: 0.3rem 0.45rem;
  background: none;
  color: var(--green);
  border: 0;
  font-weight: 600;
}
.danger {
  color: #933731;
}
.skip {
  position: absolute;
  z-index: 20;
  left: 0.5rem;
  top: -5rem;
  background: white;
  padding: 0.5rem;
}
.skip:focus {
  top: 5px;
}
:focus-visible {
  outline: 3px solid #33966a;
  outline-offset: 3px;
}
header {
  border-bottom: 1px solid var(--line);
  background: #fcfcf8;
}
.bar,
main,
footer {
  width: min(1152px, calc(100% - 56px));
  margin: auto;
}
.bar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.89rem;
  font-weight: 650;
}
.brand img {
  width: 96px;
  height: auto;
}
.brand span {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.89rem;
  font-weight: 600;
}
nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.account {
  display: flex;
  gap: 10px;
  align-items: center;
}
.account .plain {
  font-size: 0.82rem;
}
main {
  min-height: calc(100vh - 190px);
  padding: clamp(2rem, 6vw, 5rem) 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  max-width: 16ch;
  margin-bottom: 1.2rem;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  margin-bottom: 1.1rem;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.35;
}
p {
  max-width: 66ch;
}
.muted,
.empty,
.hint {
  color: var(--muted);
}
.hint,
small,
time {
  font-size: 0.86rem;
}
.lead {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--muted);
}
.login {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: stretch;
  gap: clamp(2rem, 7vw, 6.5rem);
}
.login .intro {
  align-self: center;
  padding: 22px 0;
}
.login figure,
.cover {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #21362c;
}
.login figure {
  min-height: 440px;
  position: relative;
}
.login figure img,
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login figure img {
  position: absolute;
}
.login h1 {
  margin-top: 16px;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.formgrid,
form.stack {
  display: grid;
  gap: 0.85rem;
  max-width: 650px;
}
.login form {
  max-width: 390px;
  margin: 2rem 0 1rem;
}
.login form button {
  width: 100%;
}
label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}
input,
textarea,
select {
  max-width: 100%;
  width: 100%;
  background: #fff;
  border: 1px solid #b9c5b9;
  padding: 0.65rem 0.8rem;
  border-radius: 4px;
  color: var(--ink);
}
textarea {
  min-height: 95px;
  resize: vertical;
}
.login input {
  height: 48px;
}
.loading {
  margin: 15vh 0;
}
.banner {
  background: var(--sage);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
}
.banner .intro {
  padding: clamp(1.4rem, 5vw, 4rem);
}
.banner h1 {
  max-width: 13ch;
}
.banner .cover {
  border-radius: 0 6px 6px 0;
  min-height: 100%;
}
.spaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.space,
.row,
.panel {
  background: #fefefa;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.space {
  padding: 1.5rem;
  display: block;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.space:hover,
.row:hover {
  border-color: #7d9e87;
}
.space h2 {
  font-size: 1.85rem;
  margin: 1.3rem 0 0.6rem;
}
.space p {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 30ch;
}
.arrow {
  float: right;
  color: var(--green);
}
.space .icon {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 650;
  letter-spacing: 0.01em;
}
.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.heading h1,
.heading h2 {
  margin: 0;
}
.crumb {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.3rem;
}
.rows {
  display: grid;
  gap: 0.6rem;
}
.row {
  padding: 1.05rem 1.3rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.row strong {
  display: block;
}
.row .hint {
  display: block;
  margin: 0.3rem 0 0;
}
.panel {
  padding: clamp(1rem, 2.8vw, 2rem);
  margin: 1rem 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 1.5rem;
}
.narrow {
  max-width: 780px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.stack button {
  justify-self: start;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.lesson h1 {
  max-width: 22ch;
}
.lesson .prose {
  line-height: 1.7;
}
.lesson .section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}
.video,
video,
.pdf {
  border: 0;
  background: #17211c;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
}
.pdf {
  height: 60vh;
}
.thumb {
  height: 4px;
  width: 7rem;
  background: #d7ded3;
  border-radius: 2px;
}
audio {
  width: 100%;
}
.post {
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
  overflow-wrap: anywhere;
}
.post:last-child {
  border: 0;
}
.post p {
  margin: 0.35rem 0;
}
.meta {
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.meta strong {
  color: var(--ink);
}
.reply {
  margin-left: clamp(0.7rem, 3vw, 2.5rem);
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}
.thread {
  margin-top: 0.55rem;
}
details {
  margin: 0.8rem 0;
}
summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 650;
}
.feedback-form {
  margin-top: 1.3rem;
}
.feedback-form textarea {
  min-height: 80px;
}
.status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--green);
}
.error {
  color: #8c3026;
}
.empty {
  padding: 1rem 0;
}
footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.83rem;
}
footer img {
  width: 63px;
}
.group {
  margin-top: 2.2rem;
}
#notice {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  max-width: 90vw;
  z-index: 4;
}
#notice:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
}
@media (max-width: 760px) {
  .bar,
  main,
  footer {
    width: calc(100% - 36px);
  }
  .bar {
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px 0;
  }
  .brand {
    margin-right: auto;
  }
  .brand img {
    width: 76px;
  }
  nav:not(:empty) {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 18px;
  }
  .brand span {
    padding-left: 10px;
  }
  .brand {
    gap: 10px;
  }
  .login,
  .split {
    grid-template-columns: 1fr;
  }
  .login {
    gap: 1.5rem;
  }
  .login .intro {
    padding: 0;
  }
  .login figure {
    min-height: 200px;
  }
  .spaces {
    grid-template-columns: 1fr;
  }
  .space h2 {
    margin: 0.6rem 0;
  }
  .space {
    padding: 1.05rem;
  }
  .banner {
    grid-template-columns: 1fr;
  }
  .banner .cover {
    display: none;
  }
  .heading {
    align-items: start;
    flex-wrap: wrap;
  }
  .row {
    align-items: start;
  }
  .panel {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
