:root {
  --ink: #17120f;
  --paper: #fff8ec;
  --paper-deep: #f4ead9;
  --coral: #ff8d7a;
  --coral-soft: #ffd3c9;
  --sage: #9dbb9d;
  --sage-soft: #dce9d6;
  --honey: #f6c453;
  --cream: #fffdf7;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --paper-plane-cursor: url("./assets/cursor-paper-plane.svg") 3 4;
}

* {
  box-sizing: border-box;
}

html {
  cursor: var(--paper-plane-cursor), auto;
  scroll-behavior: smooth;
}

a,
button,
summary,
[role="button"],
input,
textarea,
select {
  cursor: var(--paper-plane-cursor), pointer;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Arial", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12px 12px, rgba(23, 18, 15, 0.08) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #fff9ef 0%, #f7ead7 48%, #f1dfc9 100%);
  background-size: 24px 24px, 100% 100%;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 16px;
  background: rgba(255, 253, 247, 0.9);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--ink);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 72px;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 1.1rem;
  font-weight: 900;
  background: var(--honey);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.nav-links a,
.nav-menu > a {
  padding: 8px 12px;
  font-weight: 800;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-menu:hover > a,
.nav-menu:focus-within > a {
  background: var(--coral-soft);
}

.nav-menu {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  display: grid;
  min-width: 180px;
  padding: 10px;
  visibility: hidden;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--ink);
  opacity: 0;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.nav-dropdown a {
  padding: 8px 10px;
  white-space: nowrap;
  border-radius: 6px;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.section-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 48px;
  align-items: start;
  min-height: calc(100vh - 96px);
  padding: 64px 0 56px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 14px;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--honey);
}

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

