:root {
  --ink: #171717;
  --muted: #656565;
  --line: #dfddd7;
  --paper: #f8f6f1;
  --panel: #ffffff;
  --accent: #d34f35;
  --accent-dark: #a83824;
  --cyan: #2196a3;
  --olive: #67784b;
  --shadow: 0 16px 48px rgba(23, 23, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 14px;
  color: #343434;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: 82vh;
  padding: clamp(40px, 6vw, 84px) clamp(18px, 4vw, 56px) 36px;
}

.hero h1 {
  max-width: 780px;
  margin: 8px 0 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.02;
}

.hero p {
  max-width: 680px;
  color: #414141;
  font-size: 18px;
}

.kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

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

.button.secondary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.hero-board {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: min(64vh, 620px);
}

.preview-card {
  min-height: 220px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(211, 79, 53, 0.52), rgba(33, 150, 163, 0.36)),
    url("assets/works/sample-02.svg") center / cover;
  box-shadow: var(--shadow);
}

.preview-card.tall {
  grid-row: 1 / 3;
  background:
    linear-gradient(145deg, rgba(23, 23, 23, 0.08), rgba(103, 120, 75, 0.32)),
    url("assets/works/sample-01.svg") center / cover;
}

.preview-card:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(33, 150, 163, 0.34), rgba(211, 79, 53, 0.28)),
    url("assets/works/sample-03.svg") center / cover;
}

.toolbar-band,
.split-section,
.publish-band,
.request-section {
  padding: 46px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.toolbar-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: end;
}

.section-head h2,
.split-section h2,
.publish-band h2,
.request-section h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 44px);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 300px);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.search-box span {
  color: var(--muted);
  font-size: 13px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
}

.segmented button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: var(--ink);
  color: #fff;
}

select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 56px) 56px;
}

.work-card {
  overflow: hidden;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(23, 23, 23, 0.08);
}

.work-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #ddd;
}

.work-body {
  padding: 14px;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.work-body h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #484848;
  font-size: 12px;
}

.shop-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.shop-row a {
  padding: 6px 9px;
  border-radius: 6px;
  background: #171717;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(300px, 1fr);
  gap: 24px;
}

.split-section p,
.request-section p {
  color: #444;
  font-size: 17px;
}

.series-list {
  display: grid;
  gap: 12px;
}

.series-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.series-item strong,
.series-item span {
  display: block;
}

.series-item span {
  color: var(--muted);
  font-size: 13px;
}

.publish-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(300px, 1fr);
  gap: 24px;
  background: #e9eee9;
}

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

.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
}

.timeline span {
  color: #444;
}

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

.link-grid a {
  padding: 24px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
  font-weight: 800;
}

.link-grid a:last-child {
  border-right: 0;
}

.request-section {
  max-width: 820px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--muted);
  font-size: 13px;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 17, 17, 0.86);
}

.age-gate.hide {
  display: none;
}

.age-panel {
  width: min(100%, 520px);
  padding: 28px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.age-panel h1 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.18;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 42px 18px;
  background: rgba(12, 12, 12, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(92vw, 780px);
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox p {
  margin: 10px 0 0;
  color: #fff;
}

.close-button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 860px) {
  .site-header,
  .toolbar-band,
  .split-section,
  .publish-band,
  .site-footer {
    display: block;
  }

  .main-nav {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-board {
    min-height: 420px;
  }

  .controls {
    justify-content: flex-start;
    margin-top: 16px;
  }

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

  .link-grid a {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-board {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .preview-card.tall {
    grid-row: auto;
  }

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

  .timeline li {
    grid-template-columns: 1fr;
  }
}
