/* 桌邊小天地 — cozy pastel, mobile-first */
:root {
  --bg: #fbf6f0;
  --paper: #fffdfb;
  --ink: #3e3236;
  --muted: #5c4a50;
  --line: #efdce1;
  --blush: #f3d6dc;
  --blush-deep: #e8b4bc;
  --lavender: #e6dff3;
  --lavender-deep: #c9b8e0;
  --mint: #d8ede4;
  --mint-deep: #9eccb8;
  --link: #9a3d5a;
  --link-hover: #7a2a45;
  --accent: #9a3d5a;
  --soft: #f6e8ec;
  --shadow: 0 10px 28px rgba(176, 130, 148, 0.16);
  --shadow-hover: 0 14px 32px rgba(176, 130, 148, 0.22);
  --max: 42rem;
  --wide: 58rem;
  --radius: 1.35rem;
  --sans: "Noto Sans TC", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --round: Nunito, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.85;
  text-underline-offset: 0.18em;
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' fill-opacity='0.22'><circle cx='18' cy='22' r='1.6' fill='%23e8b4bc'/><circle cx='78' cy='48' r='1.4' fill='%23c9b8e0'/><circle cx='132' cy='20' r='1.5' fill='%239eccb8'/><circle cx='46' cy='96' r='1.3' fill='%23c9b8e0'/><circle cx='112' cy='110' r='1.5' fill='%23e8b4bc'/><circle cx='24' cy='140' r='1.2' fill='%239eccb8'/><path fill='%23e8b4bc' d='M54 36c0-3.2 2.4-5.4 4.8-5.4 1.6 0 3.1.9 4 2.3.9-1.4 2.4-2.3 4-2.3 2.4 0 4.8 2.2 4.8 5.4 0 5.6-8.8 9.6-8.8 9.6S54 41.6 54 36z'/><path fill='%23c9b8e0' d='M126 72l1.15 3.7 3.85.15-3.05 2.35.95 3.75-2.9-2.15-2.9 2.15.95-3.75-3.05-2.35 3.85-.15z'/><path fill='%239eccb8' d='M88 128l1.05 3.3 3.45.15-2.75 2.1.85 3.35-2.6-1.9-2.6 1.9.85-3.35-2.75-2.1 3.45-.15z'/><path fill='%23e8b4bc' d='M18 78l.7 2.2 2.3.1-1.8 1.4.55 2.2-1.75-1.3-1.75 1.3.55-2.2-1.8-1.4 2.3-.1z'/></g></svg>"),
    radial-gradient(1100px 460px at 8% -8%, rgba(243, 214, 220, 0.7), transparent 58%),
    radial-gradient(900px 380px at 100% 0%, rgba(230, 223, 243, 0.55), transparent 52%),
    radial-gradient(800px 360px at 80% 100%, rgba(216, 237, 228, 0.45), transparent 55%);
  background-attachment: fixed, scroll, scroll, scroll;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--paper);
  padding: 0.45rem 0.8rem;
  color: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.inner {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 250, 247, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(176, 130, 148, 0.08);
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--round);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.doodle {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
}
.doodle svg {
  width: 100%;
  height: 100%;
  display: block;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.92rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
}

nav a:hover {
  color: var(--ink);
  background: var(--lavender);
}

nav a[aria-current="page"] {
  color: var(--link-hover);
  background: var(--blush);
  font-weight: 500;
}

main {
  width: min(100% - 2rem, var(--max));
  margin: 2.2rem auto 4rem;
}

h1, h2, h3 {
  font-family: var(--round);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.hero {
  text-align: center;
  padding: 0.4rem 0 0.6rem;
}

.hero-doodles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.7rem;
  color: var(--blush-deep);
}
.hero-doodles svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

.hero h1 {
  font-size: clamp(1.9rem, 6vw, 2.55rem);
  line-height: 1.3;
  margin: 0 0 0.85rem;
}

.lede, .hero p {
  font-size: 1.05rem;
  color: var(--ink);
}

h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 0.85rem;
}

h3 {
  font-size: 1.08rem;
  margin: 1.6rem 0 0.5rem;
}

p, li { margin: 0 0 0.9rem; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

a:focus-visible,
.article-card:focus-visible,
.product-link:focus-visible,
.site-title:focus-visible,
nav a:focus-visible {
  outline: 2px solid var(--lavender-deep);
  outline-offset: 3px;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 2rem;
  display: grid;
  gap: 1.05rem;
}

.article-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.15rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.45rem;
  background: linear-gradient(180deg, var(--blush-deep), var(--lavender-deep) 55%, var(--mint-deep));
}

.article-list li:nth-child(2) .article-card::before {
  background: linear-gradient(180deg, var(--lavender-deep), var(--mint-deep));
}
.article-list li:nth-child(3) .article-card::before {
  background: linear-gradient(180deg, var(--mint-deep), var(--blush-deep));
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: inherit;
}

.kicker, .meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--link);
  margin: 0 0 0.4rem;
}

.kicker {
  display: inline-block;
  background: var(--blush);
  color: var(--link-hover);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.article-card .kicker {
  background: var(--lavender);
  color: #5a4574;
}

.article-list li:nth-child(3) .article-card .kicker {
  background: var(--mint);
  color: #2f5a48;
}

.article-card h2 {
  margin: 0.45rem 0 0.45rem;
  font-size: 1.15rem;
  padding-left: 0.15rem;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  padding-left: 0.15rem;
}

.meta { margin-bottom: 1.15rem; }

.note {
  background: var(--mint);
  border-radius: 1.1rem;
  padding: 0.85rem 1.05rem;
  font-size: 0.95rem;
  margin: 0 0 1.6rem;
  box-shadow: 0 4px 14px rgba(120, 160, 140, 0.12);
}

ul.products {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.4rem;
  display: grid;
  gap: 0.5rem;
}

ul.products li { margin: 0; }

.product-link {
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fff8f9, var(--blush));
  color: var(--link-hover);
  text-decoration: none;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #f0c8d0;
  box-shadow: 0 3px 0 #e5b4be, 0 8px 16px rgba(176, 130, 148, 0.12);
  font-weight: 500;
  line-height: 1.45;
  min-height: 2.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-link::after {
  content: "↗";
  flex: 0 0 auto;
  font-size: 0.95rem;
  color: var(--link);
}

.product-link:hover {
  color: var(--link-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #dba6b1, 0 10px 18px rgba(176, 130, 148, 0.16);
}

.fineprint {
  margin-top: 2.4rem;
  padding: 1.15rem 1.1rem 1rem;
  border-top: none;
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--lavender);
  border-radius: var(--radius);
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  background: rgba(255, 250, 247, 0.7);
  text-align: center;
}

footer p { margin: 0; }

.footer-marks {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 0 0.55rem !important;
}
.footer-marks svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

@media (max-width: 640px) {
  html { font-size: 17px; }
  header .inner {
    padding: 0.7rem 0 0.75rem;
    gap: 0.55rem;
  }
  .site-title { font-size: 1.08rem; }
  main { margin-top: 1.4rem; }
  .article-card { padding: 1.05rem 1.05rem 1.05rem 1.15rem; }
  .product-link { border-radius: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .article-card,
  .product-link { transition: none; }
  .article-card:hover,
  .product-link:hover { transform: none; }
  body { background-attachment: scroll; }
}

@media (prefers-contrast: more) {
  body { background-image: none; }
  .article-card,
  .product-link,
  .note,
  .fineprint { box-shadow: none; border-color: var(--ink); }
}