h1 {
  margin-bottom: 24px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.hero-title-line {
  display: block;
  width: fit-content;
}

.hero-title-intro {
  color: #315f73;
  font-size: 3.15rem;
  font-weight: 900;
}

.hero-title-name {
  color: #2a241f;
  font-size: 4.25rem;
  font-weight: 900;
}

.hero-title-name::after {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 8px;
  content: "";
  background: var(--honey);
  border-radius: 999px;
}

.hero-title-tagline {
  max-width: 100%;
  padding: 8px 18px;
  color: #2d4f45;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  background: var(--sage-soft);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
  white-space: nowrap;
  border-right: 2px solid #2d4f45;
  clip-path: inset(0 100% 0 0);
  animation:
    type-in 3.2s steps(56, end) 500ms forwards,
    typing-caret 760ms step-end infinite;
}

@keyframes type-in {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes typing-caret {
  50% {
    border-color: transparent;
  }
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-text {
  max-width: 690px;
  margin-bottom: 24px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
}

.hero-text-muted {
  display: inline-block;
  margin-top: 2px;
  color: #817a72;
  font-size: 0.9em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tag-list span {
  padding: 8px 12px;
  font-weight: 900;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cassette-card {
  width: min(560px, 100%);
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--coral-soft);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.cassette-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.cassette-card-top strong,
.cassette-card-top span {
  display: block;
}

.cassette-card-top strong {
  font-size: 1rem;
  font-weight: 900;
}

.cassette-card-top span {
  color: #6f665c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.cassette-body {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 18px;
  align-items: center;
  min-height: 52px;
  padding: 12px 18px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 14px;
}

.cassette-reel {
  display: block;
  width: 34px;
  height: 34px;
  background:
    radial-gradient(circle, var(--coral) 0 5px, transparent 6px),
    repeating-conic-gradient(var(--sage) 0 18deg, transparent 18deg 36deg);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.cassette-window {
  display: block;
  height: 20px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.button,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 900;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.card-link:hover,
.content-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.primary {
  color: var(--cream);
  background: var(--coral);
}

.secondary,
.card-link {
  background: var(--cream);
}

.hero-visual {
  position: relative;
  padding-bottom: 72px;
}

.photo-card {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sage-soft);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 260ms ease;
}

.photo-card:hover img {
  transform: scale(1.08);
}

.note-card {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 48px);
  padding: 12px 16px;
  background: var(--honey);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  transform: translateX(-50%) rotate(-2deg);
}

.note-card span {
  display: block;
}

.note-card span {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
  padding: 56px 0;
  border-top: 2px solid var(--ink);
}

.story-grid > p {
  margin: 0;
  padding: 28px;
  font-size: 1.16rem;
  font-weight: 750;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
  padding: 72px 0;
  border-top: 2px solid var(--ink);
}

.about-section h2 {
  max-width: 520px;
  margin-bottom: 0;
}

#about-title {
  font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  font-weight: 900;
}

#about-title span {
  display: block;
  white-space: nowrap;
}

.about-section > p {
  margin: 8px 0 0;
  padding: 28px;
  font-size: 1.1rem;
  font-weight: 850;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.resume-timeline {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding: 32px 28px 40px;
  background: #e7b8bb;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.resume-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.resume-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 4px;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  align-items: center;
  min-height: 150px;
}

.timeline-dot {
  z-index: 1;
  display: grid;
  grid-column: 2;
  width: 54px;
  height: 54px;
  place-items: center;
  justify-self: center;
  font-weight: 900;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px;
}

.timeline-card {
  padding: 22px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 1;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 3;
}

.timeline-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.timeline-meta span {
  padding: 5px 12px;
  color: #214b61;
  font-size: 0.84rem;
  font-weight: 900;
  background: #d8e8ff;
  border: 2px solid var(--ink);
  border-radius: 9px;
}

.timeline-item:nth-child(2) .timeline-meta span {
  color: #94345a;
  background: #ffe2ef;
}

.timeline-item:nth-child(3) .timeline-meta span {
  color: #603199;
  background: #eadcff;
}

.timeline-item:nth-child(4) .timeline-meta span {
  color: #8b5900;
  background: #ffe8a8;
}

.timeline-item:nth-child(5) .timeline-meta span {
  color: #16724d;
  background: #d9f2df;
}

.timeline-meta time {
  color: #6d6257;
  font-size: 0.94rem;
  font-weight: 900;
  white-space: nowrap;
}

.timeline-card h4 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.timeline-card p {
  margin: 0;
  font-weight: 750;
}

.featured-timeline-card {
  padding: 24px 26px 26px;
  border-radius: 16px;
  box-shadow: 7px 7px 0 var(--ink);
}

.featured-timeline-card .timeline-meta {
  margin-bottom: 14px;
}

.featured-timeline-card .timeline-meta span {
  padding: 5px 13px;
  font-size: 0.88rem;
  border-radius: 9px;
}

.featured-timeline-card .timeline-meta time {
  font-size: 0.98rem;
}

.featured-timeline-card h4 {
  margin-bottom: 10px;
  font-size: 1.42rem;
}

.featured-timeline-card .timeline-summary {
  font-weight: 850;
  line-height: 1.55;
}

.education-card .timeline-meta span {
  color: #94345a;
  background: #ffe2ef;
}

.graduate-card .timeline-meta span {
  color: #603199;
  background: #eadcff;
}

.work-card .timeline-meta span {
  color: #8b5900;
  background: #ffe8a8;
}

.current-card .timeline-meta span {
  color: #16724d;
  background: #d9f2df;
}

.timeline-quote {
  margin: 18px 0 0;
  padding: 12px 16px;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.45;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
}

.life-section {
  padding: 72px 0;
}

.life-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.life-heading p:last-child {
  margin-bottom: 0;
  font-size: 1.12rem;
  font-weight: 750;
}

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

.life-card {
  min-height: 300px;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.life-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.life-card-header > div {
  flex: 1;
  min-width: 0;
}

.life-card-header h3 {
  margin-bottom: 2px;
  font-size: 1.45rem;
}

.life-card-header p {
  margin: 0;
  color: #6f665c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.life-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  font-size: 1.35rem;
  font-weight: 900;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 14px;
}

.mini-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mini-card {
  min-height: 86px;
  padding: 16px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.mini-card strong,
.mini-card span,
.album-copy span,
.song-list span,
.song-list em {
  display: block;
}

.mini-card strong,
.song-list span {
  font-weight: 900;
}

.mini-card span,
.album-copy span,
.song-list em {
  color: #5f554c;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 750;
}

.life-note {
  margin: 24px 0 0;
  font-weight: 800;
}

.reading-note {
  margin: 22px 0 0;
  color: #5f554c;
  font-size: 0.95rem;
  font-weight: 800;
}

.learning-card {
  background: var(--coral-soft);
}

.reading-card {
  background: var(--sage-soft);
}

.travel-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  overflow: hidden;
  background: #ffe4a3;
}

.travel-card .life-card-header {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.album-copy {
  align-self: start;
  grid-column: 1 / -1;
  min-width: 0;
  padding-left: 0;
}

.album-copy span {
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.travel-book {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  outline: none;
}

.book-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  perspective: 1500px;
  background:
    radial-gradient(circle at 50% 52%, rgba(23, 18, 15, 0.16), transparent 42%),
    linear-gradient(135deg, #f1b36a 0%, #9c4d35 54%, #6d382e 100%);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.book-stage::before {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  z-index: 35;
  width: 10px;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.26));
  border-radius: 999px;
  filter: blur(0.2px);
  transform: translateX(-50%);
}

.book-page {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(45%, 250px);
  height: 300px;
  padding: 0;
  overflow: hidden;
  color: var(--cream);
  text-align: left;
  background: #1d1a17;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 16px 0 rgba(23, 18, 15, 0.2);
  opacity: 0;
  transform: translate(-50%, -50%) rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.2, 0.72, 0.2, 1), opacity 260ms ease, filter 260ms ease;
  backface-visibility: hidden;
}

.book-page::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 18%, transparent 70%, rgba(0, 0, 0, 0.32)),
    linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.5));
  mix-blend-mode: screen;
}

