/* Architelier — 2018 stacked-block, 金水 greys */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: #333; }

html, body { min-height: 100%; }
body {
  background: #333333;
  color: #555;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: #666; text-decoration: none; }
a:hover { color: #222; }

.wrap {
  width: 960px;
  max-width: 100%;
  margin: 0 auto;
  background: #f4f4f5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.page { flex: 1 1 auto; }

/* ----- header ----- */
.header {
  padding: 20px 28px 0;
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.brand { display: block; }

html.zh .brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  height: 92px;
  width: auto;
  display: block;
}

.zihao {
  display: block;
  margin: 5px 0 0;
  font-size: 11px;
  letter-spacing: 0.42em;
  color: #5c5c5c;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  padding-left: 0.42em; /* match trailing letter-spacing so 銘涵 sits on the logo */
}

.lang {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
  font-size: 11px;
  color: #6e6e6e;
  letter-spacing: 0.04em;
}

.lang a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6e6e6e;
}

.lang a:hover,
.lang a.current {
  color: #333;
}

.lang img {
  width: 16px;
  height: 11px;
  display: block;
  border: 1px solid #ddd;
}

nav {
  margin: 14px -28px 0;
  padding: 8px 28px 8px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: #646464;
}

nav a { color: #646464; }

nav a:hover,
nav a.here {
  color: #333;
}

nav .sep {
  margin: 0 11px;
  color: #bbb;
  letter-spacing: 0;
}

/* ----- homepage: locked chrome, photos move ----- */
html.home,
html.home body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html.home body .wrap {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

html.home .header,
html.home .types,
html.home .footer {
  flex-shrink: 0;
}

html.home .header {
  padding: 10px 28px 0;
}

html.home .logo {
  height: 68px;
}

html.home .zihao {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.38em;
  padding-left: 0.38em;
}

html.home nav {
  margin-top: 8px;
  padding: 6px 28px;
}

html.home .footer {
  padding: 8px 28px 10px;
  font-size: 10px;
}

.snips-frame {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: #f4f4f5;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x;
}

.snips-frame::-webkit-scrollbar { display: none; }

.snips-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  width: max-content;
  gap: 4px;
}

.snip {
  margin: 0;
  padding: 0;
  height: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  background: #f4f4f5;
}

.snip img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.types {
  font-size: 11px;
  color: #6a6a6a;
  padding: 7px 28px 8px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  font-weight: 400;
}

/* ----- inner pages ----- */
.page {
  padding: 32px 40px 64px;
  min-height: 420px;
}

.page h1 {
  font-family: inherit;
  font-weight: 400;
  font-size: 22px;
  color: #3d3d3d;
  margin: 0 0 16px;
  letter-spacing: 0.08em;
}

.page .subhead {
  font-family: inherit;
  font-size: 12px;
  color: #777;
  text-align: center;
  font-weight: 400;
  margin: 0 0 28px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  max-width: 36em;
  margin: 0 0 1.15em;
}

.page h2 {
  font-family: inherit;
  font-weight: 400;
  font-size: 15px;
  color: #3d3d3d;
  margin: 28px 0 8px;
  letter-spacing: 0.06em;
}

.page h2:first-of-type { margin-top: 8px; }

.contact-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.contact-info {
  margin: 0;
  flex: 0 0 260px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

.contact-info strong {
  color: #3d3d3d;
  font-weight: bold;
}

.contact-info a { color: #555; }
.contact-info a:hover { color: #222; }

.addr-block { margin: 12px 0 0; }
.addr-block p { margin: 0 0 10px; font-size: 15px; max-width: none; }

form.contact {
  flex: 1;
  max-width: 540px;
}

.row {
  display: flex;
  align-items: center;
  margin: 0 0 10px;
}

.row label {
  width: 140px;
  flex-shrink: 0;
  color: #555;
  font-size: 15px;
}

.row input[type="text"],
.row input[type="email"],
.row input[type="tel"] {
  width: 280px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  background: #fff;
  font: 15px inherit;
  color: #333;
}

.msg-label {
  display: block;
  margin: 14px 0 6px;
  color: #555;
  font-size: 15px;
}

textarea {
  width: 100%;
  max-width: 100%;
  height: 110px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  background: #fff;
  font: 15px inherit;
  color: #333;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.actions { margin-top: 14px; }

button.send,
input.send {
  background: #e4e4e6;
  border: 1px solid #bbb;
  color: #333;
  font: 12px inherit;
  letter-spacing: 0.08em;
  padding: 6px 18px;
  cursor: pointer;
}

button.send:hover,
input.send:hover {
  background: #d8d8da;
}

/* ----- footer ----- */
.footer {
  background: #333333;
  color: #9a9a9a;
  font-size: 11px;
  padding: 14px 28px 18px;
  text-align: center;
  line-height: 1.55;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* ----- Chinese ----- */
html.zh,
html.zh body {
  font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", sans-serif;
}

html.zh nav {
  text-transform: none;
  letter-spacing: 0.18em;
  font-size: 13px;
}

html.zh .page h1,
html.zh .page h2,
html.zh .page .subhead {
  font-family: inherit;
}

html.zh .page h1 {
  font-size: 22px;
  letter-spacing: 0.18em;
}

html.zh .page h2 {
  font-size: 15px;
  letter-spacing: 0.12em;
}

html.zh .page .subhead {
  text-transform: none;
  letter-spacing: 0.22em;
  font-size: 13px;
}

html.zh .page p {
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.04em;
}

html.zh .types {
  font-size: 12px;
  letter-spacing: 0.14em;
}

html.zh .zihao {
  font-family: inherit;
}

html.zh .row label,
html.zh .msg-label,
html.zh .contact-info,
html.zh .addr-block p,
html.zh textarea,
html.zh .row input {
  font-size: 15px;
  font-family: inherit;
}

html.zh .row label { width: 72px; }

html.zh button.send {
  font-family: inherit;
}

/* ----- mobile ----- */
@media (max-width: 980px) {
  .wrap { width: 100%; }
  .header { padding: 16px 16px 0; }
  nav { margin-left: -16px; margin-right: -16px; padding: 8px 16px; }
  .logo { height: 80px; }
  .page { padding: 24px 18px 48px; }
  .page h1 { font-size: 20px; }
  .row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .row label { width: auto; }
  .row input[type="text"],
  .row input[type="email"],
  .row input[type="tel"] { width: 100%; }
  textarea { max-width: 100%; }
  nav .sep { margin: 0 8px; }
  .contact-grid { flex-direction: column; gap: 18px; }
  .contact-info { flex: none; }
  .types { padding-left: 16px; padding-right: 16px; }

  html.home,
  html.home body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }
  html.home body .wrap {
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }
  html.home .snips-frame {
    flex: 1 1 auto;
    height: 48vh;
    min-height: 220px;
  }
  html.home .header { padding: 10px 16px 0; }
  html.home .logo { height: 64px; }
}

@media (max-width: 420px) {
  nav {
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1.8;
  }
  html.zh nav { font-size: 12px; }
  .types { white-space: normal; }
}
