/* Zhonghao He — editorial personal site (wide, three-column).
   Markdown-driven: edit content.md; index.html distributes its sections
   across a masthead + 3-column grid. Style: Fraunces serif headers,
   Work Sans body, deep-navy on warm cream, soft accent cards. */

:root {
  --cream:      #FBF7EF;
  --cream-deep: #F4ECDE;
  --ink:        #1B1C3A;
  --muted:      #6B6C82;
  --rule:       #E4DCCB;
  --accent:     #B2524C;
  --link:       #345b8c;
  --link-hover: #1B1C3A;
  --card:       #F7E8E6;
  --card-edge:  #ECD3D0;
  --ph-edge:    #D8CDB6;
  --maxw:       1240px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400; font-size: 1rem; line-height: 1.68;
  color: var(--ink); background: var(--cream); margin: 0; padding: 0;
}

.site { max-width: var(--maxw); margin: 0 auto; padding: 72px 36px 110px; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 400; font-optical-sizing: auto;
  letter-spacing: -0.01em; line-height: 1.15;
}

/* ---------- Masthead (full width) ---------- */
.masthead {
  margin: 0 0 3rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.masthead .center-header h1,
.masthead h1 {
  font-size: 3.4rem; font-weight: 300; margin: 0 0 .1em; letter-spacing: -0.02em;
}
.masthead .tagline {
  font-family: "Fraunces", serif; font-size: 1.25rem; font-weight: 300;
  color: var(--muted); margin: .2em 0 0; max-width: 46ch;
}
.contact-row {
  font-family: "Work Sans", sans-serif; font-size: .92rem;
  letter-spacing: .01em; color: var(--muted); margin: 1.2em 0 0;
}
.contact-row a { border-bottom: none; font-weight: 500; }
.contact-row a:hover { color: var(--accent); }

/* ---------- 3-column grid ---------- */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.col { min-width: 0; }
.col > :first-child { margin-top: 0; }

.col h1 {            /* section headers inside columns */
  font-size: 1.45rem; font-weight: 400; margin: 0 0 .7em;
  padding-bottom: .25em; border-bottom: 1px solid var(--rule);
}
.col h2 { font-size: 1.15rem; margin: 1.5em 0 .4em; }
.col h3 { font-size: 1.05rem; margin: 1.3em 0 .35em; }
.col p { margin: .9em 0; font-size: .97rem; }

a {
  color: var(--link); text-decoration: none;
  border-bottom: 1px solid rgba(52,91,140,.32);
  transition: color .15s ease, border-color .15s ease;
}
a:hover { color: var(--link-hover); border-bottom-color: var(--link-hover); }
strong { font-weight: 600; }
em { font-style: italic; color: var(--muted); }

ul { margin: .9em 0; padding-left: 1.1em; list-style: none; }
li { margin: .6em 0; position: relative; padding-left: 1.05em; font-size: .95rem; }
li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Work cards ---------- */
.work-card {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 12px; padding: 1.1em 1.25em 1em; margin: 1.1em 0;
}
.work-card blockquote { border: none; margin: 0; padding: 0; color: var(--ink); }
.work-card blockquote p:first-child { margin-top: 0; font-size: 1.02rem; }
.work-card blockquote a { font-weight: 600; }
.work-card p { margin: .6em 0; font-size: .93rem; }
.work-card p:last-child { margin-bottom: 0; }
.work-card em { color: var(--accent); font-style: normal; font-weight: 500; }

blockquote {
  border-left: 3px solid var(--rule); margin: 1em 0;
  padding: .15em 0 .15em 1.1em; color: var(--muted);
}

/* ---------- Placeholders ---------- */
.ph {
  border: 1.5px dashed var(--ph-edge); border-radius: 12px;
  background: rgba(244,236,222,.4);
  padding: 1.1em 1.25em; margin: 0 0 1.4em;
  color: var(--muted);
}
.ph .ph-label {
  font-family: "Work Sans", sans-serif; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); font-weight: 600; margin-bottom: .4em;
}
.ph .ph-hint { font-size: .9rem; font-style: italic; }
.ph-photo { aspect-ratio: 1/1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; }

hr { border: none; border-top: 1px solid var(--rule); margin: 2.4em 0; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 1000px) {
  .cols { grid-template-columns: 1fr 1fr; }
  .col-right { grid-column: 1 / -1; }
}
@media screen and (max-width: 680px) {
  .site { padding: 48px 22px 70px; }
  .cols { grid-template-columns: 1fr; gap: 8px; }
  .masthead .center-header h1, .masthead h1 { font-size: 2.5rem; }
}


/* Bullet-train Z — the header "Z" as a 高铁/子弹头, inline on the name's baseline (ZH) */
.has-train{display:inline;line-height:inherit}
.trainZ{height:.72em;width:auto;vertical-align:baseline;margin-right:.02em;color:var(--ink)}
@media(max-width:720px){.trainZ{height:.68em}}

.portrait { width: 100%; border-radius: 12px; display: block; margin-bottom: 1rem; object-fit: cover; }
