:root {
  color-scheme: light;
  --bg: #fbfcfc;
  --panel: rgba(255, 255, 255, 0.94);
  --ink: #14202b;
  --muted: #5e6974;
  --line: #e3ebe8;
  --green: #0f7a61;
  --green-soft: #eaf5f1;
  --gold: #c56d13;
  --shadow: 0 10px 28px rgba(31, 55, 49, 0.08);
}

* {
  box-sizing: border-box;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
  background:
    linear-gradient(rgba(15, 122, 97, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 122, 97, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 8% 22%, rgba(15, 122, 97, 0.08), transparent 2px),
    radial-gradient(circle at 95% 30%, rgba(197, 109, 19, 0.12), transparent 3px),
    #fbfcfb;
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(20px, 7vw, 136px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 16px rgba(16, 24, 32, 0.045);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 9px rgba(15, 122, 97, 0.15);
}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 6px;
  color: #27323d;
  font-size: 15px;
  text-decoration: none;
}

.main-nav a.active,
.main-nav a:hover {
  color: #064f41;
  background: #e1f7ed;
  font-weight: 800;
}

.page-shell {
  width: min(1340px, calc(100% - 56px));
  margin: 0 auto;
  padding: 36px 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #cfdad6;
  border-radius: 5px;
  background: #fff;
  color: #0c4f42;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 13px rgba(16, 24, 32, 0.06);
}

.button-icon {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button.primary {
  border-color: #0f7a61;
  background: linear-gradient(180deg, #198b70, #09664f);
  color: #fff;
}

.button.warn {
  border-color: #f2d48e;
  background: #ffe5a6;
  color: #604108;
}

.button.soft {
  min-height: 34px;
  background: #d9eee7;
  color: #08705c;
  box-shadow: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 25px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 20px;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
}

p {
  color: var(--muted);
}

.accent {
  color: var(--gold);
  font-weight: 900;
}

.stack {
  color: #3d4852;
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-left: 10px;
  padding: 0 12px;
  border-radius: 6px;
  background: #dff3ee;
  color: #08705c;
  font-size: 13px;
  font-weight: 800;
  vertical-align: middle;
}

.pill.done {
  background: #dcefe5;
}

.icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e6f4ef;
  color: var(--green);
  font-weight: 900;
}

.icon svg,
.metric-icon svg,
.contact-list b svg,
.download-icon svg {
  width: 54%;
  height: 54%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon.mini {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 6px;
  font-size: 13px;
}

.blue {
  color: #1967d2;
  background: #e9f1ff;
}

.green {
  color: #169164;
  background: #e4f5ec;
}

.orange {
  color: #f08a19;
  background: #fff1db;
}

.purple {
  color: #8552d7;
  background: #f0e9ff;
}

.home-hero {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  align-items: center;
  min-height: 390px;
  padding: 28px 32px 28px 48px;
}

.home-copy h1 {
  margin-bottom: 26px;
  font-size: clamp(52px, 5.1vw, 72px);
  font-weight: 900;
  letter-spacing: 0;
}

.home-copy .accent {
  margin-bottom: 12px;
  color: #c56d13;
}

.home-copy p:not(.accent) {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.9;
}

.hero-preview {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7f9f8;
  box-shadow: 0 8px 20px rgba(16, 24, 32, 0.055);
}

.hero-preview img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  object-position: left top;
}

.block-section,
.skill-section {
  margin-top: 22px;
  padding: 22px 26px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  color: #7a858e;
  font-size: 13px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mini-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 14px;
  gap: 16px;
  align-items: center;
  min-height: 122px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mini-card:hover {
  border-color: #b9ddd3;
  box-shadow: 0 8px 18px rgba(15, 122, 97, 0.09);
  transform: translateY(-2px);
}

.mini-card .icon {
  width: 52px;
  height: 52px;
  border: 8px solid #b7eadc;
  background: #ecf9f5;
  font-size: 15px;
}

.mini-card h3,
.mini-card p {
  margin-bottom: 0;
}

.mini-card h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 16px;
}

.mini-card .pill {
  min-height: 24px;
  margin-left: 2px;
  padding: 0 10px;
  font-size: 12px;
}

.mini-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
}

.card-arrow {
  color: #08705c;
  font-size: 28px;
  font-weight: 400;
}

.home-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.home-project {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
  padding: 10px 0 4px;
}

.home-project img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #08705c;
  font-weight: 900;
  text-decoration: none;
}