.book-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-page span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: block;
  padding: 7px 9px;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(23, 18, 15, 0.72);
  border: 1px solid rgba(255, 253, 247, 0.65);
  border-radius: 999px;
}

.book-page.is-active {
  z-index: 50;
  opacity: 1;
  transform: translate(-100%, -50%) rotateY(-12deg);
  transform-origin: right center;
}

.book-page.is-near-after {
  z-index: 45;
  opacity: 1;
  transform: translate(0, -50%) rotateY(16deg);
  transform-origin: left center;
}

.book-page.is-before {
  z-index: 24;
  opacity: 0.58;
  filter: saturate(0.9) brightness(0.86);
  transform: translate(-104%, -50%) rotateY(-132deg);
  transform-origin: right center;
}

.book-page.is-after {
  z-index: 18;
  opacity: 0.5;
  filter: saturate(0.9) brightness(0.9);
  transform: translate(4%, -50%) rotateY(58deg);
  transform-origin: left center;
}

.book-page.is-far {
  pointer-events: none;
  opacity: 0;
}

.book-controls,
.book-dots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-controls {
  gap: 14px;
}

.book-control {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}

.book-control:disabled {
  cursor: default;
  opacity: 0.42;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.book-counter {
  min-width: 68px;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

.book-dots {
  flex-wrap: wrap;
  gap: 7px;
}

.book-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(23, 18, 15, 0.32);
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.book-dots button.is-active {
  width: 22px;
  background: var(--ink);
}

.playlist-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px 28px;
  background: #cfe4f5;
}

.playlist-card .life-card-header {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.record-player {
  align-self: center;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 253, 247, 0.5);
}

.record-player span {
  width: 40px;
  height: 40px;
  background: var(--honey);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.now-playing {
  align-self: center;
  padding: 14px 16px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.now-playing strong,
.now-playing span {
  display: block;
}

.now-playing strong {
  margin-bottom: 4px;
  font-weight: 900;
}

.now-playing span {
  color: #5f554c;
  font-size: 0.95rem;
  font-weight: 800;
}

.song-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.song-list li {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px;
}

.song-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
}

.song-link::before {
  content: "▶";
  color: var(--coral);
  font-weight: 900;
}

.song-link span {
  grid-column: 2;
}

.song-link em {
  grid-column: 3;
  text-align: right;
}

.song-link:hover,
.song-link:focus-visible {
  background: var(--honey);
  outline: none;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

#works-title {
  width: max-content;
  max-width: 100%;
  font-size: clamp(2rem, 3.45vw, 3.85rem);
  white-space: nowrap;
}

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

.content-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.content-card p {
  margin-bottom: 24px;
  font-size: 1rem;
  font-weight: 700;
}

.work-cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 6px 0 22px;
  object-fit: cover;
  object-position: center;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px;
}

.work-cover-video {
  object-position: center 68%;
}

.card-type {
  width: fit-content;
  margin-bottom: 32px;
  padding: 7px 11px;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 900;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.card-link {
  width: fit-content;
  margin-top: auto;
}

.coral {
  background: var(--coral-soft);
}

.sage {
  background: var(--sage-soft);
}

.honey {
  background: #ffe4a3;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  margin-top: 72px;
  margin-bottom: 64px;
  padding: 34px;
  background: var(--sage);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--ink);
}

.contact-item span {
  font-weight: 900;
}

.contact-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  background: var(--honey);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 18px 0;
  font-weight: 900;
  border-top: 2px solid var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .photo-card img {
    transition: none;
  }

  .book-page {
    transition: none;
  }

  .typing-text {
    border-right: 0;
    clip-path: inset(0 0 0 0);
    animation: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 14px;
  }

  .nav-dropdown {
    right: auto;
    left: 0;
    transform: translateY(-4px);
  }

  .nav-menu:hover .nav-dropdown,
  .nav-menu:focus-within .nav-dropdown {
    transform: translateY(0);
  }

  .hero,
  .story-grid,
  .about-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .resume-timeline {
    padding: 26px 20px 32px;
  }

  .timeline-list {
    gap: 24px;
  }

  .timeline-list::before {
    left: 27px;
  }

  .timeline-item {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: auto;
  }

  .timeline-dot {
    grid-column: 1;
    width: 46px;
    height: 46px;
  }

  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
  }

  .hero {
    gap: 34px;
    min-height: auto;
    padding-top: 42px;
  }

  #about-title {
    font-size: clamp(2.35rem, 7vw, 3rem);
  }

  .hero-title-intro {
    font-size: 2.75rem;
  }

  .hero-title-name {
    font-size: 3.55rem;
  }

  .hero-title-tagline {
    padding: 8px 14px;
    font-size: 0.72rem;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 68px;
  }

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

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

  .content-card {
    min-height: auto;
  }

  #works-title {
    font-size: clamp(1.8rem, 7.8vw, 3rem);
  }
}

