/* saige.fyi — page composition for design "D · Note (B + B2)".
   Components live in bundle.css; colors/space/type come from tokens.css.
   The type classes below mirror the named styles in tokens.json
   (type.groups[].styles[].name), applied with their exact values. No new
   values are introduced here — only layout plumbing the design needs. */

html, body { height: 100%; margin: 0; background: var(--ground); }

.sg-page {
  box-sizing: border-box;
  min-height: 100%;
  max-width: 420px;          /* holds the note as a phone-width column on wider screens */
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
}

/* Header: wordmark + handwritten note tag */
.sg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sg-wordmark {                 /* tokens.json › Display › wordmark */
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}
.sg-note-tag {                 /* handwritten accent tag, Hand family */
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

/* Hero */
.sg-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
}
.sg-display-xl {               /* tokens.json › Display › display-xl */
  margin: 0;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}
.sg-display-xl em { font-style: italic; }
.sg-lead {                     /* tokens.json › Body › lead */
  margin: 0;
  max-width: 330px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

/* A plain (non-card) section: heading + content */
.sg-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* The note paragraph inside a card */
.sg-note {                     /* tokens.json › Body › body, in muted */
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

/* Footer: handwritten sign-off + meta */
.sg-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-2);
}
.sg-signoff {                  /* tokens.json › Hand › hand-signoff */
  margin: 0;
  font-family: var(--font-hand);
  font-size: 38px;
  font-weight: 700;
  line-height: 0.95;
  color: var(--accent);
}
.sg-caption {                  /* tokens.json › Body › caption */
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  text-align: right;
}
