
/* ---- this below is the css reset as usd by josh. https://www.joshwcomeau.com/css/custom-css-reset/ ---- */
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Increase line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

/* ---------- end reset ----- */

body { 
    font-family: sans-serif;
    margin: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
header { margin-bottom: 2rem; }
nav {
    display: flex;
    /* justify-content: flex-end; */
    flex-direction: row;
}
main { 
    width: max(50ch, 80%);
}

section {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);  
}
.messages { margin: 1rem 0; }
.messages li { margin-bottom: 0.5rem; }
.errorlist { color: #b00020; }
table { border-collapse: collapse; width: 100%; margin-top: 1rem; }
th, td { border: 1px solid #ddd; padding: 0.5rem; text-align: left; }
nav a { margin-right: 0.75rem; }
pre { background: #f5f5f5; padding: 0.5rem; overflow-x: auto; }