/* Mycelium Logic LLC — landing page styles
   Pure CSS, system font stack, light/dark via prefers-color-scheme. */

:root {
  --bg: #f8f9f6;
  --surface: #ffffff;
  --text: #1c2321;
  --muted: #4c5a54;
  --accent: #2f6846;
  --accent-strong: #1f4a30;
  --accent-contrast: #ffffff;
  --border: #d8e0da;
  --max-width: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121714;
    --surface: #1a211d;
    --text: #e9efeb;
    --muted: #b3c2b9;
    --accent: #8cc7a3;
    --accent-strong: #b9e2c9;
    --accent-contrast: #10160f;
    --border: #2c3a32;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.wordmark {
  margin: 0;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Links */

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Main sections */

main > section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.hero h1 {
  font-size: 2.75rem;
  max-width: 18ch;
}

.tagline {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 56ch;
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  color: var(--accent-contrast);
}

section h2 {
  font-size: 1.875rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

section h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  color: var(--muted);
}

/* Product / project tiles */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.tile h4 {
  font-size: 1.125rem;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Intake form */

form {
  max-width: 34rem;
}

.field {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

input,
textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

textarea {
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  font: inherit;
  font-weight: 600;
  color: var(--accent-contrast);
  background: var(--accent);
  border: 0;
  border-radius: 0.5rem;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

.alt-contact {
  margin-top: 1.5rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

/* Responsive tuning */

@media (max-width: 48rem) {
  body {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2.125rem;
  }

  .tagline {
    font-size: 1.125rem;
  }

  main > section {
    padding: 2rem 1.25rem;
  }
}
