/* 家事研究室 — 極簡編輯風（okuru 骨架 × 暖色調性） */
:root {
  --bg: #f6f4ef;
  --bg-soft: #efece4;
  --ink: #2a2823;
  --muted: #746e60;
  --accent: #667760;
  --accent-dark: #55644f;
  --line: #ddd7c8;
  --serif: "Noto Serif TC", "Source Han Serif TC", "PMingLiU", "新細明體", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-head .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 20px;
}
.brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.28em;
  margin-top: 2px;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.site-nav a {
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.on { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.hero p { margin-top: 18px; color: var(--muted); max-width: 560px; }
.hero .en {
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 99px;
  color: var(--accent-dark);
  font-weight: 600;
  background: #fff;
}
.hero-actions a.secondary { background: transparent; border-color: var(--line); color: var(--muted); }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
}
.trust-strip span::before { content: "✓"; color: var(--accent-dark); margin-right: 7px; font-weight: 700; }

/* ---------- section ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.sec-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.sec-sub { font-size: 12px; letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase; margin-bottom: 32px; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px 22px 22px;
  transition: border-color .2s, transform .2s;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-card .no { font-size: 11px; letter-spacing: 0.25em; color: var(--accent); }
.cat-card h3 { font-family: var(--serif); font-size: 18px; margin: 10px 0 8px; letter-spacing: 0.08em; }
.cat-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- article list（okuru 式：日期│分類│標題） ---------- */
.art-list { border-top: 1px solid var(--line); }
.art-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.art-row:hover { background: var(--bg-soft); }
.art-row time { font-size: 13px; color: var(--muted); letter-spacing: 0.05em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.art-row .tag {
  font-size: 11px;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  padding: 2px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.art-row h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.6; }

/* ---------- article page ---------- */
.crumb { font-size: 12px; color: var(--muted); padding: 20px 0 0; }
.crumb a:hover { color: var(--accent-dark); }
.article-head { padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.article-head .meta .updated { color: var(--accent-dark); }
.article-head .meta .tag { font-size: 11px; color: var(--accent-dark); border: 1px solid var(--accent); padding: 2px 10px; border-radius: 99px; }
.article-head h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.04em;
}
.article-head .lede { margin-top: 16px; color: var(--muted); font-size: 15px; }

.toc {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 26px;
  margin: 36px 0;
  font-size: 14px;
}
.toc strong { display: block; font-family: var(--serif); letter-spacing: 0.15em; margin-bottom: 10px; font-size: 15px; }
.toc ol { padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent-dark); }

.article-body { padding-bottom: 24px; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 48px 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.6;
}
.article-body h3 { font-family: var(--serif); font-size: 17px; margin: 30px 0 12px; letter-spacing: 0.06em; }
.article-body p { margin: 14px 0; }
.article-body ul, .article-body ol { margin: 14px 0 14px 24px; }
.article-body li { margin: 6px 0; }
.article-body table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 14px; background: #fff; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.article-body th { background: var(--bg-soft); font-family: var(--serif); letter-spacing: 0.06em; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14.5px;
}
.callout strong { color: var(--accent-dark); }

.warn {
  background: #f7efe9;
  border-left: 3px solid #b0785a;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14.5px;
}
.warn strong { color: #96613f; }

/* ---------- FAQ ---------- */
.faq { margin: 40px 0; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::after { content: "＋"; position: absolute; right: 0; color: var(--accent); }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 0 16px; font-size: 14.5px; color: #4a463d; }

/* ---------- related / disclaimer ---------- */
.related { margin: 44px 0; }
.related h2 { font-family: var(--serif); font-size: 18px; letter-spacing: 0.12em; margin-bottom: 16px; }
.related a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: #4a463d; }
.related a:hover { color: var(--accent-dark); }

.disclaimer {
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  margin: 40px 0 0;
  line-height: 1.8;
}

/* ---------- trust / next step ---------- */
.source-box,
.next-step {
  margin: 36px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: #fff;
}
.source-box h2,
.next-step h2 {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.source-box p,
.next-step p { color: #4a463d; font-size: 14.5px; }
.source-box ul { margin: 12px 0 0 20px; }
.source-box li { margin: 8px 0; }
.source-box a,
.next-step a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.source-note { margin-top: 14px; color: var(--muted) !important; font-size: 12.5px !important; }
.next-step {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
}
.next-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.next-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  background: #fff;
}
.transparency-note {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
}
.transparency-note h2 { margin-top: 0 !important; }

/* ---------- contact ---------- */
.contact-box {
  margin: 36px 0;
  padding: 22px 24px;
  border: 1px solid var(--accent);
  background: #fff;
}
.contact-box h2 {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  padding-left: 0;
  border-left: none;
}
.contact-box p { color: #4a463d; font-size: 14.5px; }
.contact-box ul { margin: 12px 0 12px 20px; }
.contact-box li { margin: 8px 0; font-size: 14.5px; }
.contact-mail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-dark);
  background: var(--bg-soft);
}
.mock-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 99px;
  background: #f7efe9;
  border: 1px solid #b0785a;
  color: #96613f;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 400;
}
.contact-note { margin-top: 10px; color: var(--muted) !important; font-size: 13px !important; }
.foot-contact { font-size: 12.5px !important; }
.foot-contact a { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 64px; background: var(--bg-soft); }
.site-foot .wrap { padding: 40px 24px 32px; }
.site-foot .brand { font-size: 20px; }
.site-foot p { font-size: 13px; color: var(--muted); margin-top: 12px; max-width: 520px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; font-size: 13px; }
.foot-nav a { color: var(--muted); }
.foot-nav a:hover { color: var(--ink); }
.copy { font-size: 12px; color: var(--muted); margin-top: 28px; letter-spacing: 0.05em; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 44px 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .art-row { flex-wrap: wrap; gap: 8px 14px; padding: 16px 2px; }
  .art-row h3 { width: 100%; font-size: 16px; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; padding-top: 20px; padding-bottom: 10px; }
  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .site-nav a { flex: 0 0 auto; }
  .article-head .lede { font-size: 16px; }
  .article-body { font-size: 16px; }
  .toc { margin: 28px 0; padding: 18px 20px; }
  .source-box, .next-step { padding: 20px; }
}
