/* 全站共用：色彩、排版基礎、控制、導覽、頁尾與減少動態偏好。 */
:root {
  --paper: #fffdf4;
  --surface: #f5edc5;
  --ink: #46301f;
  --brand: #765039;
  --accent: #e4bf54;
  --muted: #75654b;
  --line: #d9cba5;
  --sans: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
img,
video {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.25;
}
em {
  color: var(--brand);
  font-style: normal;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
video:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 5px;
}
.wrap {
  width: min(1400px, 90%);
  margin-inline: auto;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 20px;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 104px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.05em;
  white-space: nowrap;
  line-height: 1;
}
.brand-en {
  font-size: 18px;
  letter-spacing: 0.16em;
  font-weight: 800;
}
#main-nav {
  margin-left: auto;
  display: flex;
  gap: 36px;
  font-size: 17px;
  font-weight: 800;
}
#main-nav a {
  padding-block: 12px;
}
#main-nav a:hover {
  color: var(--brand);
}
.menu-toggle {
  display: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 26px;
  min-height: 54px;
  border-radius: 20px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  border: 1.5px solid transparent;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  color: var(--ink);
  background: var(--accent);
}
.button-primary:hover {
  background: #d7aa38;
}
.button-outline {
  border-color: #c7b58b;
  background: transparent;
}
.button-outline:hover {
  background: var(--surface);
}
h1 {
  font-size: clamp(62px, 7.6vw, 112px);
  letter-spacing: -0.035em;
  line-height: 1.14;
}
.accent-heading {
  position: relative;
  padding-left: 32px;
}
.accent-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.1em;
  width: 12px;
  background: var(--accent);
  border-radius: 12px;
}
.contact {
  background: var(--ink);
  color: white;
  padding-block: 38px 24px;
}
.contact-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 28px;
}
.contact h2 {
  font-size: clamp(28px, 3.25vw, 49px);
  letter-spacing: -0.04em;
}
.contact h2 span {
  color: #e4bf54;
}
.contact-main p {
  margin: 6px 0 0 32px;
  font-weight: 600;
}
.social-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.social-links a {
  font-size: 18px;
  font-weight: 700;
  padding-block: 8px;
}
.social-links a:hover {
  color: #f2d989;
}
.social-links .icon,
.footer-bottom .icon {
  width: 16px;
  height: 16px;
}
.footer-bottom {
  border-top: 1px solid #7b644b;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  font-size: 27px;
  gap: 13px;
}
.footer-brand .brand-en {
  font-size: 12px;
}
.footer-bottom p,
.footer-bottom > a:last-child {
  font-size: 12px;
}
.footer-bottom p {
  color: #e6dcc0;
}
@media (max-width: 1100px) {
  .site-header {
    gap: 24px;
  }
  .brand {
    font-size: 34px;
    gap: 12px;
  }
  .brand-en {
    font-size: 14px;
  }
  #main-nav {
    gap: 22px;
    font-size: 15px;
  }
  .contact-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .social-links {
    margin-left: 32px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    min-height: 82px;
    position: relative;
    gap: 18px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 31px;
  }
  .brand-en {
    font-size: 12px;
  }
  .has-navigation .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 10px 0 10px 12px;
    background: transparent;
    font-size: 14px;
    font-weight: 800;
  }
  #main-nav {
    flex-basis: 100%;
    margin: 0 0 16px;
    gap: 16px;
  }
  .has-navigation #main-nav {
    display: none;
    position: absolute;
    z-index: 20;
    top: 72px;
    left: -20px;
    right: -20px;
    margin: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 10px 15px #46301f09;
  }
  .has-navigation #main-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  #main-nav a {
    padding: 12px;
  }
  h1 {
    font-size: clamp(44px, 9.5vw, 70px);
  }
  .accent-heading {
    padding-left: 24px;
  }
  .accent-heading::before {
    width: 8px;
  }
  .contact {
    padding-block: 30px 24px;
  }
  .contact h2 {
    font-size: clamp(25px, 5.9vw, 36px);
  }
  .contact-main p {
    margin-left: 24px;
    font-size: 13px;
  }
  .social-links {
    margin-left: 24px;
    gap: 22px;
  }
  .social-links a {
    font-size: 14px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 18px;
  }
  .footer-bottom p {
    order: 3;
    width: 100%;
    font-size: 10px;
  }
  .footer-brand {
    font-size: 25px;
  }
  .footer-bottom > a:last-child {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
#main-nav a[aria-current="page"] {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 7px;
}
