:root {
  --bg: #f6f2e8;
  --paper: #fffaf0;
  --ink: #181613;
  --muted: #716a5f;
  --line: #d9d0c0;
  --accent: #9f4b34;
  --accent-soft: #ead9cf;
  --shell: 1060px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.58;
}

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

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, calc((100vw - var(--shell)) / 2));
  border-bottom: 1px solid rgba(217, 208, 192, 0.84);
  background: rgba(246, 242, 232, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(234, 217, 207, 0.5) 58% 100%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 72px;
  align-items: end;
  min-height: 520px;
  padding: 92px 0 72px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.section-head .eyebrow,
.contact .eyebrow {
  margin-bottom: 16px;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 500;
  line-height: 0.92;
}

h1 span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.42em;
  font-weight: 500;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: #3f3a33;
  font-size: 19px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.plain {
  background: transparent;
}

.profile-card {
  padding: 20px 0 4px;
  border-top: 1px solid var(--ink);
}

.profile-card dl {
  display: grid;
  gap: 18px;
}

.profile-card div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.profile-card dt,
.work-meta,
.track-meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card dd {
  color: var(--ink);
  font-size: 15px;
}

.section {
  padding: 72px 0;
}

.intro {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.intro-grid,
.notes-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.intro p,
.work-body p,
.track-content p,
.index-grid p,
.note-list p {
  color: var(--muted);
  font-size: 16px;
}

.section-head {
  margin-bottom: 30px;
}

.section-head.inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.track-list {
  border-top: 1px solid var(--ink);
}

.track-item {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 42px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.track-content {
  display: grid;
  gap: 15px;
}

.track-content h3 {
  font-size: 23px;
}

.track-content p {
  max-width: 780px;
}

.detail-list {
  max-width: 840px;
  padding-left: 1.1em;
  margin: 0;
  color: #4f4941;
  font-size: 15px;
}

.detail-list li + li {
  margin-top: 8px;
}

.work-list {
  border-top: 1px solid var(--ink);
}

.work-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.work-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: start;
}

.work-body p {
  max-width: 540px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: -8px 0 0;
  list-style: none;
}

.tags li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5c554c;
  background: rgba(255, 250, 240, 0.7);
  font-size: 12px;
  font-weight: 750;
}

.work-body .tags {
  grid-column: 2;
}

.track-content .tags {
  margin-top: 2px;
}

.compact-section {
  padding-top: 36px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.index-grid article {
  min-height: 150px;
  padding: 18px;
  background: var(--paper);
}

.index-grid h3,
.note-list h3 {
  margin-bottom: 8px;
}

.notes {
  border-bottom: 1px solid var(--line);
}

.note-list {
  display: grid;
  gap: 22px;
}

.note-list article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.skill-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.skill-row span {
  min-height: 82px;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.skill-row span:last-child {
  border-right: 0;
}

.contact {
  padding-top: 28px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: center;
  padding: 30px 0 54px;
  border-top: 1px solid var(--ink);
}

.copy-status {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

@media (max-width: 920px) {
  .hero-grid,
  .intro-grid,
  .notes-grid,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-grid {
    min-height: auto;
    padding: 76px 0 56px;
  }

  .work-item,
  .work-body,
  .track-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tags {
    grid-column: auto;
    margin-top: 2px;
  }

  .index-grid,
  .skill-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-row span:nth-child(2) {
    border-right: 0;
  }

  .skill-row span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 580px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .profile-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section {
    padding: 54px 0;
  }

  .section-head.inline {
    display: block;
  }

  .index-grid,
  .skill-row {
    grid-template-columns: 1fr;
  }

  .index-grid article {
    min-height: 0;
  }

  .skill-row span,
  .skill-row span:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .skill-row span:last-child {
    border-bottom: 0;
  }

  .site-footer .shell {
    flex-direction: column;
  }
}
