:root {
  --pink: #e8afc0;
  --green: #294517;
  --dark: #203713;
  --paper: #fff4e5;
  --ink: #25301f;
  --serif: Didot, "Bodoni 72", "Times New Roman", "Songti SC", serif;
  --sans: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--pink);
  font-family: var(--sans);
  line-height: 1.85;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

a { color: inherit; }
.note-shell {
  width: min(920px, calc(100% - 48px));
  margin: 34px auto;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(54, 24, 33, .22);
}

.note-nav {
  min-height: 70px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
  background: var(--dark);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
}

.note-nav a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 5px; }
.note-header { padding: 72px 11% 58px; color: var(--paper); background: var(--green); }
.note-label { margin: 0 0 22px; color: var(--pink); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.note-header h1 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(3rem, 8vw, 6.3rem); font-weight: 400; line-height: .96; letter-spacing: -.05em; }
.note-header h1.compact-title { max-width: 1080px; font-size: clamp(3.1rem, 6.8vw, 5.8rem); line-height: 1.02; letter-spacing: -.06em; overflow-wrap: anywhere; }
.note-subtitle { max-width: 650px; margin: 26px 0 0; color: var(--pink); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.note-meta { margin: 24px 0 0; font-family: var(--mono); font-size: 10px; opacity: .72; }
.note-body { width: min(680px, calc(100% - 44px)); margin: 0 auto; padding: 64px 0 86px; }
.note-body p { margin: 0 0 1.55em; }
.note-body .opening { font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.5; }
.note-body h2 { margin: 2.4em 0 .8em; color: var(--green); font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1.2; }
.note-body blockquote { margin: 2.4em 0; padding: 22px 26px; border-left: 4px solid var(--pink); color: var(--green); font-family: var(--serif); font-size: 1.5rem; line-height: 1.5; }
.note-body .english { color: #a44367; font-family: var(--serif); font-size: 1.1rem; }
.note-end { margin-top: 58px; padding-top: 28px; border-top: 1px solid rgba(41,69,23,.25); font-family: var(--mono); font-size: 11px; }
.note-illustration { width: min(350px, 80%); margin: 30px auto 44px; display: block; mix-blend-mode: multiply; transform: rotate(-1deg); }

@media (max-width: 650px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .note-shell { width: 100%; margin: 0; border-radius: 0; }
  .note-nav { padding: 0 20px; }
  .note-header { padding: 56px 24px 46px; }
  .note-header h1.compact-title { max-width: 100%; font-size: clamp(2.3rem, 11.2vw, 3.35rem); line-height: 1.05; letter-spacing: -.045em; word-break: normal; overflow-wrap: anywhere; }
  .note-body { width: calc(100% - 40px); padding: 48px 0 66px; }
  .note-header,
  .note-body,
  .note-body p,
  .note-subtitle {
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-break: anywhere;
  }
}