.text-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.text-link:hover {
  text-decoration: underline;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tags span,
.meta-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  color: #0d4d43;
  box-shadow: 0 4px 10px rgba(16, 24, 32, 0.07);
}

.home-page .skill-tags {
  justify-content: center;
}

.home-page .skill-tags span {
  gap: 9px;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 18px;
  color: #24333e;
  font-size: 14px;
}

.home-page .skill-tags b {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #0f8c68;
  font-size: 13px;
}

.home-page .skill-tags b svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skill-tags.compact span,
.meta-tags span {
  color: #1f2b36;
  font-size: 13px;
  box-shadow: none;
}

.resume-page {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 38px;
}

.resume-profile {
  align-self: start;
  padding: 32px 24px 26px;
  position: sticky;
  top: 92px;
  text-align: center;
}

.resume-photo {
  width: 188px;
  height: 188px;
  margin: 0 auto 22px;
  overflow: hidden;
  border: 8px solid #f5fbf9;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 2px #d9eee7,
    0 10px 22px rgba(15, 122, 97, 0.1);
}

.resume-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  transform-origin: center;
}

.resume-profile h1 {
  margin-bottom: 8px;
  font-size: 30px;
}

.resume-role {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 16px;
  background: #dff3ee;
  color: #08705c;
  font-size: 13px;
  font-weight: 800;
}

.resume-profile > p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.8;
}

.plain-list {
  list-style: none;
  padding: 0;
}

.contact-list {
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.contact-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: #27323d;
  font-size: 13px;
  word-break: break-word;
}

.contact-list b {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #cee8e0;
  border-radius: 50%;
  background: #eff9f6;
  color: #109171;
  font-size: 12px;
  box-shadow: 0 3px 7px rgba(15, 122, 97, 0.08);
}

.contact-list span,
.contact-list strong,
.contact-list a {
  display: block;
}

.contact-list strong {
  margin-bottom: 2px;
  color: #26343d;
  font-size: 13px;
}

.contact-list a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.download-box {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafafa;
}

.resume-content {
  display: grid;
  gap: 14px;
}

.resume-section {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
}

.resume-section::after {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 56px;
  height: 26px;
  background-image: radial-gradient(#bde8db 1.5px, transparent 1.5px);
  background-size: 7px 7px;
  content: "";
  opacity: 0.7;
}

.resume-section h2 {
  margin-bottom: 14px;
}

.resume-section h3 {
  margin-bottom: 8px;
}

.resume-section p {
  margin-bottom: 0;
  line-height: 1.75;
}

.resume-date {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-bottom: 8px !important;
  padding: 0 10px;
  border-radius: 14px;
  background: #e7f5f1;
  color: #21806b;
  font-size: 13px;
}

.resume-project {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 18px;
  overflow: hidden;
  padding: 20px 24px;
}

.resume-project ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #46535e;
  font-size: 14px;
  line-height: 1.65;
}

.resume-project li::marker {
  color: #149777;
}

.resume-project h2 {
  margin-bottom: 2px;
}

.resume-project .stack {
  margin-bottom: 0;
}

.detail-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #118267;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.detail-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.project-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(180deg, #239b7c, #087458);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 7px 14px rgba(15, 122, 97, 0.18);
}

.project-icon svg {
  width: 58%;
  height: 58%;
}

.resume-skills .skill-tags {
  gap: 8px 10px;
}

.resume-skills .skill-tags span {
  min-height: 30px;
  border-color: #d4eae4;
  border-radius: 16px;
  color: #15755f;
}

.pharmacy-overview {
  overflow: hidden;
  padding: 0;
}

.project-head {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 22px 24px 12px;
}

.project-head h1,
.music-intro h1 {
  margin-bottom: 10px;
  font-size: 26px;
}

.project-head p {
  margin-bottom: 0;
}

.project-head .actions {
  margin-top: 18px;
}

.project-head .download-path {
  min-width: 282px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.84);
}

.project-head .download-path p {
  margin: 4px 0 0;
  font-size: 13px;
}

.test-account + .test-account {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.project-head .download-path .account-note {
  margin-top: 10px;
  color: #78858d;
  font-size: 12px;
}

.demo-note {
  margin: 0;
  padding: 6px 20px;
  border-top: 1px solid #edf4f1;
  border-bottom: 1px solid #edf4f1;
  background: #f9fcfb;
  color: #6d8795;
  font-size: 12px;
  text-align: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 20px 10px;
}

.metric-grid article {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 5px 12px rgba(16, 24, 32, 0.035);
}

.metric-grid strong {
  display: block;
  font-size: 24px;
}

.metric-grid p {
  margin-bottom: 0;
  font-size: 13px;
}

.metric-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 20px;
}

