/* yamaji studio site. The studio pages are neutral (no accent colour);
   pages of an app carry that app's colours (body.app-dailypiece, from Assets.xcassets brand_*). */
:root {
  --bg: #f4f4fa;
  --card: #fbfbfd;
  --heading: #282832;
  --text: #464650;
  --muted: #6b6b6b;
  --line: #dcdce4;
  --accent: #282832;
  --accent-soft: #e8e8ee;
  --radius: 28px;
}

body.app-dailypiece {
  --accent: #ffa200;
  --accent-soft: #ffc86a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--heading); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header: wordmark, tabs, language */
header.site { padding: 24px 0 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--heading); text-decoration: none; }
nav.tabs { display: flex; align-items: center; gap: 20px; font-size: 16px; font-weight: 600; }
nav.tabs a { text-decoration: none; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
nav.tabs a[aria-current] { color: var(--heading); border-bottom-color: var(--accent); }
nav.tabs a:hover { color: var(--heading); }

/* Second row of tabs inside an app */
nav.subtabs { display: flex; gap: 20px; margin: 24px 0 32px; flex-wrap: wrap; font-size: 16px; font-weight: 600; }
nav.subtabs a { text-decoration: none; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
nav.subtabs a[aria-current] { color: var(--heading); border-bottom-color: var(--accent); }
nav.subtabs a:hover { color: var(--heading); }

main { padding: 32px 0 56px; }

h1 { color: var(--heading); font-size: clamp(34px, 7vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { color: var(--heading); font-size: 22px; margin: 36px 0 8px; }
p { margin: 0 0 16px; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 200px; height: auto; display: block; margin: 0 auto 16px; }
.hero p.lead { font-size: 20px; max-width: 520px; margin: 0 auto 24px; }

/* Studio start page: the apps as icons */
.apps { list-style: none; margin: 0; padding: 40px 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 40px; }
a.app-tile { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 168px; text-decoration: none; }
.app-icon { display: block; width: 168px; height: 168px; border-radius: 38px; background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(40, 40, 50, 0.16), 0 2px 6px rgba(40, 40, 50, 0.08); }
.app-icon img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.app-name { color: var(--heading); font-size: 22px; font-weight: 700; text-align: center; }
a.app-tile:hover .app-name { text-decoration: underline; text-decoration-color: var(--line); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Round orange elements are for buttons only */
.pill {
  display: inline-block; padding: 16px 28px; border-radius: 24px;
  background: var(--accent); color: var(--heading); font-weight: 700; text-decoration: none;
}

.card { background: var(--card); border-radius: var(--radius); padding: 24px; margin: 0 0 16px; }
.card h2 { margin-top: 0; }



footer.site { padding: 24px 0 48px; font-size: 15px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--muted); }

/* Long texts (privacy, legal notice) */
.meta { color: var(--muted); font-size: 15px; margin: -4px 0 24px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal ol { margin-top: 8px; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { color: var(--heading); }
