:root {
  color-scheme: light;
  --paper: #f5f2e8;
  --ink: #233a33;
  --muted: #68766d;
  --line: #d5d9ce;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 0 48px;
}
a {
  color: inherit;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wordmark {
  text-decoration: none;
  font:
    italic 45px Georgia,
    serif;
  line-height: 1;
}
.wordmark span {
  color: #d06940;
}
.site-name {
  font:
    12px Georgia,
    serif;
  letter-spacing: 3px;
}
.entry-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edece2;
}
.entry-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 5px;
  color: #3f574b;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}
.entry-choice:hover,
.entry-options a:hover {
  background: #e0e5d8;
}
.entry-choice[aria-current],
.entry-options a[aria-current] {
  background: #31594a;
  color: #fffdf5;
  font-weight: 600;
}
.entry-choice[aria-current]::before {
  content: '';
  flex: 0 0 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.entry-private {
  position: relative;
}
.entry-private summary {
  list-style: none;
  cursor: pointer;
}
.entry-private summary::-webkit-details-marker {
  display: none;
}
.entry-private summary::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.entry-private[open] summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}
.entry-options {
  position: absolute;
  z-index: 1;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  gap: 3px;
  width: 164px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 6px 16px #233a3320;
}
.entry-options a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
}
.intro {
  padding: 40px 0 30px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: #7d654f;
}
.intro h1 {
  margin: 16px 0;
  font-family: 'Songti SC', 'STSong', serif;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.2;
}
.intro h1 br {
  display: none;
}
.intro em {
  font-style: normal;
  color: #537f65;
}
.intro > p:last-child {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 270px;
}
.project {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid #c6d8d4;
  border-radius: 5px;
  padding: 24px;
  background: #e4efeb;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.project.sprout {
  background: #eee9d2;
  border-color: #d7cfae;
}
.project.journal {
  background: #f1e7df;
  border-color: #ddcbbd;
}
.project.window {
  background: #e2ebf1;
  border-color: #c7d4df;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  color: #916343;
  background: #fff8;
}
.service-icon svg {
  width: 56px;
  height: 56px;
}
.window .service-icon {
  color: #516e85;
}
.project:hover {
  transform: translateY(-4px);
  border-color: #648472;
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.project-top img {
  object-fit: contain;
  border-radius: 20px;
}
.project-top > span {
  font-size: 12px;
  letter-spacing: 2px;
  color: #536e63;
}
.project h2 {
  font-family: 'Songti SC', 'STSong', serif;
  font-size: 28px;
  font-weight: 600;
  margin: 20px 0 8px;
}
.project p {
  font-size: 14px;
  line-height: 1.8;
  color: #52665c;
  margin: 0 0 22px;
}
.enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #bdcec5;
}
.enter b {
  font-size: 24px;
  font-weight: 400;
}
.sprout .enter {
  border-color: #d0c7a6;
}
.journal .enter {
  border-color: #d8c4b4;
}
.window .enter {
  border-color: #bdccd9;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  padding: 30px 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.message,
.loading,
.catalog-note {
  grid-column: 1/-1;
  align-self: center;
  color: var(--muted);
  line-height: 1.8;
}
.message button,
.catalog-note button {
  margin-left: 10px;
  padding: 8px 14px;
  font: inherit;
  border: 1px solid #859687;
  background: transparent;
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
}
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid #a44926;
  outline-offset: 5px;
}
@media (max-width: 600px) {
  main {
    padding: 0 24px;
  }
  header {
    padding: 22px 0;
  }
  .entry-switch {
    width: 100%;
  }
  .entry-choice {
    gap: 4px;
    padding: 0 4px;
  }
  .intro {
    padding: 32px 0 22px;
  }
  .intro h1 br {
    display: block;
  }
  .intro h1 {
    line-height: 1.25;
  }
  .projects {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .project {
    padding: 24px;
  }
  .project-top img {
    width: 64px;
    height: 64px;
  }
  .project h2 {
    font-size: 26px;
    margin-top: 18px;
  }
  .project p {
    margin-bottom: 22px;
  }
  footer {
    font-size: 11px;
    padding-top: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project {
    transition: none;
  }
  .project:hover {
    transform: none;
  }
}