.module-grid article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px 14px;
  min-height: 146px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 5px 12px rgba(16, 24, 32, 0.025);
}

.module-grid h3,
.module-grid p {
  grid-column: 2;
  margin-bottom: 0;
}

.module-grid .icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  font-size: 13px;
}

.module-grid p {
  font-size: 13px;
  line-height: 1.75;
}

.module-note {
  margin: 8px 20px 18px;
  padding: 7px 12px;
  border: 1px dashed #d9e8e4;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.54);
  color: #74858c;
  font-size: 12px;
  text-align: center;
}

.architecture {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr 132px;
  gap: 22px;
  margin-top: 14px;
  padding: 18px 22px;
}

.architecture h2 {
  margin-bottom: 10px;
}

.architecture p {
  margin-bottom: 0;
  font-size: 14px;
}

.route-map {
  display: grid;
  grid-template-columns: minmax(160px, 0.6fr) 1fr;
  gap: 8px 34px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.route-map span {
  color: #08705c;
  font-family: Consolas, monospace;
}

.architecture-illustration {
  align-self: end;
  width: 132px;
  height: 96px;
  object-fit: contain;
  opacity: 0.68;
}

.screen-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
}

figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}

.roadmap {
  display: grid;
  grid-template-columns: 140px 1fr 132px;
  gap: 20px;
  align-items: center;
  margin-top: 14px;
  padding: 16px 22px;
}

.roadmap ul {
  margin: 0;
  color: #52616b;
  font-size: 14px;
}

.roadmap li::marker {
  color: #149777;
}

.roadmap-illustration {
  width: 132px;
  height: 78px;
  object-fit: contain;
  opacity: 0.62;
}

.music-page {
  width: min(1180px, calc(100% - 56px));
}

.music-top {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 24px;
  margin-top: 4px;
}

.music-intro,
.about-card,
.music-feature,
.download-panel {
  padding: 24px;
}

.music-intro h1 span,
.download-panel h2 span,
.about-card h2 span {
  color: #08705c;
  font-size: 14px;
  text-transform: uppercase;
}

.music-intro {
  min-height: 238px;
}

.music-intro h1 {
  line-height: 1.4;
}

.music-intro p,
.about-card p {
  font-size: 15px;
  line-height: 1.85;
}

.music-intro .actions {
  margin-top: 22px;
}

.music-intro .button {
  gap: 8px;
}

.about-card h2 {
  margin-bottom: 10px;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.music-feature {
  margin-top: 26px;
  border-color: #d6e9e4;
}

.music-feature-head {
  margin-bottom: 14px;
}

.music-feature-head h2 {
  margin-bottom: 10px;
}

.music-feature-head small,
.download-panel small {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-left: 8px;
  padding: 0 10px;
  border-radius: 14px;
  background: #e6f6f0;
  color: #21806b;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.music-feature-head p {
  margin-bottom: 0;
  color: #6f8188;
  font-size: 13px;
}

.music-feature-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 32px;
  align-items: start;
}

.player-shot {
  width: 100%;
  border: 1px solid #c7d3d0;
  border-radius: 5px;
  box-shadow: 0 8px 18px rgba(16, 24, 32, 0.09);
}

.music-feature-copy h3 {
  margin-bottom: 10px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 7px 0;
  color: #46535e;
  font-size: 14px;
}

.check-list li svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: #2f8b75;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.music-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.music-thumbs figure {
  box-shadow: 0 4px 10px rgba(16, 24, 32, 0.04);
}

.music-thumbs figcaption {
  padding: 7px 9px;
  font-size: 12px;
}

.download-panel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  padding: 18px 22px;
}

.download-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 5px;
  background: #e1f4ee;
  color: #168569;
  font-size: 30px;
  font-weight: 900;
}

.download-icon svg {
  width: 24px;
  height: 24px;
}

.download-copy h2 {
  margin-bottom: 7px;
}

.download-copy p {
  margin-bottom: 0;
  font-size: 14px;
}

.download-path {
  padding: 18px;
  border: 1px dashed #cfd8d5;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.download-panel .download-path {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.download-panel .download-path b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #18242d;
  color: #fff;
}

.download-panel .download-path b svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.download-panel .download-path p {
  margin: 4px 0 0;
  font-size: 13px;
}

.download-panel .download-path a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #08705c;
}

