/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url(assets/fonts/dm-mono-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url(assets/fonts/dm-mono-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(assets/fonts/dm-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(assets/fonts/dm-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url(assets/fonts/dm-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url(assets/fonts/dm-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 500;
  font-display: block;
  src: url(assets/fonts/newsreader-300-500-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 500;
  font-display: block;
  src: url(assets/fonts/newsreader-300-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 500;
  font-display: block;
  src: url(assets/fonts/newsreader-300-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f1eddf;
  --ink: #151814;
  --coral: #ff5a3d;
  --coral-soft: #f6c9bb;
  --muted: #77766c;
  --rule: rgba(21, 24, 20, .22);
  --serif: "Newsreader", Georgia, serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

img { max-width: 100%; }

.story-copy, .book, .contact-copy, .footnote { overflow-wrap: anywhere; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 300;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.corner-bodhisattva {
  flex: 0 0 52px;
  width: 52px;
  pointer-events: none;
  transform-origin: 50% 18%;
  will-change: transform;
  animation: bodhisattva-float 6.4s cubic-bezier(.45, 0, .2, 1) infinite;
}

.corner-bodhisattva img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.3) drop-shadow(0 7px 9px rgb(35 31 25 / .1));
}

@keyframes bodhisattva-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.8deg) scale(1); }
  38% { transform: translate3d(2px, -7px, 0) rotate(.9deg) scale(1.015); }
  72% { transform: translate3d(-1px, -3px, 0) rotate(.2deg) scale(1.006); }
}

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

.page {
  width: min(790px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.name {
  color: var(--ink);
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
  text-decoration: none;
}

.name::after {
  content: "•";
  margin-left: 9px;
  color: var(--coral);
  font-size: .38em;
  vertical-align: top;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover,
a:focus-visible { color: var(--coral); }

a:focus-visible {
  outline: 1px solid var(--coral);
  outline-offset: 4px;
}

.aside-note {
  margin: 38px 0 112px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .13em;
  text-transform: uppercase;
}

main { counter-reset: section; }

section {
  position: relative;
  margin-bottom: 112px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 28px;
  counter-increment: section;
}

h1,
h2 {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 58px);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.045em;
}

h1::before,
h2::before {
  content: "0" counter(section) " /";
  display: block;
  margin-bottom: 15px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .13em;
}

.lede {
  max-width: 700px;
  margin: 0 0 42px;
  font-size: clamp(28px, 4.5vw, 38px);
  line-height: 1.13;
  letter-spacing: -.025em;
}

.lede a {
  color: var(--coral);
  font-style: italic;
  text-decoration: none;
}

.story-copy {
  max-width: 690px;
}

.story-copy p {
  margin: 0 0 22px;
}

.story-copy strong {
  font-weight: 400;
  color: var(--coral);
}

.collapsible-life {
  padding-top: 0;
  border-top: 0;
}

.collapsible-life details {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.collapsible-life summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  color: var(--coral);
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 40px);
  font-style: italic;
  line-height: 1.1;
  cursor: pointer;
  list-style: none;
}

.collapsible-life summary span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.collapsible-life summary::-webkit-details-marker { display: none; }
.collapsible-life summary::marker { content: ""; }

.collapsible-life summary::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 14px 1px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 1px 14px no-repeat;
}

.collapsible-life details[open] summary::after {
  background: linear-gradient(var(--muted), var(--muted)) center / 14px 1px no-repeat;
}

.collapsible-life summary:hover,
.collapsible-life summary:focus-visible { color: var(--ink); }

.collapsible-life summary:focus-visible {
  outline: 1px solid var(--coral);
  outline-offset: 6px;
}

.timeline p {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  margin: 0;
  padding: 17px 0;
  border-bottom: 1px dotted var(--rule);
}

.timeline span {
  padding-top: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.life-line {
  position: relative;
  border-top: 1px solid var(--rule);
}

.collapsible-life .life-line { border-bottom: 0; }

.collapsible-life .life-line article:last-child { border-bottom: 0; }

.life-line article {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.life-line article::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 82px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  transform: translateX(-50%);
}

.life-line time {
  padding-top: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
}

.life-line p {
  margin: 0;
  font-size: 23px;
  line-height: 1.35;
}

.life-line .abyss p {
  color: var(--muted);
  font-style: italic;
}

.life-line .return p {
  color: var(--coral);
  font-style: italic;
}

.now-card {
  position: relative;
  padding: 34px 36px 17px;
  background: var(--coral-soft);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-.35deg);
}

.now-card p { margin: 0 0 17px; }

.interests {
  margin: 36px 0 0;
  padding-left: 24px;
  border-left: 1px solid var(--coral);
  color: var(--muted);
  font-size: 18px;
}

.book-list {
  border-bottom: 1px solid var(--rule);
}

.book {
  position: relative;
  padding: 34px 0 38px 80px;
  border-top: 1px solid var(--rule);
}

.book-number {
  position: absolute;
  top: 43px;
  left: 0;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
}

.book h3 {
  margin: 0 0 22px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.book > p:not(.book-number) {
  margin: 0 0 18px;
}

.book strong {
  font-weight: 400;
}

blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--coral);
  font-size: 24px;
  font-style: italic;
  line-height: 1.25;
}

blockquote p { margin: 0 0 8px; }

.principles {
  margin: 20px 0 0;
  padding-left: 24px;
}

.principles li {
  margin: 0 0 18px;
  padding-left: 8px;
}

.stamp {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dated-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dated-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.dated-list time {
  padding-top: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.dated-list span { font-size: 23px; }

.footnote {
  margin: 20px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
}

dl { margin: 0; }

dl > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

dt {
  color: var(--coral);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
}

dd { margin: 0; }

.contact-copy {
  max-width: 660px;
  margin-top: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

footer p { margin: 0; }

@media (max-width: 680px) {
  body { font-size: 19px; }
  .page { width: calc(100% - 32px); max-width: 790px; padding-top: 26px; }
  .corner-bodhisattva { flex-basis: 43px; width: 43px; }
  .site-header { display: block; }
  nav { justify-content: flex-start; margin-top: 20px; gap: 4px 12px; font-size: 12px; }
  nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .site-header { padding-bottom: 20px; }
  .site-header .name { display: inline-block; }
  .aside-note { margin: 30px 0 80px; line-height: 1.6; }
  section { margin-bottom: 82px; }
  .timeline p { grid-template-columns: 74px 1fr; gap: 10px; }
  .life-line article { grid-template-columns: 64px 1fr; gap: 19px; }
  .life-line article::before { left: 60px; }
  .life-line p { font-size: 20px; }
  .now-card { padding: 27px 24px 10px; box-shadow: 7px 7px 0 var(--ink); }
  .dated-list li { grid-template-columns: 70px 1fr; }
  .dated-list span { font-size: 20px; }
  dl > div { grid-template-columns: 1fr; gap: 4px; }
  .book { padding-left: 38px; }
  .book-number { top: 43px; }
  blockquote { font-size: 21px; }
  footer { display: block; line-height: 1.6; }
  footer a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; }
  .footnote { font-size: 11px; }
  .footnote a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
}

@media (max-width: 380px) {
  .life-line article { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .life-line article::before { left: 48px; }
  .book { padding-left: 26px; }
  blockquote { padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .corner-bodhisattva { animation: none; }
}
