/* slate.scena.tw — follows the Scena site's quiet grayscale editorial look. */
:root {
  --ink: rgba(244, 244, 241, 0.94);
  --muted: rgba(235, 235, 232, 0.66);
  --dim: rgba(235, 235, 232, 0.42);
  --rule: rgba(242, 242, 239, 0.14);
  --gutter: 1.5rem;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color-scheme: dark;
}

@media (min-width: 768px) { :root { --gutter: 3rem; } }
@media (min-width: 1024px) { :root { --gutter: 3.5rem; } }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: #111 linear-gradient(145deg, #242424 0%, #111111 48%, #1c1c1c 100%) fixed;
  color: var(--ink);
  font-family: var(--sans);
}

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

.header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(235, 237, 235, 0.16);
  background: rgba(18, 18, 18, 0.74);
  -webkit-backdrop-filter: blur(24px) saturate(112%);
  backdrop-filter: blur(24px) saturate(112%);
}

.header-inner,
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: min(calc(100% - 2 * var(--gutter)), 80rem);
  margin: 0 auto;
}

.header-inner { min-height: 4.5rem; padding: 0.9rem 0; }

.brand {
  color: #f5f5f2;
  font-family: Didot, "Bodoni 72", "Iowan Old Style", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.links { display: flex; gap: clamp(0.85rem, 2vw, 1.8rem); }

.links a {
  color: rgba(240, 241, 238, 0.66);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 160ms ease;
}

.links a:hover,
.links a:focus-visible,
.links a[aria-current="page"] { color: #f5f5f2; }

.main {
  min-height: 72vh;
  padding: clamp(9rem, 13vw, 11rem) var(--gutter) clamp(5rem, 9vw, 8rem);
}

.inner { width: min(100%, 80rem); margin: 0 auto; }

.heading { max-width: 58rem; padding-bottom: clamp(3.5rem, 7vw, 6rem); }

.eyebrow {
  margin: 0;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 12em;
  margin: clamp(1.25rem, 2.4vw, 2rem) 0 0;
  font-size: clamp(2.75rem, 5.8vw, 5.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.intro {
  max-width: 50rem;
  margin: clamp(1.4rem, 2.6vw, 2.25rem) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.85;
  text-wrap: balance;
  line-break: strict;
}

.intro a,
.article a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(244, 244, 241, 0.38);
  text-underline-offset: 0.2em;
}

.article { max-width: 50rem; color: var(--muted); }

.updated { margin: 0; color: var(--dim); font-size: 0.88rem; line-height: 1.7; }

.article section { margin-top: clamp(2.75rem, 6vw, 4.5rem); }

.article section:first-child { margin-top: 0; }

h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.3;
}

.article section > div { font-size: 1rem; line-height: 1.9; text-wrap: pretty; }

.article p,
.article ul { margin: 0; }

.article section > div > * + * { margin-top: 1rem; }

.article ul { display: grid; gap: 0.65rem; padding-left: 1.25rem; }

.footer {
  border-top: 1px solid var(--rule);
  background: #0c0d0d;
  color: rgba(238, 240, 237, 0.54);
}

.footer-inner { padding: 2.5rem 0 2rem; font-size: 0.84rem; line-height: 1.7; }

.footer-inner p { margin: 0; }

.footer-inner a { color: rgba(238, 240, 237, 0.72); }
