/* Shroyer Tech: one page, black and white with navy accents, light and dark.
   The hero and contact bands are always black so the white banner logo reads
   and the page is bookended. */
:root {
  --bg: #ffffff;          /* page */
  --bg-2: #f2f2f2;        /* alternate band */
  --card: #ffffff;
  --ink: #0a0a0a;         /* body text */
  --ink-soft: #555555;    /* secondary text */
  --accent: #1b3358;      /* navy: links, labels */
  --rule: #e0e0e0;
  --hero-bg: #000000;

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 66rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --bg-2: #141414; --card: #161616; --ink: #f2f2f2; --ink-soft: #a8a8a8;
    --accent: #9db8e3; --rule: #2a2a2a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --bg-2: #141414; --card: #161616; --ink: #f2f2f2; --ink-soft: #a8a8a8;
  --accent: #9db8e3; --rule: #2a2a2a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); max-width: 16ch; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.label {
  font: 500 0.8rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 40ch; margin-top: 1.25rem; }
.note { color: var(--ink-soft); max-width: 46ch; margin-top: 0.75rem; }

/* Header and footer */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.top { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; font: 700 1.1rem/1 var(--display); letter-spacing: 0.06em; color: var(--ink); text-decoration: none; }
/* Round logo as a mask so it takes the text color in light and dark. */
.brand .mark {
  width: 36px; height: 36px; flex: none;
  background: var(--ink);
  -webkit-mask: url(/images/logo-round.png) center / contain no-repeat;
  mask: url(/images/logo-round.png) center / contain no-repeat;
}
.brand span:not(.mark) { margin-left: 0.3em; }
.top nav { display: flex; gap: 1.25rem; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--ink); }
.foot { border-top: 1px solid var(--rule); padding: 1.5rem 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.btn:hover { background: var(--bg-2); }
.btn.solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.solid:hover { opacity: 0.88; }

/* Sections */
/* Black bands (hero and contact) recolor everything inside. */
.hero, .contact {
  --ink: #ffffff; --ink-soft: #c9c9c9; --bg: #000000; --accent: #9db8e3; --bg-2: rgba(255, 255, 255, 0.1);
  background: var(--hero-bg);
  color: var(--ink);
}
.hero { padding: clamp(3rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.banner { width: 100%; }
@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .banner { order: -1; max-width: 26rem; }
}
.section { padding: clamp(3rem, 8vw, 5rem) 0; }
.section.alt { background: var(--bg-2); }

.cards { display: grid; gap: 1rem; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem;
  scroll-margin-top: 1.5rem;
}
.card > p + p { margin-top: 0.75rem; }
.card .meta { font-size: 0.92rem; color: var(--ink-soft); }
.card .links { display: flex; flex-wrap: wrap; gap: 1rem; font-weight: 700; }
.list { margin: 0.75rem 0 0; padding-left: 1.1rem; }
.list li + li { margin-top: 0.4rem; }
.list a { font-weight: 700; }
.why { margin-top: 2rem; max-width: 52ch; color: var(--ink-soft); }
.why strong { color: var(--ink); }

/* Privacy policy */
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.prose p + p, .prose ul { margin-top: 0.75rem; }
