/* Sonomama home: calm and minimal. Fonts are shared with the first tool's folder (same files, OFL). */
@font-face { font-family: Manrope; src: url(/un540p/fonts/Manrope-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url(/un540p/fonts/Manrope-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(/un540p/fonts/Manrope-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f4f1ea; --card: #fbfaf6; --ink: #1f1d1a; --soft: #6e695f; --faint: #a19b8f; --line: #e2ddd2;
  --accent: #c4553b; --well: #ebe7dd; color-scheme: light;
}
[data-theme="dark"] {
  --bg: #141311; --card: #1b1a17; --ink: #ecebe6; --soft: #a39e92; --faint: #6f6b62; --line: #2c2a26;
  --accent: #e07a5f; --well: #23211e; color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 500 1rem/1.6 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
a { color: inherit; }
.wrap { width: min(680px, 100% - 32px); margin-inline: auto; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; }
.mark { width: 26px; height: 26px; }
.mark .ring { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.mark .dot { fill: var(--accent); }
.theme { width: 52px; height: 28px; padding: 3px; border-radius: 99px; border: 1px solid var(--line); background: var(--well); cursor: pointer; }
.theme .knob { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); transition: translate .35s cubic-bezier(.3, 1.2, .4, 1); }
[data-theme="dark"] .theme .knob { translate: 24px 0; }
.theme svg { grid-area: 1 / 1; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.theme .moon { fill: currentColor; stroke: none; opacity: 0; } [data-theme="dark"] .theme .moon { opacity: 1; } [data-theme="dark"] .theme .sun { opacity: 0; }
.theme:focus-visible, .app:focus-visible, .brand:focus-visible, .foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* intro */
main { flex: 1; }
.intro { padding: clamp(56px, 14vh, 140px) 0 clamp(48px, 9vh, 88px); }
.kana { margin: 0 0 18px; color: var(--accent); font-size: .95rem; letter-spacing: .3em; font-weight: 600; }
h1 { margin: 0; max-width: 15ch; font-size: clamp(2.2rem, 6.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.lead { margin: 22px 0 0; max-width: 44ch; color: var(--soft); font-size: 1.1rem; }

/* apps */
.apps h2 { margin: 0 0 14px; color: var(--faint); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.apps ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.app { display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; gap: 18px; padding: 22px 6px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s ease, background-color .3s ease; }
.app img { width: 48px; height: 48px; border-radius: 12px; display: block; }
.app-text { display: grid; gap: 2px; min-width: 0; }
.app strong { font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.app-text > span { color: var(--soft); }
.go { width: 22px; height: 22px; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s ease, stroke .3s ease; }
.app:hover { background: var(--card); padding-inline: 14px; }
.app:hover .go { translate: 4px 0; stroke: var(--accent); }

/* footer */
.foot { padding-block: 72px 36px; color: var(--soft); font-size: .95rem; }
.foot p { margin: 0; }
.foot a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.foot .small { margin-top: 10px; color: var(--faint); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