.download-panel .download-path a svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-footer {
  width: min(1340px, calc(100% - 56px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 28px;
  color: #69747e;
  font-size: 14px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #064f41;
  text-decoration: underline;
}

@media (max-width: 1050px) {
  .home-hero,
  .resume-page,
  .project-head,
  .architecture,
  .music-top,
  .music-feature-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .module-grid,
  .screen-row,
  .music-thumbs,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-projects {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding: 32px;
  }

  .resume-profile {
    position: static;
  }

  .architecture-illustration,
  .roadmap-illustration {
    display: none;
  }

  .roadmap {
    grid-template-columns: 140px 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: auto;
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    font-size: 17px;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .main-nav a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 14px;
  }

  .page-shell,
  .music-page,
  .site-footer {
    width: min(100% - 28px, 1340px);
  }

  .page-shell {
    padding: 22px 0;
  }

  .home-hero,
  .block-section,
  .skill-section,
  .resume-section,
  .resume-project,
  .architecture,
  .music-intro,
  .about-card,
  .music-feature,
  .download-panel {
    padding: 18px;
  }

  .pharmacy-overview {
    padding: 0;
  }

  .project-head {
    gap: 16px;
    padding: 18px 16px 12px;
  }

  .project-head .download-path {
    min-width: 0;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-panel .download-path {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .music-feature-head small,
  .download-panel small {
    margin-top: 6px;
    margin-left: 0;
  }

  .music-feature-grid {
    gap: 18px;
  }

  .metric-grid,
  .module-grid {
    margin-right: 14px;
    margin-left: 14px;
  }

  .module-note {
    margin-right: 14px;
    margin-left: 14px;
    text-align: left;
  }

  .home-copy h1 {
    margin-bottom: 18px;
    font-size: 46px;
  }

  .home-copy p:not(.accent) {
    font-size: 15px;
  }

  .home-hero,
  .architecture,
  .music-feature-grid,
  .download-panel {
    gap: 20px;
  }

  .status-grid,
  .home-projects,
  .metric-grid,
  .module-grid,
  .screen-row,
  .music-thumbs {
    grid-template-columns: 1fr;
  }

  .home-project,
  .resume-project,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .actions {
    gap: 10px;
    margin-top: 18px;
  }

  .button {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    text-align: center;
  }

  .mini-card,
  .module-grid article {
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .mini-card {
    grid-template-columns: 46px minmax(0, 1fr) 12px;
    min-height: 108px;
  }

  .mini-card .icon {
    width: 44px;
    height: 44px;
    border-width: 7px;
  }

  .mini-card h3 {
    font-size: 15px;
  }

  .mini-card p {
    font-size: 12px;
    line-height: 1.7;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
  }

  .icon {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }

  .icon.mini {
    width: 22px;
    height: 22px;
  }

  .home-project {
    gap: 14px;
  }

  .home-project img {
    aspect-ratio: 16 / 9;
  }

  .home-page .skill-tags {
    justify-content: flex-start;
    gap: 8px;
  }

  .home-page .skill-tags span {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  .resume-project {
    gap: 14px;
  }

  .resume-profile {
    padding: 24px 18px 18px;
  }

  .resume-profile > p {
    margin-bottom: 0;
  }

  .resume-section::after {
    right: 16px;
  }

  .resume-project {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .resume-project .project-icon {
    width: 44px;
    height: 44px;
    grid-row: 1;
    font-size: 20px;
  }

  .resume-project .detail-link {
    grid-column: 2;
    justify-self: start;
  }

  .resume-project h2 {
    font-size: 18px;
  }

  .resume-project .pill {
    margin-top: 6px;
    margin-left: 0;
  }

  .route-map {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px;
  }

  .route-map strong {
    margin-bottom: 8px;
  }

  .metric-grid article {
    min-height: 82px;
    padding: 14px;
  }

  .module-grid article {
    min-height: auto;
  }

  .download-icon {
    width: 42px;
    height: 42px;
    font-size: 25px;
  }

  .contact-list li,
  .route-map span,
  .route-map strong,
  .mini-card a,
  .site-footer span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-preview img,
  figure img {
    aspect-ratio: 16 / 10;
  }

  h1 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .project-head h1,
  .music-intro h1,
  h2 {
    line-height: 1.25;
  }

  .site-footer {
    padding-bottom: 20px;
    font-size: 13px;
  }

  .resume-photo {
    width: 168px;
    height: 168px;
  }

  .resume-photo img {
    object-position: center;
    transform: none;
    transform-origin: center;
  }
}
