/* ==========================================================================
   王佳瑞 · 杂志编辑版
   报头 / 分栏 / 图注 / 衬线标题 — 全部黑白灰，靠排版与图片撑气质
   ========================================================================== */

:root {
  --paper: #ffffff;
  --paper-2: #f7f7f6;
  --ink: #111111;
  --ink-2: #444444;
  --ink-3: #7d7d7d;
  --ink-4: #a8a8a8;
  --line: #e2e2e2;
  --line-2: #111111;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: #111;
  color: #fff;
}

.sheet {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px 56px;
}

/* --------------------------------------------------------------------------
   报头
   -------------------------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 14px;
  border-bottom: 2px solid var(--line-2);
}

.masthead .name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.masthead .meta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 18px;
}

/* --------------------------------------------------------------------------
   Hero：左文右图
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  padding: 54px 44px 46px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 22px;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin-bottom: 16px;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--ink-2);
}

.hero-text .role {
  font-size: 14.5px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.hero-text .say {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 400px;
}

.hero-fig {
  position: relative;
  min-height: 340px;
  background: var(--paper-2);
}

.hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

/* --------------------------------------------------------------------------
   区块通用
   -------------------------------------------------------------------------- */

.sec {
  padding: 46px 0 48px;
  border-bottom: 1px solid var(--line);
}

.sec-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.sec-label b {
  color: var(--ink);
  font-weight: 500;
}

/* 两栏正文 */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.two-col p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
}

.two-col p + p {
  margin-top: 1em;
}

.two-col p strong {
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   图片组
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 6px;
}

figure {
  display: flex;
  flex-direction: column;
}

figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figcaption {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 11px;
  display: flex;
  gap: 10px;
}

figcaption span {
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   技能表
   -------------------------------------------------------------------------- */

.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
}

.skill-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.skill-row .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 4px;
}

.skill-row .v {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
}

.skill-row .v b {
  font-weight: 500;
  color: var(--ink);
}

.skill-row .v i {
  font-style: normal;
  color: var(--ink-4);
  margin: 0 3px;
}

/* --------------------------------------------------------------------------
   联系
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: end;
}

.contact .big {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.contact .big em {
  font-style: italic;
  color: var(--ink-3);
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: padding 0.2s;
}

.contact-links a:first-child {
  border-top: 1px solid var(--line);
}

.contact-links a:hover {
  padding-left: 6px;
}

.contact-links a:hover .t {
  color: var(--ink);
}

.contact-links .t {
  color: var(--ink-2);
  transition: color 0.2s;
}

.contact-links .d {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

/* 简历占位（未上传，不可点） */
.contact-links .plain {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  cursor: default;
}

.contact-links .plain .t {
  color: var(--ink-4);
}

/* --------------------------------------------------------------------------
   版权页
   -------------------------------------------------------------------------- */

.colo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
}

.colo .row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.colo .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 4px;
  white-space: nowrap;
}

.colo .v {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.colo .v.dim {
  color: var(--ink-4);
}

.colo .v a {
  border-bottom: 1px solid var(--line-2);
  transition: color 0.2s, border-color 0.2s;
}

.colo .v a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  text-transform: uppercase;
}

.foot a {
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.foot a:hover {
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .sheet {
    padding: 0 22px 40px;
  }

  .masthead {
    padding: 20px 0 12px;
  }

  .masthead .meta {
    gap: 12px;
    font-size: 9px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding: 34px 0 30px;
    order: 2;
  }

  .hero-fig {
    order: 1;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .sec {
    padding: 34px 0 36px;
  }

  .sec-label {
    margin-bottom: 22px;
  }

  .two-col,
  .gallery,
  .skills,
  .contact,
  .colo {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .colo {
    gap: 0;
  }

  .contact .big {
    font-size: 26px;
  }
}
