:root {
  --ink: #24302b;
  --muted: #6d756f;
  --paper: #fbfaf6;
  --sage: #567264;
  --line: #deddd5;
  --card: #fffefa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
a {
  color: inherit;
}
.shell {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: Georgia, 'Songti SC', serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  font-size: 16px;
}
.back-link,
.logout {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  padding: 8px 0;
}
.hero {
  width: min(640px, 100%);
  margin: 12vh auto 0;
  text-align: center;
}
.eyebrow {
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
h1,
h2,
h3 {
  font-family: Georgia, 'Songti SC', serif;
}
h1 {
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 18px 0 16px;
}
.lead {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 auto 32px;
  max-width: 500px;
}
.access-form {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  gap: 10px;
  box-shadow: 0 16px 42px rgb(50 66 58 / 8%);
}
input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 13px 10px;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
button.primary {
  border: 0;
  padding: 0 22px;
  background: var(--sage);
  color: #fff;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
button.primary:disabled {
  opacity: 0.65;
  cursor: wait;
}
.notice {
  min-height: 24px;
  margin: 16px 0 0;
  color: #a24444;
  font-size: 14px;
}
.room {
  padding: 48px 0 80px;
}
.room-heading {
  margin: 0 0 9px;
  font-weight: 500;
  font-size: clamp(30px, 5vw, 46px);
}
.room-subtitle {
  margin: 0 0 38px;
  color: var(--muted);
}
.project-grid {
  display: grid;
  gap: 24px;
}
.project {
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(22px, 4vw, 36px);
}
.project h2 {
  margin: 0;
  font-weight: 500;
  font-size: 28px;
}
.project-summary {
  color: var(--muted);
  line-height: 1.7;
  margin: 10px 0 25px;
}
.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.content-list li {
  border-bottom: 1px solid var(--line);
}
.content-list a {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  text-decoration: none;
}
.content-list a:hover .content-title {
  color: var(--sage);
}
.content-title {
  font-weight: 600;
}
.content-summary {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.arrow {
  color: var(--sage);
  font-size: 23px;
}
.empty {
  color: var(--muted);
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line);
}
.reader {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 32px;
}
.reader-head {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.reader-title {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 500;
}
.document-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 145px);
  border: 1px solid var(--line);
  background: white;
}
@media (max-width: 600px) {
  .shell {
    width: min(100% - 28px, 1100px);
  }
  .masthead {
    padding: 20px 0;
  }
  .hero {
    margin-top: 15vh;
  }
  .access-form {
    display: block;
    padding: 8px;
  }
  input {
    width: 100%;
    padding: 14px 10px;
  }
  button.primary {
    width: 100%;
    height: 48px;
  }
  .reader {
    width: min(100% - 20px, 1400px);
  }
}
