@import url('https://fonts.googleapis.com/css2?family=Merriweather&display=swap');

/*
File: /css/common.css
Version: 0.1: added line-height 1.5 for readability and spacing between labels and form controls
*/
:root {
  --rounded: 4px;
  --rounded-full: 40px;

  /* for buttons and ui controls */
  --p-xs: 0.2rem;
  --p-sm: 0.5rem;
  --p-md: 1rem;
  --sm: 600px;
  --max-content-width: 75rem;
}

body {
  line-height: 1.5;
  color: var(--default-text);
  background-color: var(--bg-color);
  font-family: 'Merriweather', serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  transition:
          background-color 0.5s,
          color 0.5s;
}

main {
  max-width: var(--max-content-width);
  margin: 0 auto;
  width: 100%;
}

main.full-width {
  max-width: none;
  margin: 0;
}

footer {
  bottom: 0;
  width: 100%;
  background: var(--primary-color);
  color: var(--default-text-inv);
  padding: var(--p-md);
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
}

/* -------------------------------------------------
 * Utility: Full-bleed breakout (safe “50vw” method)
 * Use to make an element span the full viewport
 * even inside padded / max-width containers.
 * Example: <section class="u-breakout u-breakout--clip">…</section>
 * ------------------------------------------------- */
.u-breakout {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  display: block;
}

/* Optional: hide any overflow to avoid stray scrollbars */
.u-breakout--clip {
  overflow: hidden;
}
