/* === Brand Accent === */
:root {
  --msc-blue: #4291bc;           /* primary accent */
  --msc-blue-10: #e7f1f7;        /* 10 % tint for gradient foot */
  --msc-blue-5:  #f1f7fa;        /* 5 % tint for mid-gradient */
}

/* === Page background === */
body {
  background: linear-gradient(
      to bottom,
      #ffffff 0%,
      var(--msc-blue-5) 70%,
      var(--msc-blue-10) 100%
  );
  color: #111;                  /* keep text dark for contrast */
}

/* === Card (form container) === */
.card {
  background: #fff;
  border: 1px solid #e0ecf5;     /* very light blue-grey stroke */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* === Accent buttons / links (already using .btn-green etc.) === */
/* Feel free to create .btn-blue later that uses var(--msc-blue) */


/* === About page helpers === */
.about-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;       /* 24 px between photo & text on mobile */
}

@media (min-width: 640px) {   /* ≥ 640 px = SM breakpoint */
  .about-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;       /* 32 px on desktop */
  }
}

.profile-pic {
  width: 160px;      /* dial size here */
  height: 160px;
  object-fit: cover;
  object-position: top;  /* show a bit more hair */
  border-radius: 9999px;
  flex-shrink: 0;    /* don’t let text squeeze it */
}





/* — Profile photo helper — */
.profile-pic {
  width: 128px;          /* 8 rem ≈ 2 inches on desktop */
  height: 128px;         /* keep it square */
  object-fit: cover;     /* crop, don’t squish */
  border-radius: 9999px; /* full circle */
  display: block;
  margin-left: auto;     /* center horizontally */
  margin-right: auto;
}




/* ========== Root & Design Tokens ========== */
:root {
  --radius: 0.375rem;          /* 6 px rounding everywhere            */
  --space-2: 0.5rem;           /*  8 px                               */
  --space-3: 0.75rem;          /* 12 px                               */
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f9fafb;
  color: #111827;
  line-height: 1.55;
}

body.bg-light { background-color: #f9fafb; }
.text-dark     { color: #111827; }
.font-sans     { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* ========== Layout Utilities ========== */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.p-6     { padding: 1.5rem; }

.max-w-2xl { max-width: 42rem; width: 100%; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* Vertical spacing helpers */
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
/* Horizontal spacing */
.space-x-4 > * + * { margin-left: 1rem; }

@media (min-width: 640px) {
  .card { padding: 3rem; }
}

/* ========== Cards & Containers ========== */
.card {
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ========== Typography & Text Helpers ========== */
.text-sm        { font-size: 0.875rem; }
.text-xl        { font-size: 1.25rem; }
.text-2xl       { font-size: 1.5rem; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.leading-relaxed { line-height: 1.625; }
.text-red-600    { color: #dc2626; }

/* ========== Lists ========== */
ul.list { padding-left: 1.25rem; list-style-type: disc; }
ul.list li { margin-bottom: 0.5rem; }
.list-decimal { list-style-type: decimal; }
.list-inside  { padding-left: 1rem; }

/* ========== Borders ========== */
.border   { border: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }

/* ========== Inputs & Textareas ========== */
.input,
input[type="text"],
input[type="email"],
input[type="file"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  background: #fff;
}

.input:focus-visible {
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
}
.input:focus:not(:focus-visible) {
  box-shadow: none;
}

/* ========== Buttons (Actions Only) ========== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-green {
  background-color: #10b981;
  color: #fff;
}
.btn-green:hover {
  background-color: #34d399;
}
.btn:active {
  transform: scale(0.98);
}
.btn-blue {
  background-color: #3b82f6;
  color: #fff;
}
.btn-blue:hover {
  background-color: #2563eb;
}
.w-full { width: 100%; }

/* ========== Links ========== */
.link {
  color: #2563eb;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.link:hover { color: #1d4ed8; }

/* ========== Misc UX & Toast ========== */
.scroll {
  display: inline-block;
  margin-bottom: 1rem;
}
.input.error { border-color: #dc2626; }
.field-error { display: block; margin-top: 0.25rem; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17,24,39,0.9);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
  z-index: 9999;
}
.toast.show { opacity: 1; }

/* ========== Performance Helpers ========== */
/* (No CSS changes needed here beyond what's above) */
