/* 嶼東木製所｜暗室藝廊 */
:root {
  --bg: #161615;
  --fg: #E9E6E0;
  --muted: #A19B92;
  --line: #34322F;
  --sans: "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .06em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: #fff; }
a:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
h1, h2, h3 { font-weight: 300; line-height: 1.45; margin: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 600px) { .wrap, .narrow { padding: 0 20px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 24px; padding-bottom: 24px; }
.brand { font-weight: 500; font-size: 15px; letter-spacing: .5em; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 36px; font-size: 13px; letter-spacing: .3em; }
.site-nav a { text-decoration: none; display: inline-block; padding: 12px 0; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
@media (max-width: 600px) { .site-nav { gap: 0 22px; } }

/* full-bleed image */
.bleed { width: 100%; height: 56vw; min-height: 300px; max-height: 820px; object-fit: cover; }

/* home */
.intro { display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: flex-end; justify-content: space-between; padding-top: 96px; padding-bottom: 160px; }
.intro h1 { flex: 1 1 480px; font-size: 56px; letter-spacing: .12em; }
.intro p { flex: 0 1 380px; color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .intro { padding-top: 56px; padding-bottom: 96px; } .intro h1 { font-size: 34px; } }

.rows { display: flex; flex-direction: column; gap: 140px; }
.row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: 24px 56px; align-items: end; text-decoration: none; }
.row img { width: 100%; height: 560px; object-fit: cover; transition: opacity .3s; }
.row:hover img { opacity: .88; }
.row.rev { grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); }
.row.rev img { order: 2; }
.row.rev .label { order: 1; }
.label { display: flex; flex-direction: column; gap: 6px; }
.label .meta { font-size: 13px; color: var(--muted); letter-spacing: .3em; }
.label .name { font-size: 30px; font-weight: 400; letter-spacing: .2em; }
.label .note { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .rows { gap: 88px; }
  .row, .row.rev { grid-template-columns: minmax(0, 1fr); }
  .row img { height: auto; aspect-ratio: 3 / 2; }
  .row.rev img { order: 0; }
  .row.rev .label { order: 1; }
  .label .name { font-size: 24px; }
}

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 56px 80px; padding-top: 200px; padding-bottom: 120px; border-bottom: 1px solid var(--line); }
.pair h2 { font-weight: 400; font-size: 20px; letter-spacing: .3em; margin-bottom: 16px; }
.pair p { color: var(--muted); }
.more { display: inline-block; margin-top: 16px; font-size: 13px; letter-spacing: .3em; padding: 8px 0; text-underline-offset: 8px; }
@media (max-width: 600px) { .pair { padding-top: 120px; padding-bottom: 88px; } }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 32px; border: 1px solid var(--fg); text-decoration: none; font-size: 13px; letter-spacing: .3em; transition: background .2s, color .2s; }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { border-color: var(--fg); background: transparent; color: var(--fg); }

/* contact */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-end; padding-top: 96px; padding-bottom: 48px; }
.contact .call { flex: 1 1 420px; }
.contact .call p { font-size: 26px; letter-spacing: .15em; margin-bottom: 28px; }
.contact .info { flex: 0 1 300px; font-size: 14px; line-height: 2.1; color: var(--muted); }
.contact .info a { color: var(--fg); text-underline-offset: 4px; }
.contact .copy { flex: 1 1 100%; padding-top: 40px; font-size: 12px; color: var(--muted); letter-spacing: .2em; }
@media (max-width: 600px) { .contact .call p { font-size: 21px; } }

/* work page */
.work-top { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 24px 80px; align-items: flex-end; justify-content: space-between; }
.work-top .crumb { flex: 1 1 100%; font-size: 13px; letter-spacing: .3em; color: var(--muted); }
.work-top .crumb a { text-decoration: none; }
.work-top h1 { flex: 1 1 360px; font-size: 52px; letter-spacing: .25em; }
.work-top .lead { flex: 0 1 420px; color: var(--muted); }
@media (max-width: 600px) { .work-top { padding-top: 48px; padding-bottom: 48px; } .work-top h1 { font-size: 34px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 40px; margin: 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { font-size: 12px; color: var(--muted); letter-spacing: .3em; margin-bottom: 4px; }
.facts dd { margin: 0; }
.facts .wide { grid-column: span 2; }
@media (max-width: 600px) { .facts .wide { grid-column: auto; } }
.prose { padding-top: 120px; }
.prose h2 { font-size: 15px; font-weight: 400; letter-spacing: .4em; color: var(--muted); margin-bottom: 18px; }
.prose p { font-size: 17px; line-height: 2.05; }
.prose section + section { margin-top: 72px; }
.figure-full { margin: 140px auto; }
.gallery { columns: 2 320px; column-gap: 20px; }
.gallery img { width: 100%; margin-bottom: 20px; break-inside: avoid; }
.after { padding-top: 120px; }
.cta { margin-top: 160px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.cta h2 { font-size: 24px; letter-spacing: .12em; margin-bottom: 6px; }
.cta p { color: var(--muted); font-size: 15px; }
.others { padding-top: 120px; padding-bottom: 40px; }
.others h2 { font-size: 15px; font-weight: 400; letter-spacing: .4em; color: var(--muted); margin-bottom: 32px; }
.others .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 20px; }
.card { text-decoration: none; display: block; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .3s; }
.card:hover img { opacity: .88; }
.card .name { display: block; margin-top: 14px; font-size: 18px; font-weight: 400; letter-spacing: .2em; }
.card .meta { display: block; font-size: 12px; color: var(--muted); letter-spacing: .3em; }

/* about */
.page-top { padding-top: 96px; padding-bottom: 72px; }
.page-top h1 { font-size: 52px; letter-spacing: .25em; }
@media (max-width: 600px) { .page-top { padding-top: 56px; padding-bottom: 48px; } .page-top h1 { font-size: 34px; } }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 120px; padding-bottom: 160px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; } }
.about-grid .prose { padding-top: 0; }
.cv { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 14px; line-height: 2.1; color: var(--muted); }
.cv h2 { font-size: 12px; font-weight: 400; letter-spacing: .4em; color: var(--fg); margin-bottom: 10px; }
.cv ul { list-style: none; margin: 0 0 28px; padding: 0; }

/* process + faq */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; padding: 32px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font-size: 36px; font-weight: 300; line-height: 1.1; color: var(--muted); }
.steps h3 { font-size: 19px; font-weight: 400; letter-spacing: .2em; margin-bottom: 6px; }
.steps p { color: var(--muted); }
.faq { padding-top: 160px; padding-bottom: 160px; }
.faq > h1 { font-size: 40px; letter-spacing: .25em; margin-bottom: 72px; }
.faq-group + .faq-group { margin-top: 80px; }
.faq-group > h2 { font-size: 12px; font-weight: 400; letter-spacing: .4em; color: var(--muted); margin-bottom: 8px; }
.qa { padding: 28px 0; border-top: 1px solid var(--line); }
.qa h3 { font-size: 18px; font-weight: 400; letter-spacing: .08em; margin-bottom: 8px; }
.qa p { color: var(--muted); }

.notfound { padding-top: 160px; padding-bottom: 200px; }
.notfound h1 { font-size: 34px; letter-spacing: .2em; margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
