:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-muted: #efe7da;
  --text: #1f2328;
  --muted: #61656c;
  --brand: #9f6a22;
  --brand-dark: #70440f;
  --line: #ded6ca;
  --shadow: 0 20px 60px rgba(31, 35, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  color: var(--muted);
  font-weight: 700;
}

.nav a:hover {
  color: var(--brand-dark);
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 120px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(247, 244, 238, 0.2), rgba(247, 244, 238, 0.94)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.lead {
  max-width: 640px;
  color: #393d43;
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-dark);
}

.button.small {
  min-height: 40px;
  margin-top: 6px;
  padding: 8px 16px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section > p,
.section-heading {
  max-width: 840px;
}

.section-heading p {
  color: var(--muted);
}

.muted {
  background: var(--surface-muted);
}

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

.card,
.work-card {
  min-height: 190px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card {
  padding: 28px;
}

.works {
  background: #fffaf2;
}

.work-image {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(159, 106, 34, 0.88), rgba(82, 46, 9, 0.9)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 14px);
  color: #fff;
  font-weight: 900;
}

.work-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-muted);
}

.work-body {
  padding: 24px;
}

.work-category {
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
}

.order-section {
  background: var(--surface);
}

.order-form {
  display: grid;
  max-width: 920px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.order-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.order-form textarea,
.order-form button {
  grid-column: 1 / -1;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(159, 106, 34, 0.18);
}

.card p,
.work-body p,
.contact p,
.site-footer {
  color: var(--muted);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--brand);
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-dark);
}

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

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 68vh;
  }

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

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

  .order-form {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}