@media (max-width: 520px) {
  .section-wrap,
  .site-header,
  .site-footer {
    width: min(100% - 20px, 1120px);
  }

  .site-header {
    margin-top: 10px;
    padding: 10px;
  }

  .nav-links a,
  .nav-menu > a {
    padding: 6px 8px;
    font-size: 0.92rem;
  }

  .nav-links {
    gap: 10px;
  }

  .hero {
    padding-top: 40px;
  }

  .cassette-card {
    margin-top: 22px;
    padding: 14px;
  }

  .cassette-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .cassette-body {
    grid-template-columns: 34px 1fr 34px;
    gap: 10px;
    padding: 10px 12px;
  }

  .cassette-reel {
    width: 28px;
    height: 28px;
  }

  .hero-title {
    gap: 8px;
  }

  .hero-title-intro {
    font-size: 2.05rem;
  }

  .hero-title-name {
    font-size: 2.55rem;
  }

  #about-title {
    font-size: clamp(2.05rem, 8.5vw, 2.65rem);
  }

  .hero-title-name::after {
    height: 6px;
    margin-top: 6px;
  }

  .hero-title-tagline {
    padding: 7px 10px;
    font-size: 0.56rem;
    border-radius: 8px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .note-card {
    position: static;
    width: max-content;
    max-width: 100%;
    margin: 12px auto 0;
    transform: rotate(-2deg);
  }

  .hero-visual {
    padding-bottom: 0;
  }

  .note-card span {
    font-size: 0.78rem;
  }

  .story-grid > p,
  .about-section > p,
  .life-card,
  .content-card,
  .contact-panel {
    padding: 20px;
  }

  .resume-timeline {
    padding: 22px 16px 28px;
  }

  .timeline-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .timeline-card {
    padding: 18px;
  }

  .timeline-card h4 {
    font-size: 1.22rem;
  }

  .life-section {
    padding: 48px 0;
  }

  .life-heading {
    margin-bottom: 28px;
  }

  .life-card-header {
    align-items: flex-start;
  }

  .life-card-header h3 {
    font-size: 1.18rem;
  }

  .life-card-header p {
    font-size: 0.7rem;
  }

  .mini-card-list,
  .travel-card,
  .playlist-card {
    grid-template-columns: 1fr;
  }

  .album-copy span {
    font-size: 0.9rem;
  }

  .book-stage {
    min-height: 340px;
  }

  .book-stage::before {
    display: none;
  }

  .book-page {
    width: min(82%, 270px);
    height: 292px;
    border-radius: 10px;
  }

  .book-page.is-active {
    transform: translate(-50%, -50%) rotateY(0deg);
    transform-origin: center;
  }

  .book-page.is-near-after {
    opacity: 0.35;
    transform: translate(-38%, -50%) rotateY(58deg) scale(0.95);
  }

  .book-page.is-before,
  .book-page.is-after {
    pointer-events: none;
    opacity: 0;
  }

  .record-player {
    justify-self: center;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
