/* Saige — component styles. Every value comes from tokens.css. */

.sg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  box-sizing: border-box;
  min-height: 60px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid var(--accent);
}
.sg-btn svg { flex: none; width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sg-btn--outline {
  min-height: 56px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 17px;
}
.sg-btn--outline svg { stroke-width: 2.2; }
.sg-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.sg-stack { display: flex; flex-direction: column; gap: var(--space-3); }

.sg-polaroid {
  margin: 0;
  width: 212px;
  box-sizing: border-box;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 10px 36px;
  transform: rotate(-2deg);
  position: relative;
  box-shadow: var(--shadow-polaroid);
}
.sg-polaroid__photo {
  display: block;
  width: 100%;
  height: 192px;
  object-fit: cover;
  background: var(--tint);
}
.sg-polaroid__photo--empty {
  border: 2px dashed var(--muted);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
}
.sg-polaroid__caption {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.sg-polaroid__tape {
  position: absolute;
  top: -12px; left: 50%;
  width: 80px; height: 24px;
  margin-left: -40px;
  background: var(--tint);
  opacity: 0.85;
  transform: rotate(2deg);
}
.sg-avatar {
  width: 180px; height: 180px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  border: 2px dashed var(--muted);
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--space-5);
  color: var(--ink);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
}

.sg-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--ink);
  font-family: var(--font-body);
}
.sg-card__title {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.sg-card__title--serif {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.sg-facts { margin: 0; display: flex; flex-direction: column; }
.sg-facts__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.4;
}
.sg-facts__row:last-child { border-bottom: 0; }
.sg-facts__row dt { color: var(--muted); font-weight: 500; }
.sg-facts__row dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); }

.sg-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-3); font-family: var(--font-body); font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.sg-steps li { display: flex; gap: var(--space-3); align-items: flex-start; }
.sg-steps svg { flex: none; width: 22px; height: 22px; margin-top: 2px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sg-stamp {
  width: 86px; height: 86px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--stamp);
  color: var(--stamp);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.25;
  transform: rotate(-12deg);
}
.sg-stamp small { font-size: 9px; letter-spacing: 0.06em; }
