/* smallmeo.com 首頁樣式。不載入任何外部字型或程式，全部用系統內建字型。 */

:root {
  --bg: #faf8f5;
  --bg-alt: #f3efe9;
  --card: #ffffff;
  --ink: #1f1b16;
  --muted: #6b645b;
  --line: #e4ddd3;
  --accent: #c8551f;
  --accent-ink: #ffffff;
  --accent-soft: #fbe9df;
  --radius: 14px;
  --wrap: 960px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171512;
    --bg-alt: #1d1a16;
    --card: #221f1a;
    --ink: #f2ede6;
    --muted: #a69e93;
    --line: #322d27;
    --accent: #f08a4b;
    --accent-ink: #1a1408;
    --accent-soft: #3a2518;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC",
    "Microsoft JhengHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.3;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  text-decoration: none;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

/* 頁首 */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex: none;
}

.brand-eye {
  fill: var(--bg);
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

/* 主視覺 */

.hero {
  padding: 96px 0 88px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 16em;
}

.lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--muted);
}

/* 每一句、每個子句各自成一塊：放不下時整塊換行，不會只掉一兩個字到下一行 */
.hero h1 span,
.lead span {
  display: inline-block;
}

.button {
  display: inline-block;
  margin-top: 34px;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* 區塊 */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 28px;
}

/* 產品 */

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.product-head h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.badge {
  flex: none;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-quiet {
  background: var(--bg-alt);
  color: var(--muted);
}

.product-summary {
  color: var(--ink);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.feature-list strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.product-empty {
  border-style: dashed;
  background: transparent;
}

.product-empty .product-summary {
  color: var(--muted);
}

/* 原則 */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.principle h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.principle h3::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--accent);
}

.principle p {
  color: var(--muted);
}

/* 聯絡與頁尾 */

.contact-text {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* 窄螢幕 */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section {
    padding: 52px 0;
  }

  .product-grid,
  .principle-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .principle-grid {
    gap: 24px;
  }

  .card {
    padding: 22px;
  }

  .site-nav a {
    padding: 8px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
