/* a minimalist set of CSS was given minor
edits*/

/* default to border-box */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 1rem;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  background: #fafafa;
  color: #111;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.site-header {
  max-width: 1100px;
  margin: 0 auto 1rem auto;
}

.tagline {
  margin-top: 0.25rem;
  color: #444;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* Cards/sections */
.card,
.sidebar {
  background: white;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 1rem;
}

.card + .card {
  margin-top: 1rem;
}

.hint {
  color: #555;
  font-size: 0.95rem;
}

.code-block {
  background: #f3f3f3;
  border-radius: 10px;
  padding: 0.75rem;
  overflow: auto;
}

/* Contenteditable demo */
.editable {
  border: 1px dashed #bbb;
  border-radius: 10px;
  padding: 0.75rem;
  background: #fffdf6;
}

/* Image "shape" */
.demo-img {
  border-radius: 12px;
}

.demo-img.round {
  border-radius: 9999px; /* “circle-ish” when the image is square-ish */
}

/* Form styling */
.field {
  margin-top: 0.75rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input,
select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font: inherit;
  background: white;
}

.button-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

button {
  border: 1px solid #222;
  background: #222;
  color: white;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}

button.secondary {
  background: white;
  color: #111;
}

button.ghost {
  background: transparent;
  color: #111;
  border: 1px dashed #777;
}

.status {
  margin-top: 0.75rem;
  font-weight: 600;
}

.site-footer {
  max-width: 1100px;
  margin: 1.5rem auto 0 auto;
  color: #555;
}