/* kinletters.com 首頁（家號頁）：和等一局、王歌同一套水墨留白（宣紙底、墨字、朱紅）；不用外部字型（大陸打不開 Google） */
:root {
  --paper: #f6f2e9;      /* 宣紙米白 */
  --ink: #1f1d1a;        /* 濃墨 */
  --ink-soft: #5a554d;   /* 淡墨 */
  --ink-faint: #a49c8e;  /* 極淡墨 */
  --seal: #9b2c2c;       /* 朱紅：和家常圖示同色 */
  --font-brush: "LXGW WenKai TC", "Kaiti TC", "BiauKai", "DFKai-SB", "標楷體", "KaiTi", serif;
  --font-body: "Noto Serif TC", "Songti TC", "PMingLiU", "新細明體", serif;
  --font-icon: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}
:root[lang="zh-Hans"] {
  --font-brush: "Kaiti SC", "STKaiti", "KaiTi", serif;
  --font-body: "Songti SC", "STSong", "SimSun", serif;
}
:root[lang="en"] { --font-brush: Georgia, "Times New Roman", serif; --font-body: Georgia, "Times New Roman", serif; }
* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; overflow-x: clip;
  display: flex; flex-direction: column;
  color: var(--ink); background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font-family: var(--font-body); line-height: 1.8; -webkit-text-size-adjust: 100%;
}
/* 右上角一團很淡的墨暈（故意的水墨效果；比等一局首頁淡一點，這頁空白多，太濃像髒污） */
.ink-wash {
  position: fixed; top: -90px; right: -70px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, rgba(31, 29, 26, 0.05), rgba(31, 29, 26, 0.018) 45%, transparent 70%);
  filter: blur(8px); pointer-events: none;
}
.top { display: flex; justify-content: flex-end; padding: calc(env(safe-area-inset-top) + 8px) 12px 0; position: relative; }
.lang { display: flex; gap: 2px; font-size: 16px; }
.lang button {
  border: 0; background: none; padding: 8px 12px; min-height: 44px; min-width: 44px; cursor: pointer;
  color: var(--ink-soft); font: inherit; letter-spacing: .05em; -webkit-tap-highlight-color: transparent;
}
.lang button[aria-pressed="true"] { color: var(--seal); font-weight: 600; }
.lang button + button { border-left: 1px solid rgba(31, 29, 26, .15); }

main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 12px 32px; text-align: center; position: relative; }
h1 {
  margin: 0 0 40px; font-family: var(--font-brush); font-weight: 400;
  font-size: clamp(26px, 7.4vw, 40px); line-height: 1.5; letter-spacing: .08em;
}
:root[lang="en"] h1 { letter-spacing: 0; }

.apps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(8px, 3vw, 40px); }
.app {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: clamp(90px, 27vw, 120px);
  color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
/* 圖示：和家常 App 圖示同一個樣式（朱紅圓角方塊、淺色細框、白色粗體直排字） */
.icon {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  --w: clamp(72px, 21vw, 96px); width: var(--w); aspect-ratio: 1; border-radius: 18%;
  background: var(--seal); color: #fff; font-family: var(--font-icon); font-weight: 700; line-height: 1.12;
  font-size: clamp(22px, 6.4vw, 30px); box-shadow: 0 6px 16px rgba(155, 44, 44, .18);
  transition: transform .15s ease;
}
/* 橙色內框（Ken 2026-12-03 定）：照試樣 96 格，框在 7～89、線寬 1.8、圓角 4；用 --w 換算，圖示大小變了也一樣比例 */
.icon::before { content: ""; position: absolute; inset: calc(var(--w) * 6.1 / 96); border: calc(var(--w) * 1.8 / 96) solid #f28c28; border-radius: calc(var(--w) * 4.9 / 96); pointer-events: none; }
.icon span { position: relative; }
/* 品牌標誌：橙色鬱金香，x = 63/96、y = 63/96、寬 26/96，莖往下接到底下的框線（像從地上長出來）。淡的圖示整個 .icon 一起淡，框和鬱金香也跟著淡 */
.icon .tulip { position: absolute; left: calc(var(--w) * 63 / 96); top: calc(var(--w) * 63 / 96); width: calc(var(--w) * 26 / 96); height: calc(var(--w) * 26 / 96); fill: #f28c28; }
/* 三個字的（明信片）字小一點，才放得進同一個框 */
.icon.three { font-size: clamp(16px, 4.6vw, 22px); line-height: 1.08; }
.app strong { font-size: 17px; font-weight: 600; letter-spacing: .06em; line-height: 1.4; }
:root[lang="en"] .app strong { letter-spacing: 0; font-size: clamp(14px, 4.2vw, 16px); white-space: nowrap; }
.app small { font-size: 13px; color: var(--ink-faint); letter-spacing: .08em; line-height: 1.3; }
a.app:hover .icon, a.app:focus-visible .icon { transform: translateY(-3px); }
a.app:focus-visible { outline: 2px solid var(--seal); outline-offset: 6px; border-radius: 12px; }
.app.soon { cursor: default; }
.app.soon .icon { opacity: .38; box-shadow: none; }
.app.soon strong { color: var(--ink-faint); }

.motto { margin: 40px 0 0; font-family: var(--font-brush); font-size: clamp(20px, 5.6vw, 28px); letter-spacing: .12em; color: var(--ink-soft); }
:root[lang="en"] .motto { letter-spacing: 0; }

.foot {
  padding: 18px 16px calc(env(safe-area-inset-bottom) + 22px); text-align: center;
  font-size: 13.5px; letter-spacing: .1em; color: var(--ink-faint);
}
.foot a { color: var(--ink-soft); text-decoration: none; display: inline-block; padding: 12px 6px; }
.foot a:hover { color: var(--seal); }
@media (prefers-reduced-motion: reduce) { .icon { transition: none; } }
:root[lang="en"] .app small { letter-spacing: 0; }
/* 窄螢幕：頁尾兩個連結放不下一行時，上下排、不留孤單的「・」 */
.foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
@media (max-width: 400px) {
  :root[lang="en"] .foot { flex-direction: column; gap: 0; }
  :root[lang="en"] .foot span { display: none; }
  :root[lang="en"] .foot a { padding: 6px; min-height: 44px; display: inline-flex; align-items: center; }
}
