:root {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #272822;
  background: #e9e6dd;
  font-synthesis: none;
  --paper: #faf7ee;
  --muted: #7c7a70;
  --rule: #56574d;
  --red: #8b3f39;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1150px;
  margin: auto;
  padding: 25px 38px 24px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #85857a;
  background: transparent;
  color: #383a31;
  padding: 10px 17px;
  font-size: 12px;
}
button:hover {
  background: #dedacf;
}
button:disabled {
  cursor: default;
  opacity: 0.35;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #8b3f39;
  outline-offset: 3px;
}
.outside-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--muted);
  gap: 16px;
}
.outside-top a {
  color: #66685e;
  text-decoration: none;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0 19px;
}
.toolbar p {
  font-size: 14px;
  margin: 0;
}
.toolbar p span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 7px;
}
.toolbar > div {
  display: flex;
  gap: 10px;
}
.toolbar .print {
  background: #30332c;
  color: var(--paper);
  border-color: #30332c;
}
.toolbar .print:hover {
  background: #515348;
}
.paper {
  background: var(--paper);
  padding: 27px 36px 19px;
  box-shadow: 0 4px 22px #3535270b;
  border: 1px solid #d3d0c3;
}
.issue-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: #66665c;
  gap: 16px;
  padding-bottom: 12px;
}
.issue-line label {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.issue-line input {
  background: transparent;
  color: #45473e;
  font-size: 11px;
  border: 0;
  max-width: 135px;
  font-family: inherit;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 23px;
  border-top: 3px solid #383b32;
  border-bottom: 1px solid #383b32;
  padding: 19px 0 17px;
}
h1,
h2,
h3,
.story-body,
.memory p {
  font-family: "Songti SC", "STSong", "SimSun", serif;
}
.masthead h1 {
  font-size: clamp(30px, 4.6vw, 57px);
  line-height: 1.25;
  letter-spacing: 2px;
  margin: 0;
  flex: 1;
  font-weight: 800;
  overflow-wrap: anywhere;
  min-width: 0;
}
.masthead > p {
  margin: 0;
  border-left: 1px solid #87877c;
  padding-left: 23px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 1px;
  flex: 0 0 auto;
}
.edition-line {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 2px;
  border-bottom: 3px double #6f7064;
  padding: 9px 0;
  gap: 12px;
}
.stories {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  column-gap: 30px;
  align-items: start;
}
.story {
  min-width: 0;
  padding: 22px 0 20px;
  border-bottom: 1px solid #8b8c7f;
}
.story:first-child {
  grid-row: span 2;
  padding-right: 30px;
  border-right: 1px solid #b6b6a8;
  border-bottom: 0;
  margin-right: -1px;
}
.story-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 9px;
}
.story-tools {
  display: flex;
  gap: 4px;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.story:hover .story-tools,
.story:focus-within .story-tools {
  opacity: 1;
}
.story-tools button {
  padding: 4px 7px;
  font-size: 11px;
  border: 0;
}
.story h2 {
  font-size: 25px;
  line-height: 1.4;
  margin: 0 0 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.story:first-child h2 {
  font-size: 34px;
}
.story-body {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.9;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}
.photo-area {
  margin: 0;
}
.photo-area img {
  width: 100%;
  max-height: 410px;
  object-fit: cover;
  display: block;
  filter: saturate(0.82);
}
.photo-area img.example {
  aspect-ratio: 1.47;
  object-fit: cover;
}
.photo-area figcaption {
  font-size: 10px;
  color: var(--muted);
  padding-top: 7px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.photo-tools {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}
.photo-tools button {
  padding: 3px 0;
  font-size: 10px;
  border: 0;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.no-photo {
  border: 1px dashed #b7b6a9;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.no-photo button {
  padding: 7px 12px;
}
.memory {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 25px;
  border-top: 3px double #6f7064;
  padding: 22px 0 15px;
  margin-top: 12px;
}
.memory h2 {
  font-size: 22px;
  line-height: 1.5;
  color: var(--red);
  margin: 0;
}
.memory p {
  white-space: pre-wrap;
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.paper-footer {
  border-top: 1px solid #a0a192;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: var(--muted);
  padding-top: 12px;
  line-height: 1.6;
}
.outside-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  font-size: 11px;
  color: #73756b;
  margin: 15px 0;
}
.outside-bottom p {
  margin: 0;
  line-height: 1.8;
}
.outside-bottom button {
  padding: 2px 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
  font-size: 11px;
  color: #686a60;
}
[contenteditable] {
  cursor: text;
  border-radius: 0;
  outline: none;
  min-height: 1.3em;
}
[contenteditable]:hover {
  background: #efecdf;
}
[contenteditable]:focus {
  background: #efecdf;
  box-shadow: 0 2px 0 #9c655a;
}
[contenteditable]:empty:before {
  content: "点击写一点什么";
  color: #9c9d92;
  font-size: 14px;
}
.story-body:empty:before {
  content: "写一段当时的小事……";
}
#status.error {
  color: #903e32;
}
@media (max-width: 720px) {
  main {
    padding: 19px 15px;
  }
  .outside-top {
    font-size: 10px;
    letter-spacing: 0;
  }
  .toolbar {
    align-items: flex-start;
    margin: 22px 0 16px;
    flex-direction: column;
    gap: 14px;
  }
  .toolbar > div {
    width: 100%;
  }
  .toolbar button {
    flex: 1;
    padding: 10px 9px;
  }
  .paper {
    padding: 19px 20px 16px;
  }
  .issue-line {
    font-size: 9px;
    letter-spacing: 0;
    align-items: flex-start;
  }
  .issue-line > span {
    max-width: 115px;
    line-height: 1.8;
  }
  .issue-line label {
    gap: 2px;
  }
  .issue-line input {
    max-width: 117px;
    font-size: 10px;
  }
  .masthead {
    padding: 15px 0;
    display: block;
  }
  .masthead h1 {
    font-size: 32px;
    letter-spacing: 1px;
  }
  .masthead > p {
    display: none;
  }
  .edition-line {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  .stories {
    display: block;
  }
  .story:first-child {
    border-right: 0;
    border-bottom: 1px solid #8b8c7f;
    padding-right: 0;
    margin: 0;
  }
  .story:first-child h2 {
    font-size: 29px;
  }
  .story {
    padding: 17px 0;
  }
  .story h2 {
    font-size: 25px;
  }
  .story-tools {
    opacity: 1;
  }
  .story-tools button {
    min-width: 30px;
    min-height: 32px;
  }
  .photo-tools button {
    padding: 7px 0;
    font-size: 11px;
  }
  .story-body {
    font-size: 15px;
    line-height: 1.9;
  }
  .memory {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 19px;
  }
  .memory h2 {
    font-size: 21px;
  }
  .memory p {
    font-size: 15px;
  }
  .paper-footer {
    font-size: 8px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .paper-footer > span:first-child {
    display: none;
  }
  .outside-bottom {
    gap: 12px;
  }
  .outside-bottom p {
    font-size: 10px;
  }
  .photo-area img {
    max-height: 350px;
  }
}
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  :root,
  html {
    background: white;
  }
  body {
    background: white;
    color: #151710;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .outside-top,
  .toolbar,
  .outside-bottom,
  .story-tools,
  .photo-tools,
  .no-photo {
    display: none !important;
  }
  .paper {
    border: 0;
    box-shadow: none;
    padding: 0;
    background: white;
    width: auto;
  }
  .masthead h1 {
    font-size: 35px;
  }
  .masthead > p {
    font-size: 10px;
  }
  .masthead {
    padding: 12px 0;
  }
  .issue-line input {
    appearance: none;
    color: black;
    padding: 0;
    width: 110px;
  }
  .issue-line input::-webkit-calendar-picker-indicator {
    display: none;
  }
  .stories {
    column-gap: 20px;
  }
  .story {
    padding: 15px 0;
    break-inside: avoid;
  }
  .story:first-child {
    padding-right: 20px;
  }
  .story h2 {
    font-size: 20px;
  }
  .story:first-child h2 {
    font-size: 25px;
  }
  .story-body,
  .memory p {
    font-size: 12px;
    line-height: 1.8;
  }
  .photo-area img {
    max-height: 290px;
  }
  .memory {
    grid-template-columns: 145px 1fr;
    gap: 20px;
    padding: 14px 0;
    break-inside: avoid;
  }
  .memory h2 {
    font-size: 18px;
  }
  .photo-area figcaption {
    font-size: 9px;
  }
  [contenteditable] {
    background: none !important;
    box-shadow: none !important;
  }
  [contenteditable]:empty:before {
    content: "";
  }
  .paper-footer {
    font-size: 8px;
  }
  .edition-line {
    font-size: 9px;
  }
  .issue-line {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media print {
  .long-edition .stories { display: block; }
  .long-edition .story, .long-edition .story:first-child {
    break-inside: auto;
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
  }
  .long-edition .story h2, .long-edition .story-header { break-after: avoid; }
  .long-edition .story-body { orphans: 3; widows: 3; }
  .long-edition .photo-area { width: 60%; break-inside: avoid; }
  .long-edition .photo-area img { max-height: 220px; object-fit: contain; object-position: left; }
}
