/* Reset to remove white borders/margins around the page */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #f7fbfd;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: inherit; }

/* Page wrapper */
section.wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
section h1 {
  margin: 0 0 .25rem 0;
  color: #224;
  font-size: 1.8rem;
}
section h2 {
  margin: 0 0 1.25rem 0;
  color: #334;
  font-weight: normal;
  font-size: 1.1rem;
}

/* Basic input styling to match your theme */
section label {
  display: block;
  margin: .8rem 0 .3rem;
  font-weight: 600;
  color: #333;
}
section input[type="number"] {
  width: 100%;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
  font-size: 1rem;
  background: #f4f8fb;
  transition: border 0.2s;
  margin-bottom: 0.5rem;
}
section input[type="number"]:focus {
  border: 1.5px solid #3d8a59;
  outline: none;
}
.checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .35rem .75rem;
  margin: .25rem 0 1rem;
}
.checkboxes label {
  font-weight: 500;
}

/* === Your provided styles (kept as-is) === */
section textarea {
    width: 100%;
    min-height: 250px;
    margin-bottom: 1rem;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    padding: 0.7rem;
    font-size: 1rem;
    resize: vertical;
    background: #f4f8fb;
    transition: border 0.2s;
}
section textarea:focus {
    border: 1.5px solid #3d8a59;
    outline: none;
}
section button {
    background: #3d8a59;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1rem;
}
section button:hover {
    background: #347a4d;
}
#lineCounterResult {
    margin-top: 1rem;
    font-size: 1.1rem;
    background: #f4f8fb;
    border-radius: 6px;
    padding: 1rem;
    min-height: 30px;
    word-break: break-word;
}
/* === end provided styles === */

/* Small layout helpers */
.controls {
  display: grid;
  grid-template-columns: 1fr;
}
#copyBtn { margin-left: .5rem; }
@media (min-width: 520px) {
  #generateBtn { width: fit-content; }
  #copyBtn { width: fit-content; }
}
