:root {
  --ink: #231f20;
  --text: #3a3a3a;
  --muted: #6b6b6b;
  --bg: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f2efee; --text: #d6d3d2; --muted: #a8a4a3; --bg: #1c1a1b; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
.wrap { width: min(1100px, 100% - 48px); margin-inline: auto; }

/* Header: full-width photo with logo and pills on top, as on the live site */
/* Header sized exactly like the live site: by screen height, with a dark fade at the top */
:root { --nav-h: 80px; --band: calc(var(--nav-h) + clamp(164px, 16vw, 208px)); }
@media (min-width: 800px) { :root { --nav-h: 112px; } }
.hero {
  position: relative;
  height: var(--band);
  background: #231f20;
  overflow: hidden;
}
@media (min-width: 800px) { .hero { height: clamp(var(--band), 42vh, 520px); } }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 52%;
  pointer-events: none;
  background: linear-gradient(rgba(20,26,34,.72) 0%, rgba(20,26,34,.24) 58%, rgba(20,26,34,0) 100%);
}
.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}
.logo { display: block; width: 205px; height: auto; }
nav { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  font: 500 16px/1.2 Roboto, system-ui, sans-serif;
  color: #fff;
  background: #231f20;
  border-radius: 999px;
  padding: 8.8px 24px;
  text-decoration: none;
  transition: background-color .15s;
}
.pill:hover { background: #3d3738; }
.pill:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Message */
.intro { text-align: center; padding: 36px 0 64px; }
.intro .inner { max-width: 704px; margin-inline: auto; }
h1 {
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 32.8px);
  line-height: 1.25;
  margin: 8px 0 18px;
  text-wrap: balance;
}
.lead { color: var(--muted); font-size: 17.9px; max-width: 26em; margin: 0 auto 18px; }
.welcome { color: var(--ink); font-weight: 400; margin: 0; }

/* Footer */
footer {
  background: linear-gradient(#dd9757 0%, #e0cfbf 100%);
  color: #231f20;
  padding: 52px 0 calc(52px + env(safe-area-inset-bottom, 0px));
  font-size: 13px;
  line-height: 1.9;
}
.fgrid {
  display: grid;
  grid-template-columns: 232px 1fr 34px;
  gap: 32px;
  max-width: 850px;
  margin-inline: auto;
  align-items: start;
}
footer h2 { font-size: 13px; font-weight: 700; margin: 0 0 6px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.flogo { width: 168px; height: auto; display: block; }
.linkedin { display: block; width: 34px; height: 34px; }

@media (max-width: 720px) {
  .logo { width: 150px; }
  .pill { padding: 8px 18px; font-size: 15px; }
  .fgrid { grid-template-columns: 1fr auto; }
  .fgrid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .logo { width: 120px; }
  .pill { padding: 7px 14px; font-size: 14px; }
}
