/* Ksyu — self-contained, mobile-first link page. */
:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; --gold: #dec8a2; --white: #fff9ed; }
* { box-sizing: border-box; }
html { min-width: 280px; background: #191510; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--white); }
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #191510; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,13,10,.40) 0%, rgba(16,13,10,.10) 32%, rgba(16,13,10,.02) 48%, rgba(16,13,10,.30) 68%, rgba(16,13,10,.62) 100%); }
.page { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; min-height: 100svh; max-width: 480px; margin-inline: auto; padding: max(50px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom)); gap: 140px; }
.backdrop img { height: calc(100% + 160px); transform: translateY(-160px); }
.identity { text-align: center; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.eyebrow { display: block; font-size: .75rem; line-height: 1.5; letter-spacing: .22em; font-weight: 500; color: #eee3d2; }
h1 { margin: 6px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 5rem; font-weight: 400; line-height: 1.12; letter-spacing: -.065em; }
.period { color: var(--gold); }
.handle { margin: 0; font-size: .875rem; line-height: 1.5; letter-spacing: .065em; color: #f0e7d9; }
.identity-rule { display: block; width: 28px; height: 1px; margin: 20px auto 0; background: var(--gold); opacity: .8; }
.links { display: grid; gap: 11px; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 9px 12px; min-height: 78px; background: rgba(20,17,14,.44); border: 1px solid rgba(222,200,162,.26); border-radius: 14px; color: var(--white); text-decoration: none; -webkit-tap-highlight-color: transparent; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 5px 18px rgba(0,0,0,.08); text-shadow: 0 1px 3px rgba(0,0,0,.45); transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.book-card { background: rgba(36,26,19,.48); border-color: rgba(222,200,162,.32); }
.thumbnail { display: flex; flex: 0 0 42px; width: 42px; height: 48px; overflow: hidden; border-radius: 7px; background: #30271e; }
.thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-thumbnail { background: #600e1b; }
.book-thumbnail img { object-fit: contain; }
.pilates-thumbnail { background: #ead0ba; }
.pilates-thumbnail img { object-fit: contain; }
.message-help { margin-top: 12px; font-size: .75rem; color: #eee3d2; line-height: 1.5; }
.message-help summary { cursor: pointer; padding: 8px 2px; text-align: center; list-style: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b8a27e; }
.message-help summary::-webkit-details-marker { display: none; }
.message-help summary:focus-visible, .copy-message:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.message-content { padding: 15px; border: 1px solid rgba(222,200,162,.26); border-radius: 14px; background: #191510; }
.message-content label { display: block; font-size: .875rem; margin-bottom: 10px; }
.message-content textarea { display: block; width: 100%; font: inherit; font-size: 1rem; line-height: 1.5; color: var(--white); background: #26211b; border: 1px solid #71624b; border-radius: 8px; padding: 10px; resize: vertical; }
.copy-message { margin-top: 12px; min-height: 44px; width: 100%; padding: 9px 12px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: #191510; font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; }
.message-status, .manual-copy { font-size: .875rem; margin-bottom: 0; }
.message-status:empty { display: none; }
.card-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 3px; }
.card-category { color: var(--gold); font-size: .75rem; font-weight: 500; letter-spacing: .12em; line-height: 1.35; }
.card-title { font-size: 1rem; font-weight: 500; line-height: 1.35; letter-spacing: -.025em; overflow-wrap: break-word; }
.card-note { color: #d6cec2; font-size: .8125rem; line-height: 1.4; }
.card-mark { flex: 0 0 16px; color: var(--gold); }
.card-mark svg { display: block; width: 16px; height: 16px; }
.language-mark { font-size: .75rem; font-weight: 500; letter-spacing: .02em; }
.link-card:focus-visible { outline: 2px solid #ffe4b4; outline-offset: 4px; }
.link-card:active { transform: scale(.985); background: rgba(58,45,32,.65); }
@media (hover: hover) { .link-card:hover { background: rgba(58,45,32,.60); border-color: rgba(222,200,162,.65); transform: translateY(-2px); } }
@media (max-width: 360px) { .page { padding-inline: 16px; padding-top: 36px; gap: 110px; } h1 { font-size: 4.5rem; } .link-card { gap: 11px; padding-right: 11px; } .thumbnail { flex-basis: 38px; width: 38px; height: 46px; } .card-title { font-size: 1rem; } .card-mark { display: none; } }
@media (max-height: 740px) and (orientation: portrait) { .page { padding-top: max(30px, env(safe-area-inset-top)); padding-bottom: max(20px, env(safe-area-inset-bottom)); gap: 110px; } .backdrop img { height: calc(100% + 150px); transform: translateY(-150px); } h1 { font-size: 4.5rem; } .identity-rule { margin-top: 14px; } .link-card { min-height: 76px; padding-block: 8px; } }
@media (max-height: 620px) and (orientation: portrait) { .page { padding-top: max(24px, env(safe-area-inset-top)); gap: 95px; } .backdrop img { height: calc(100% + 120px); transform: translateY(-120px); } h1 { font-size: 4rem; } .link-card { min-height: 74px; padding-block: 7px; } .thumbnail { height: 44px; } }
@media (min-width: 700px) { .backdrop img { object-fit: contain; object-position: center; } .backdrop { background: #171410; } .page { padding-top: 60px; padding-bottom: 42px; } .backdrop::after { background: linear-gradient(180deg, rgba(16,13,10,.48), rgba(16,13,10,.06) 42%, rgba(16,13,10,.62)), linear-gradient(90deg, rgba(16,13,10,.60), transparent 38%, transparent 62%, rgba(16,13,10,.60)); } }
@media (orientation: landscape) and (max-height: 600px) { .page { gap: 40px; padding-top: 26px; } .backdrop img { height: 100%; transform: none; object-position: 58% 48%; } h1 { font-size: 3.5rem; } }
@media (prefers-reduced-motion: reduce) { .link-card { transition: none; } }
