:root {
  --paper: #faf8f2;
  --ink: #262923;
  --muted: #52574d;
  --wine: #773a4b;
  --rule: #c9c8ba;
  --latin: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --serif: var(--latin), 'Songti SC', 'Noto Serif CJK SC', SimSun, serif;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
.sheet { width: min(67rem, calc(100% - clamp(2.5rem, 10vw, 9rem))); margin: 0 auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { color: var(--wine); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
::selection { color: #321b20; background: #e9cbd2; }
.skip { position: absolute; top: .2rem; left: 1rem; z-index: 1; background: var(--paper); padding: .65rem; transform: translateY(-140%); }
.skip:focus { transform: none; }
header, header nav, .brand, footer { display: flex; align-items: center; }
header, footer { justify-content: space-between; gap: 1rem; }
header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: clamp(.9rem, 2.5vw, 2.2rem); border-bottom: 1px solid var(--rule); padding: .95rem 0; }
header nav { gap: clamp(.8rem, 2.5vw, 2.2rem); }
header nav a { text-decoration: none; padding: .55rem 0; font-size: .9rem; }
header nav a:hover { text-decoration: underline; }
.brand { justify-self: start; text-decoration: none; gap: .65rem; font: 500 1.45rem/1.1 var(--latin); white-space: nowrap; }
.language-link { border-inline-start: 1px solid var(--rule); padding: .5rem 0 .5rem clamp(.8rem, 1.8vw, 1.35rem); color: var(--wine); font-size: .9rem; font-weight: 600; text-decoration: none; }
.language-link:hover { text-decoration: underline; }
.monogram { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border: 1px solid currentColor; border-radius: 50%; font: italic 1.45rem/1 var(--latin); color: var(--wine); }
.profile { display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(2.25rem, 7vw, 6.5rem); align-items: center; padding: clamp(3rem, 6vw, 5.7rem) 0; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font: 500 clamp(2.1rem, 3.1vw, 3.2rem)/1.16 var(--serif); letter-spacing: -.04em; }
h1 em { display: block; font: italic 400 clamp(5.8rem, 10.8vw, 9.5rem)/.95 var(--latin); letter-spacing: -.075em; color: var(--wine); margin: .03em 0 0 -.035em; }
.bio { max-width: 32rem; font-size: clamp(1rem, 1.28vw, 1.16rem); line-height: 1.9; }
.work { border-top: 1px solid var(--ink); padding: 1.35rem 0 clamp(2.7rem, 5.5vw, 4.7rem); scroll-margin-top: 1rem; }
.work h2 { font: 600 clamp(1.28rem, 1.8vw, 1.5rem)/1.4 var(--serif); margin-bottom: 1.3rem; }
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 3.4vw, 2.7rem); }
.entry { display: block; color: var(--ink); text-decoration: none; }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 2.37; object-fit: cover; border-radius: 3px; }
.kitchen-cover { object-position: 50% 43%; background: #483443; }
.pc-cover { object-position: 49% 41%; background: #cbd2df; }
.series { display: block; font: italic 1rem/1.4 var(--latin); color: var(--wine); margin: .95rem 0 .15rem; }
.entry h3 { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; font: 600 clamp(1.45rem, 2.55vw, 2.15rem)/1.35 var(--serif); }
.arrow { flex: none; color: var(--wine); font: 400 .8em/1 var(--latin); padding-right: .1em; }
.entry p { color: var(--muted); margin-top: .55rem; font-size: .98rem; line-height: 1.72; text-wrap: pretty; }
.entry:hover h3, .entry:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.software { padding-bottom: 1.7rem; }
.software h2 { margin-bottom: .7rem; }
.project { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3.4fr) 1rem; align-items: baseline; gap: 1.25rem; border-bottom: 1px solid var(--rule); padding: 1.05rem 0; text-decoration: none; }
.project h3 { font: 500 1.4rem/1.3 var(--serif); }
.project p { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.project:hover h3, .project:focus-visible h3 { text-decoration: underline; }
.project .arrow { font-size: 1.05rem; }
footer { align-items: baseline; padding: .1rem 0 2.4rem; color: var(--muted); font-size: .79rem; line-height: 1.8; flex-wrap: wrap; }
details { max-width: 30rem; }
summary { cursor: pointer; }
details p { margin-top: .4rem; }
@media (max-width: 42rem) {
  header { padding: .7rem 0; }
  .brand { font-size: 1.18rem; gap: .45rem; }
  .monogram { width: 1.85rem; height: 1.85rem; font-size: 1.24rem; }
  header nav { gap: .8rem; }
  header nav a { font-size: .83rem; }
  .profile { grid-template-columns: 1fr; gap: 1.25rem; padding: 2.65rem 0 2.25rem; }
  h1 { font-size: clamp(2rem, 7.8vw, 2.8rem); }
  h1 em { display: inline; font-size: 1.77em; white-space: nowrap; margin: 0; }
  .bio { max-width: 36rem; line-height: 1.8; }
  .guides { grid-template-columns: 1fr; gap: 2rem; }
  .cover { aspect-ratio: 2.45; }
  .project { grid-template-columns: 1fr auto; gap: .35rem .8rem; }
  .project p { grid-column: 1; grid-row: 2; }
  .project .arrow { grid-column: 2; grid-row: 1; }
}
@media (max-width: 22rem) {
  header .monogram { display: none; }
  .sheet { width: calc(100% - 2rem); }
  .brand { font-size: 1.08rem; }
  header nav { gap: .65rem; }
}
@media (max-width: 34rem) {
  header { grid-template-columns: minmax(0, 1fr) auto; row-gap: .3rem; }
  header nav { grid-column: 1 / -1; grid-row: 2; gap: 1.3rem; }
  header nav a { padding: .35rem 0; }
  .language-link { grid-column: 2; grid-row: 1; border: 0; }
}
@media print {
  :root { background: white; }
  .sheet { width: 100%; }
  header nav, .language-link, .skip, .arrow { display: none; }
  .profile { padding: 2rem 0; }
  .work { padding-bottom: 1rem; }
  .entry, .project { break-inside: avoid; }
}
