/* Rock Hill Works: cream, forest green, and a little orange, sampled from the logo. System fonts only. */

:root {
  color-scheme: light;
  --cream: #fcf8f4;
  --green: #063426;
  --green-muted: #144634;
  /* Darkened logo orange (#c36019) so 16px text passes AA. Status label only. */
  --orange-text: #b45916;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.page {
  display: flex;
  flex-direction: column;
  max-width: 52rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.masthead {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 3px solid var(--green);
  text-align: center;
}

/* The live logo is a transparent PNG lockup (img/logo.png), so the artwork sits on the cream page background. */
.wordmark img {
  display: block;
  width: clamp(16rem, 72vw, 18rem);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.intro {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--green-muted);
  font-size: 1.25rem;
  line-height: 1.5;
}

main {
  flex: 1;
  padding: 2.5rem 0 3.5rem;
}

.section-heading {
  margin-bottom: 1rem;
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--green);
  border-left-width: 0.5rem;
}

.card + .card {
  margin-top: 1.5rem;
}

.card-title {
  font-size: 1.75rem;
  line-height: 1.2;
}

/* Card visual: the logo image already carries the name, so the h3 holds only the image. */
.card-visual {
  margin-bottom: 0.25rem;
}

.card-visual img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.status {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.125rem 0.625rem;
  border: 2px solid var(--orange-text);
  color: var(--orange-text);
  font-size: 1rem;
  font-weight: 700;
}

.card-description {
  max-width: 34rem;
  margin-top: 1rem;
}

.card-note {
  max-width: 34rem;
  margin-top: 0.75rem;
  color: var(--green-muted);
}

.card-action {
  margin-top: 1.25rem;
}

/* Forest green button on cream. Cream on green is 13.01:1, and the tap target is at least 44px tall. */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--cream);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.button:hover {
  background: var(--green-muted);
  border-color: var(--green-muted);
}

.button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--green);
  color: var(--green-muted);
  font-size: 1rem;
}

@media (min-width: 48rem) {
  .page {
    padding: 0 2rem;
  }

  .masthead {
    padding: 2.5rem 0 3.5rem;
  }

  main {
    padding: 3.5rem 0 5rem;
  }

  .card {
    padding: 2.25rem 2.5rem;
  }
}
