:root {
  --bg: #ffffff;
  --bg-raise: #fff8ef;
  --ink: #2b221e;
  --muted: #6e5b5b;
  --line: rgba(43, 34, 30, 0.1);
  --accent: #ffa800;
  --accent-deep: #f05023;
  --paper: #fff8ef;
  --paper-ink: #2b221e;
  --paper-muted: #6e5b5b;
  --moss: #f05023;
  --sans: Inter, "Noto Sans TC", "PingFang TC", sans-serif;
  --serif: Inter, "Noto Sans TC", "PingFang TC", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 30;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.4rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: linear-gradient(to right bottom, #ffa800, #f05023);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav a {
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--moss);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.4rem 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 10px;
  font-weight: 700;
}

.nav .btn {
  border-radius: 999px;
  min-height: 2.4rem;
  padding: 0.35rem 1rem;
}

.btn.secondary {
  background: white;
  color: var(--accent-deep);
  border-color: #ffd7a3;
}

.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.4rem;
  padding: 3.4rem 3rem;
  border-radius: 28px;
  background: linear-gradient(to right bottom, #ffa800, #f05023);
  color: white;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero .eyebrow {
  display: inline-flex;
  color: white;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}

.hero h1,
.hero .lede {
  color: white;
}

.hero .btn {
  background: white;
  color: #e88900;
  border-color: white;
}

.hero .btn.secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.hero .btn:hover {
  background: #fff4e2;
  border-color: #fff4e2;
  color: #e88900;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.2;
  color: #241c1a;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.slate {
  background: #fff8ef;
  color: #2b221e;
  padding: 1.5rem 1.4rem 1.2rem;
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  overflow: hidden;
}

.slate-top,
.meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.slate p {
  margin: 1.2rem 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.25;
  color: #241c1a;
}

.slate ul {
  list-style: none;
  margin: 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid rgba(43, 34, 30, 0.12);
  display: grid;
  gap: 0.45rem;
}

.slate li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.slate li span {
  color: #8a7368;
}

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

.section {
  padding: 3.4rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head a {
  color: var(--accent-deep);
}

.skill-grid,
.card-grid,
.steps,
.people {
  display: grid;
  gap: 0.8rem;
}

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

.card-grid,
.people {
  grid-template-columns: repeat(3, 1fr);
}

.people:has(> :only-child) {
  grid-template-columns: minmax(0, 42rem);
}

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

.skill,
.card,
.step,
.person,
.panel {
  border: 1px solid #f3e4d4;
  background: white;
  color: var(--paper-ink);
  padding: 1.25rem 1.3rem;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(240, 80, 35, 0.06);
  overflow: hidden;
}

.band .skill strong,
.step strong,
.card h2,
.person h2 {
  font-family: var(--sans);
  font-weight: 800;
}

.skill span,
.tag,
.person .role {
  display: block;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card,
.person {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card p,
.person p,
.step p,
.panel p,
.page-hero p {
  margin: 0;
  color: var(--paper-muted);
}

.page-hero {
  padding: 3.4rem 0 0.4rem;
}

.page-hero p {
  max-width: 40rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0;
}

.filters button {
  border: 1px solid #ffd7a3;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

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

.photo {
  width: calc(100% + 2.6rem);
  max-width: none;
  height: 220px;
  margin: -1.25rem -1.3rem 0.85rem;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 19px 19px 0 0;
}

.slate > .photo {
  width: calc(100% + 2.8rem);
  max-width: none;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: -1.5rem -1.4rem 1rem;
  border-radius: 0;
}

.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: calc(100% + 2.6rem);
  margin: -1.25rem -1.3rem 0.85rem;
}

.photos:has(.photo:nth-child(3)) {
  grid-template-columns: 1fr 1fr 1fr;
}

.photos .photo {
  width: 100%;
  height: 168px;
  margin: 0;
  border-radius: 0;
}

.photos .photo:first-child {
  border-top-left-radius: 19px;
}

.photos .photo:last-child {
  border-top-right-radius: 19px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.gallery figure {
  margin: 0;
}

.gallery .photo {
  width: 100%;
  height: 168px;
  margin: 0;
  border-radius: 16px;
}

.gallery figcaption {
  margin-top: 0.4rem;
  font-weight: 700;
}

.card .meta {
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--paper-ink);
  letter-spacing: 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.card.hidden {
  display: none;
}

.person h2 {
  margin: 0;
  font-size: 1.4rem;
}

.note {
  color: var(--paper-muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #f0ddd0;
  background: white;
  color: var(--paper-ink);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.success {
  display: none;
  border: 1px solid #6d8a32;
  background: #f3f8e6;
  padding: 1rem;
}

.success.show {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.2rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1.2rem 1.1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .hero,
  .skill-grid,
  .card-grid,
  .steps,
  .people,
  .split,
  .grid-2,
  .card-grid.catalog {
    grid-template-columns: 1fr;
  }

  .hero .slate {
    order: -1;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
