/* style.css — hand-written vanilla CSS replacing the compiled Tailwind output.
   Colour names below map to Tailwind's `stone` / `emerald` palette used in the
   original templates. */

:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-800: #292524;
  --stone-950: #0c0a09;
  --emerald-100: #d1fae5;
  --emerald-900: #064e3b;
  --red-100: #fee2e2;
  --red-900: #7f1d1d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.5;
  background-color: var(--stone-100);
  color: var(--stone-950);
}

a {
  color: inherit;
  text-decoration: none;
}

/* .container mx-auto — Tailwind's responsive centered container. */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container { max-width: 640px; }
}
@media (min-width: 768px) {
  .container { max-width: 768px; }
}
@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}
@media (min-width: 1536px) {
  .container { max-width: 1536px; }
}

/* Hero copy */
.hero-title {
  margin-top: 5rem;
  font-size: 3.75rem;
  line-height: 1;
  font-weight: 700;
  text-align: center;
}
.hero-subtitle {
  margin-top: 2.5rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  text-align: center;
  color: var(--stone-500);
  font-weight: 400;
}
.hero-lead {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--stone-500);
}

/* Software listing grid: 1 column, 4 columns at lg (1024px+). */
.software-grid {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 1024px) {
  .software-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  background-color: var(--stone-200);
  cursor: pointer;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease;
}
.card:hover {
  background-color: var(--stone-300);
}
.card-title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}
.card p {
  margin: 0;
}

/* Submission section */
.submit-section {
  background-color: var(--stone-200);
  padding: 1rem;
  margin-top: 5rem;
}
.submit-inner {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.submit-heading {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin: 1rem 0;
}
.submit-lead {
  margin: 1rem 0;
}

label {
  display: inline-block;
}
.radio-label {
  margin-left: 0.25rem;
}

.field {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  background-color: var(--stone-50);
  border: none;
  font: inherit;
  color: inherit;
}
textarea.field {
  min-height: 6rem;
  resize: vertical;
}

.submit-button {
  margin-top: 2rem;
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.375rem;
  background-color: var(--stone-950);
  color: var(--stone-50);
  border: none;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.submit-button:hover {
  background-color: var(--stone-800);
}
.submit-button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Status message — mirrors _message.html (emerald), plus an error variant. */
.message {
  display: block;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 0.375rem;
  background-color: var(--emerald-100);
  color: var(--emerald-900);
}
.message-error {
  background-color: var(--red-100);
  color: var(--red-900);
}
