:root {
  color-scheme: light dark;
  --paper: #fffefa;
  --white: #fff;
  --ink: #202020;
  --muted: #454545;
  --green: #31584f;
  --pale: #edf2ec;
  --line: #d2dad4;
  --blue: #0b57d0;
  --button-text: white;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #19201d;
    --white: #222b27;
    --ink: #f1f2ed;
    --muted: #c8cec8;
    --green: #b3d7c0;
    --pale: #26372e;
    --line: #4a5b50;
    --blue: #a5c6ff;
    --button-text: #102c52;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    17px/1.62 "Google Sans",
    "Forum Noto Sans SC",
    "Noto Sans CJK SC",
    "PingFang SC",
    system-ui,
    sans-serif;
}
a {
  color: var(--blue);
  text-underline-offset: 0.19em;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
h1,
h2,
p,
figure {
  margin: 0;
}
h1,
h2 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}
p {
  margin: 0.45em 0 0.85em;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(34px, 4.5vw, 64px);
}
h2 {
  font-size: clamp(24px, 2.5vw, 32px);
}
button,
.button,
input,
textarea,
select {
  font: inherit;
}
.button,
button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.button,
.search button {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--button-text);
}
.button:hover,
.search button:hover {
  filter: brightness(0.94);
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  padding: 9px 12px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}
textarea {
  resize: vertical;
}
.skip,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(100%);
}
.skip:focus {
  z-index: 3;
  top: 4px;
  left: 4px;
  width: auto;
  height: auto;
  padding: 8px;
  background: var(--white);
  clip-path: none;
}
.mast {
  border-bottom: 1px solid var(--line);
}
.mast > div,
.wrap,
.foot {
  width: min(1170px, 100%);
  margin: auto;
  padding-inline: clamp(16px, 4vw, 46px);
}
.mast > div,
.mast nav,
.foot,
.actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  flex-wrap: wrap;
}
.mast a,
.back,
.foot a,
.suggest a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.mast a {
  color: var(--muted);
  text-decoration: none;
}
.mast .brand {
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 710;
  color: var(--ink);
}
.mast nav a {
  min-height: 64px;
}
.mast .current {
  color: var(--green);
  font-weight: 680;
  box-shadow: inset 0 -3px var(--green);
}
.lang {
  margin-left: auto;
}
.wrap {
  padding-block: clamp(16px, 3vw, 38px) 44px;
}
.foot {
  border-top: 1px solid var(--line);
  padding-block: 18px;
  font-size: 15px;
}
.back {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
}
.introduction {
  padding: 12px 0 26px;
}
.introduction p,
.caption,
figcaption,
.versions span {
  color: var(--muted);
}
.introduction p {
  font-size: clamp(16px, 2vw, 21px);
}
.search {
  display: flex;
  max-width: 620px;
  gap: 8px;
  margin-top: 21px;
}
.search button {
  flex-shrink: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}
.card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.card:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.card .specimen-photo {
  aspect-ratio: 4/3;
  border-radius: 0;
}
.specimen-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
}
.card-copy {
  padding: 16px 19px;
}
.card h2 {
  font-size: 24px;
}
.card i,
.identity i {
  color: var(--muted);
}
.card p {
  margin: 0.5em 0 0;
}
.suggest {
  margin-top: 25px;
}
.no-photo {
  display: grid;
  min-height: 130px;
  place-items: center;
  background: var(--pale);
  color: var(--green);
  border-radius: 12px;
}
.hero {
  display: grid;
  grid-template-areas: "photo identity" "photo lead";
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  grid-template-rows: auto 1fr;
  gap: 14px clamp(22px, 4vw, 62px);
  align-items: start;
}
.hero-photo {
  grid-area: photo;
}
.hero-photo .specimen-photo {
  aspect-ratio: 1.2;
}
.photo-link {
  display: block;
}
.identity {
  grid-area: identity;
}
.stamp {
  display: block;
  padding: 3px;
  background: var(--pale);
  border: 1px solid var(--green);
  border-radius: 50%;
  margin: 0 0 15px;
}
.other-name {
  font-size: clamp(21px, 2.7vw, 34px);
  line-height: 1.25;
  font-weight: 630;
  color: var(--green);
  margin: 6px 0;
}
.identity i {
  font-size: 20px;
}
.lead {
  grid-area: lead;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.lead > p {
  font-size: clamp(18px, 2vw, 23px);
}
figcaption {
  display: flex;
  align-items: center;
  gap: 2px 12px;
  flex-wrap: wrap;
  padding: 8px 1px;
  font-size: 14px;
}
figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.reading section,
.form-column section {
  margin-top: 30px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.reading section > p {
  max-width: 74ch;
  white-space: pre-line;
}
.reading figure,
.form-column figure {
  max-width: 620px;
  margin: 16px 0;
}
.reading figure .specimen-photo,
.form-column figure .specimen-photo {
  max-height: 430px;
  object-fit: contain;
  background: var(--pale);
}
.form-column {
  max-width: 790px;
  margin: 0 auto;
}
.form-column > h1 {
  font-size: clamp(30px, 4vw, 46px);
}
fieldset,
.editor,
.manage,
.review-box {
  margin: 17px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
legend,
summary {
  font-weight: 650;
}
summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
label {
  display: block;
  margin: 13px 0;
  font-weight: 550;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check input {
  width: auto;
  margin-top: 8px;
}
.notice {
  background: var(--pale);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 9px;
}
.versions {
  padding: 0;
  list-style: none;
}
.versions li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.difference {
  margin: 12px 0;
}
.difference del,
.difference ins {
  display: block;
  padding: 8px 12px;
  background: var(--pale);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.difference del {
  background: var(--white);
  color: var(--muted);
}
.draft-preview img {
  max-height: 280px;
  max-width: 100%;
}
.draft-preview p {
  white-space: pre-line;
}
@media (max-width: 950px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .hero {
    grid-template-areas: "identity" "photo" "lead";
    grid-template-columns: 1fr;
  }
  .stamp {
    float: right;
    margin: 0 0 0 8px;
    width: 62px;
    height: 62px;
  }
  .hero-photo .specimen-photo {
    aspect-ratio: 4/3;
  }
  .lead {
    border: 0;
    padding: 0;
  }
  .lead .button {
    width: 100%;
  }
  .mast > div {
    gap: 0 14px;
  }
  .mast nav {
    order: 3;
    width: 100%;
    gap: 22px;
  }
  .mast nav a {
    min-height: 44px;
  }
  .back {
    margin-bottom: 12px;
  }
  .form-column {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .grid,
  .pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-copy {
    padding: 14px 16px;
  }
  .introduction {
    padding-top: 0;
  }
  .wrap {
    padding-block: 14px 30px;
  }
  .actions {
    gap: 8px;
  }
  fieldset,
  .editor {
    padding: 10px 12px;
  }
  .versions li {
    align-items: flex-start;
    flex-direction: column;
  }
}
