:root {
  --paper: #faf9f6;
  --ink: #292725;
  --accent: #794c50;
  --muted: #716b65;
  --line: #e1ddd7;
  --accent-soft: #dbc8c8;
  --surface: #f0ede8;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display:
    Georgia, 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 5px;
}
img {
  max-width: 100%;
  height: auto;
}
::selection {
  background: var(--accent-soft);
}
.wrap {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  padding: 12px;
  background: white;
}
.skip:focus {
  top: 8px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: 0.08em;
}
.brand img {
  mix-blend-mode: multiply;
  width: 68px;
  transform: rotate(-8deg);
  transform-origin: 50% 72%;
}
.brand img:hover,
.brand:focus-visible img {
  animation: chicken-wiggle 700ms ease-in-out;
}
@keyframes chicken-wiggle {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  25% {
    transform: rotate(14deg);
  }
  50% {
    transform: rotate(-18deg);
  }
  75% {
    transform: rotate(5deg);
  }
}
.brand small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--muted);
  letter-spacing: 0.12em;
}
.header nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.header nav a {
  position: relative;
  padding: 10px 0;
  white-space: nowrap;
}
.header nav a[aria-current]::after {
  content: '';
  position: absolute;
  height: 1px;
  background: var(--accent);
  bottom: 3px;
  left: 0;
  right: 0;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: 570px;
  gap: 12px;
  padding-block: 64px;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.8;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.035em;
}
.hero h1 {
  margin: 23px 0;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.025em;
}
.hero h1 span {
  display: block;
}
.hero h1 span:last-child {
  color: var(--ink);
}
.intro {
  max-width: 360px;
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  margin-bottom: 30px;
}
.text-link {
  font-size: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
}
.text-link span {
  margin-left: 26px;
}
.recess {
  height: 390px;
  position: relative;
}
.recess img {
  position: absolute;
  mix-blend-mode: multiply;
  object-fit: contain;
}
.hero-dog {
  width: 66%;
  left: 1%;
  top: 27px;
  transform: rotate(-8deg);
}
.hero-cat {
  width: 44%;
  right: -2%;
  top: 7px;
  transform: rotate(10deg);
}
.hero-duck {
  width: 53%;
  right: 0;
  top: 150px;
  transform: rotate(-6deg);
}
.pencil-star {
  position: absolute;
  left: 23%;
  top: 0;
  color: var(--accent);
  font-size: 52px;
  transform: rotate(12deg);
}
.hand-note {
  position: absolute;
  bottom: 1px;
  left: 20%;
  color: var(--muted);
  font:
    17px 'KaiTi',
    'STKaiti',
    serif;
  transform: rotate(-4deg);
  letter-spacing: 0.06em;
}
.ground {
  position: absolute;
  left: 10%;
  right: 3%;
  bottom: 55px;
  height: 10px;
  border-top: 2px solid var(--muted);
  border-radius: 50%;
  transform: rotate(2deg);
  opacity: 0.45;
}
.section {
  padding-block: 44px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 0;
}
.section-number {
  color: var(--accent);
  font:
    italic 14px Georgia,
    serif;
  margin-right: 18px;
}
.section-heading > a,
.section-heading > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.section-heading > a:hover {
  color: var(--accent);
}
.post-row {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  gap: 25px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.post-row:last-child {
  border-bottom: none;
}
.post-row time {
  color: var(--muted);
  font:
    13px Georgia,
    serif;
  padding-top: 4px;
  letter-spacing: 0.07em;
}
.category {
  color: var(--accent);
  font-size: 11px;
  margin-bottom: 9px;
}
.post-row h3 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 12px;
}
.post-row h3 a:hover {
  color: var(--accent);
}
.post-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 0;
}
.post-arrow {
  font-size: 26px;
  align-self: center;
  color: var(--accent);
}
.animal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding-block: 15px;
}
.animal {
  margin: 0;
  text-align: center;
}
.animal img {
  display: block;
  mix-blend-mode: multiply;
  transition: transform 0.2s;
}
.animal:nth-child(odd) img {
  transform: rotate(-5deg);
}
.animal:nth-child(even) img {
  transform: rotate(5deg);
}
.animal:hover img {
  transform: translateY(-8px) rotate(0);
}
.animal figcaption {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.animal-number {
  margin-right: 7px;
  color: var(--accent);
  font:
    italic 12px Georgia,
    serif;
}
.after-class {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  padding-block: 48px 64px;
}
.after-class > a + a {
  border-left: 1px solid var(--line);
  padding-left: 55px;
}
.after-class h2 {
  font-size: 27px;
  margin: 16px 0;
}
.after-class p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}
.after-class p span {
  color: var(--accent);
  margin-left: 10px;
}
.footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 26px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.footer span span {
  color: var(--accent);
  margin-left: 10px;
}
.page-heading {
  padding: 72px 0 46px;
}
.page-heading h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 16px 0 20px;
  letter-spacing: 0.04em;
}
.page-heading > p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.pagination {
  display: flex;
  gap: 22px;
  padding-block: 50px;
  font-size: 14px;
}
.pagination .current {
  color: var(--accent);
  border-bottom: 1px solid;
}
.article {
  max-width: 730px;
  margin: auto;
}
.article-heading {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
}
.back {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 45px;
}
.article h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 20px 0;
  line-height: 1.5;
}
.byline {
  font-size: 13px;
  color: var(--muted);
}
.prose {
  font-size: 17px;
  line-height: 2.05;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
}
.prose p {
  margin: 0 0 1.6em;
}
.prose h2,
.prose h3 {
  margin-top: 1.8em;
  line-height: 1.6;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose img {
  display: block;
  height: auto;
  max-height: 850px;
  margin: 28px auto;
}
.prose blockquote {
  margin: 28px 0;
  padding: 8px 24px;
  border-left: 3px solid var(--accent-soft);
  color: var(--muted);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose pre {
  overflow-x: auto;
  padding: 20px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.7;
  border-radius: 4px;
}
.prose code {
  font-size: 0.87em;
  background: var(--surface);
  padding: 0.12em 0.3em;
}
.prose pre code {
  padding: 0;
}
.prose hr {
  width: 80px;
  margin: 48px auto;
  border: 0;
  border-top: 2px dashed var(--line);
}
.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 16px;
}
.article-end {
  text-align: center;
  padding: 30px 0 50px;
  color: var(--muted);
  font-size: 12px;
}
.article-end img {
  mix-blend-mode: multiply;
}
.empty-album {
  text-align: center;
  padding: 0 0 80px;
  color: var(--muted);
  font-size: 14px;
}
.empty-album img {
  mix-blend-mode: multiply;
  transform: rotate(-6deg);
}
.photo-grid {
  columns: 2;
  column-gap: 30px;
  padding-bottom: 70px;
}
.photo-grid figure {
  break-inside: avoid;
  margin: 0 0 36px;
}
.photo-grid img {
  display: block;
  width: 100%;
}
.photo-grid figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.projects {
  padding-bottom: 70px;
}
.project {
  display: flex;
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-block: 20px;
}
.project img {
  mix-blend-mode: multiply;
}
.project h2 {
  font-size: 28px;
}
.project p:last-child {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header {
    flex-wrap: wrap;
    padding-block: 15px;
    gap: 12px;
  }
  .brand {
    font-size: 19px;
  }
  .brand img {
    width: 56px;
  }
  .header nav {
    gap: 24px;
  }
  .hero {
    min-height: auto;
    padding-block: 40px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .recess {
    height: 310px;
  }
  .hero-duck {
    top: 130px;
  }
  .hand-note {
    bottom: 0;
    font-size: 14px;
  }
  .ground {
    bottom: 43px;
  }
  .animal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 10px;
  }
  .animal img {
    margin: auto;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .after-class {
    gap: 25px;
  }
  .after-class > a + a {
    padding-left: 25px;
  }
}
@media (max-width: 540px) {
  .header nav {
    width: 100%;
    justify-content: space-around;
    font-size: 13px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 24px;
  }
  .hero h1 {
    font-size: clamp(32px, 8.7vw, 43px);
  }
  .intro {
    font-size: 14px;
  }
  .recess {
    width: 100%;
    max-width: 340px;
    height: 290px;
    margin: 18px auto 0;
  }
  .hero-dog {
    top: 10px;
  }
  .hero-duck {
    top: 100px;
  }
  .pencil-star {
    font-size: 36px;
  }
  .section {
    padding-block: 32px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-number {
    margin-right: 12px;
  }
  .post-row {
    grid-template-columns: 1fr 26px;
    gap: 12px;
    padding-block: 24px;
  }
  .post-row time {
    grid-column: 1 / -1;
    font-size: 11px;
  }
  .post-row h3 {
    font-size: 22px;
  }
  .post-description {
    font-size: 13px;
  }
  .after-class {
    grid-template-columns: 1fr;
  }
  .after-class > a + a {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }
  .after-class h2 {
    font-size: 25px;
  }
  .footer {
    flex-direction: column;
    gap: 6px;
  }
  .page-heading {
    padding-top: 42px;
  }
  .photo-grid {
    columns: 1;
  }
  .prose {
    font-size: 16px;
  }
  .project {
    gap: 12px;
  }
  .project img {
    width: 110px;
  }
  .project h2 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand img:hover,
  .brand:focus-visible img {
    animation: none;
  }
  .animal img {
    transition: none;
  }
}
