/* Shared styles for feix-engineering.com */

:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --border: #e3e6ea;
  --text: #1f2328;
  --muted: #5c6670;
  --accent: #1a73e8;
  --accent-soft: #e8f0fe;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1c2024;
    --border: #2b3136;
    --text: #e6e9ec;
    --muted: #9aa4ae;
    --accent: #7cb0f5;
    --accent-soft: #1b2635;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.5rem 0 1rem;
}

a { color: var(--accent); }

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 .35rem;
  letter-spacing: -.02em;
}

h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 .6rem;
  letter-spacing: -.01em;
}

p { margin: 0 0 1rem; }

.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

.lead { font-size: 1.05rem; }

/* Page header with app mark */
.masthead {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.masthead .mark {
  flex: none;
  width: 60px;
  height: 60px;
}

/* Small app icon in front of an app name in a list */
.app-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: .5rem;
}

.masthead h1 { margin: 0; }
.masthead .tagline { margin: .15rem 0 0; font-size: 1rem; }

/* Feature list */
.features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem 1rem;
}

.features strong { display: block; margin-bottom: .15rem; }
.features span { color: var(--muted); font-size: .92rem; }

/* Callout box */
.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.note strong { color: var(--text); }

/* Policy body */
.policy h2:first-of-type { margin-top: 1.5rem; }
.policy ul { padding-left: 1.2rem; }
.policy li { margin-bottom: .4rem; }

.updated { color: var(--muted); font-size: .95rem; }

address { font-style: normal; }

footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  align-items: center;
}

footer .spacer { flex: 1 1 auto; }

@media (max-width: 30rem) {
  main { padding-top: 2.5rem; }
  h1 { font-size: 1.6rem; }
  .masthead { gap: .85rem; }
  .masthead .mark { width: 50px; height: 50px; }
}
