:root {
  --bg: #f3ecdf;
  --bg-soft: #f8f4ec;
  --ink: #3d372f;
  --ink-soft: #6f675b;
  --accent: #6c7c62;
  --panel: #fffcf6;
  --line: #ddd3c4;
  --viewport-max: 1440px;
  --content-max: 1180px;
  --profile-photo-url: url("./assets/marketing-communication-award.jpg");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--bg-soft);
  font-family: "Noto Sans TC", sans-serif;
}

.site-wrap {
  width: min(100%, var(--viewport-max));
  margin-left: auto;
  margin-right: auto;
}

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

.hero {
  min-height: 85vh;
  padding: 1.25rem clamp(1rem, 3vw, 3rem) 2.2rem;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 14% 6%, #efe6d9 0%, transparent 42%),
    radial-gradient(circle at 88% 12%, #eadfce 0%, transparent 38%),
    linear-gradient(165deg, #f8f3ea 0%, #eee4d4 100%);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto 0.4rem;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.links {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: 1.15rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.lang-btn {
  border: 1px solid #bfb39f;
  background: transparent;
  color: #6e665b;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.lang-btn.is-active {
  background: #5c554a;
  color: #fffdf9;
  border-color: #5c554a;
}

.hero-inner {
  margin: auto;
  width: min(100%, var(--content-max));
  max-width: none;
  animation: rise 0.7s ease both;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.6rem;
  align-items: stretch;
}

.hero-copy {
  min-width: 0;
}

.kicker {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 9vw, 6rem);
  line-height: 0.95;
  font-weight: 900;
}

h1 span {
  display: block;
  font-size: clamp(1.2rem, 4vw, 2.45rem);
  margin-top: 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.intro {
  max-width: 920px;
  margin-top: 1.2rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.cta-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-roles {
  margin-top: 1.05rem;
  max-width: 820px;
}

.hero-roles h2 {
  margin: 0 0 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: #5a6c52;
}

.hero-roles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.role-pill {
  border: 1px solid #d8ccbb;
  border-radius: 10px;
  padding: 0.58rem 0.68rem;
  background: rgba(255, 251, 243, 0.78);
  line-height: 1.35;
}

.role-pill strong {
  display: block;
  font-size: 0.85rem;
}

.role-pill span {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.82rem;
  color: #6d6559;
}

.btn {
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: #5c554a;
  color: #fffdf9;
  font-size: 0.94rem;
}

.btn.ghost {
  background: transparent;
  border: 1px solid #8f8779;
  color: var(--ink);
}

.major-impact {
  margin-top: 1.75rem;
  max-width: none;
}

.impact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.impact-item {
  border: 1px solid #d8ccbb;
  background: rgba(255, 252, 245, 0.88);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  line-height: 1.45;
  font-size: 0.93rem;
}

.impact-item-photo {
  padding: 0.55rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.5rem;
  height: 100%;
}

.impact-item-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dfd3c2;
  box-shadow: 0 6px 14px rgba(88, 75, 56, 0.12);
  background: #f3ebde;
}

.impact-item-photo p {
  margin: 0;
  line-height: 1.35;
  min-height: 2.7em;
}

.hero-photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-self: end;
  width: min(100%, 430px);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  border: 1px solid #d6cab7;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.32), transparent),
    var(--profile-photo-url) center/cover no-repeat,
    url("./assets/profile.jpg") center/cover no-repeat,
    linear-gradient(145deg, #efe6d7, #ddd0ba);
  box-shadow: 0 16px 26px rgba(93, 79, 61, 0.13);
}

.profile-photo::after {
  content: "CH WU";
  display: inline-block;
  margin: 12px;
  padding: 0.25rem 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  color: #6f6558;
  border: 1px solid rgba(140, 126, 108, 0.35);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.66);
}

.photo-caption {
  margin: 0;
  font-size: 0.8rem;
  color: #7a7266;
  text-align: right;
}

.section {
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 3vw, 3rem);
}

.section > h2,
.section > .note,
.section > .timeline,
.section > .grid,
.section > .media-layout {
  width: min(100%, var(--content-max));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  margin: 0 0 1rem;
  font-family: "Space Grotesk", sans-serif;
}

.alt {
  background: linear-gradient(160deg, #fcf8f0, #f6f1e8 70%);
}

.timeline article {
  border-left: 0;
  padding: 0 0 1rem 0;
  margin-left: 0;
}

.timeline h3 {
  margin: 0;
  font-size: 1.04rem;
}

.meta {
  margin: 0.3rem 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.timeline p {
  margin: 0;
  color: #4e483f;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 1rem;
  width: 100%;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid #ddd2c0;
  padding: 1rem;
  border-radius: 12px;
  height: 100%;
}

.card h3 {
  margin: 0 0 0.5rem;
}

.note {
  color: var(--ink-soft);
  margin-top: -0.1rem;
}

.list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.list.compact {
  line-height: 1.6;
}

.media-column {
  min-height: 100%;
}

.links-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.links-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #b5ac9d;
  text-underline-offset: 2px;
  word-break: break-all;
}

.media-entries {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.media-entries a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #b5ac9d;
  text-underline-offset: 2px;
}

.media-group {
  margin-bottom: 0.15rem;
}

.media-group-title {
  margin: 0 0 0.35rem;
  line-height: 1.45;
}

.media-group-links {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.2rem;
}

.media-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  width: 100%;
}

.media-years {
  display: grid;
  gap: 1rem;
}

.media-channel {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

footer {
  padding: 1.2rem 1rem 2rem;
  text-align: center;
  color: #7a7266;
  font-size: 0.9rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    max-width: 360px;
    justify-self: start;
  }

  .impact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .media-layout {
    grid-template-columns: 1fr;
  }

  .media-channel {
    position: static;
  }
}

@media (max-width: 820px) {
  .links {
    display: none;
  }

  .topbar {
    justify-content: space-between;
    margin-bottom: 0.2rem;
  }

  .impact-cards {
    grid-template-columns: 1fr;
  }

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

  .photo-caption {
    text-align: left;
  }

  .intro {
    line-height: 1.65;
  }
}
