:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --accent: #0a66d8;
  --accent-soft: #e8f1fd;
  --on-accent: #ffffff;
  --notice-bg: #fff4d6;
  --notice-text: #6b4a00;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c2e;
    --accent: #4da3ff;
    --accent-soft: #12305a;
    --on-accent: #000000;
    --notice-bg: #3a2e0a;
    --notice-text: #ffd97a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
}

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

ul {
  list-style: none;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding-bottom: 4px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 4px;
  background: var(--line);
}

.avatar-initial {
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 600;
  color: var(--muted);
}

.profile h1 {
  font-size: 22px;
}

.title {
  color: var(--muted);
  font-size: 15px;
}

.bio {
  font-size: 14px;
  margin-top: 6px;
}

section {
  margin-top: 20px;
}

h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 4px 8px;
}

.products {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.product {
  padding: 10px 12px;
}

.product + .product {
  border-top: 1px solid var(--line);
}

.product-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 22%;
  border: 1px solid var(--line);
  background: var(--bg);
}

.icon-placeholder {
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 22px;
  color: var(--muted);
}

.product-text {
  flex: 1;
  min-width: 0;
}

.product-text h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.tagline {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.meta {
  font-size: 12px;
  color: var(--muted);
}

.get {
  flex: none;
  min-width: 64px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.shots {
  margin: 2px 0 0 68px;
}

.shots[open] {
  margin-left: 0;
}

.shots summary {
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  padding: 2px 0;
}

.shots-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 4px;
  scroll-snap-type: x proximity;
}

.shots-strip img {
  flex: none;
  height: 300px;
  width: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.notice {
  background: var(--notice-bg);
  color: var(--notice-text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 8px;
}

footer {
  margin-top: 28px;
  text-align: center;
}

.save {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.disclaimer {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}

.status {
  text-align: center;
  color: var(--muted);
  padding: 64px 8px;
}

.status h1 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.skeleton {
  background: var(--line);
  animation: pulse 1.2s ease-in-out infinite;
}

.skeleton-line {
  height: 16px;
  width: 60%;
  border-radius: 6px;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
