/* assets/css/site.css */

/* -----------------------------------------------------------
   GLOBAL RESET
   ----------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: #fff;
  color: #000;
}

/* -----------------------------------------------------------
   BASE PAGE LAYOUT
   ----------------------------------------------------------- */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  font-family: monospace;
}

.header {
  width: 100%;
  text-align: center;
  margin-bottom: 3rem;
}

.header a {
  font-size: 14px;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.15em;
}

/* -----------------------------------------------------------
   MAIN TEXT BLOCK
   ----------------------------------------------------------- */
.block {
  width: 100%;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.55;
  color: #000;
}

.block h1,
.block h2,
.block h3 {
  font-size: inherit;
  font-weight: bold;
  display: inline;
}

.block h1::after,
.block h2::after,
.block h3::after,
.block p::after {
  content: " ";
}

.block p {
  display: inline;
}

.block pre {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}

/* -----------------------------------------------------------
   EXPERIENCE FORM
   ----------------------------------------------------------- */
#experience-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

#experience-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.35rem;
}

#experience-form input,
#experience-form textarea,
#experience-form button {
  font: inherit;
}

#experience-form input,
#experience-form textarea {
  width: 100%;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 0.75rem;
}

#experience-form textarea {
  min-height: 8rem;
  resize: vertical;
}

#experience-form button {
  align-self: flex-start;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

#experience-form button:hover,
#experience-form button:focus {
  background: #000;
  color: #fff;
}

/* -----------------------------------------------------------
   STATUS + COUNT
   ----------------------------------------------------------- */
#status {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

#status[data-state="error"] {
  font-weight: bold;
}

#status[data-state="success"] {
  font-weight: bold;
}

#submission-count {
  margin-bottom: 1rem;
}

/* -----------------------------------------------------------
   SUBMISSION ARCHIVE
   ----------------------------------------------------------- */
#submissions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.submission-card {
  border-top: 1px solid #000;
  padding-top: 1rem;
}

.submission-meta {
  margin-bottom: 0.75rem;
}

.submission-prompt {
  margin-bottom: 1rem;
}

.submission-prompt h3 {
  display: block;
  margin-bottom: 0.35rem;
}

.submission-prompt p {
  display: block;
}

.submissions-empty {
  opacity: 0.75;
}

/* -----------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 640px) {
  body {
    padding: 1rem;
  }

  .block {
    font-size: 13px;
    line-height: 1.5;
  }

  .header {
    margin-bottom: 2rem;
  }
}