:root {
  --ink: #313131;
  --muted: #616161;
  --link: #0366d6;
  --link-hover: #005bf7;
  --band: #f7f7f7;
  --dark: #262732;
  --navy: #0b2a4a;
  --green: #145a2c;
  --gold: #feb960;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: var(--ink); font-family: var(--system); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }
main { flex: 1; }
.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #eee; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 300px; }
.tagline { font-size: 13px; line-height: 1.6; color: #444; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: #404248; font-size: 15px; font-weight: 500; }
.main-nav a[aria-current="page"] { color: var(--link); }

/* Hero */
.hero { position: relative; color: #fff; padding: 180px 0 130px;
  background: linear-gradient(rgba(38,39,50,.45), rgba(38,39,50,.45)),
              radial-gradient(ellipse at 75% 30%, #5b6a7d 0%, #3d4656 45%, #262732 100%); }
.hero h1 { font-family: "Roboto", var(--sans); font-weight: 600; font-size: 46px; line-height: 1.2; margin: 0 0 18px; }
.hero p { font-size: 17px; max-width: 900px; margin: 0; }

/* Numbered section bands */
.band { background: var(--band); padding: 0 0 100px; font-family: var(--sans); }
.about { padding-bottom: 135px; }
.section-head { position: relative; text-align: center; padding-top: 40px; margin-bottom: 50px; }
.section-head .num { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); font-size: 273px; font-weight: 700; line-height: 1; color: rgba(224,224,224,.45); z-index: 0; user-select: none; }
.section-head h2 { position: relative; z-index: 1; font-family: var(--serif); font-weight: 700; font-size: 50px; line-height: 1.5; margin: 0; padding-top: 80px; color: var(--ink); }
.section-head p { position: relative; z-index: 1; color: var(--muted); font-size: 18px; margin: 10px 0 0; }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: start; }
.service { background: #fff; text-align: center; padding: 50px 25px 45px; border-bottom: 3px solid var(--accent); box-shadow: 0 0 25px rgba(0,0,0,.05); }
.service:nth-child(2), .service:nth-child(4) { margin-top: 18px; }
.service.wide { grid-column: 1 / -1; margin-top: 0; }
.service img { width: 56px; margin: 0 auto 22px; }
.service h3 { font-size: 20px; font-weight: 500; line-height: 33px; margin: 0 0 16px; color: var(--ink); }
.service p { font-size: 15px; line-height: 27px; margin: 0; }

/* About */
.about-card { background: #fff; text-align: center; border-bottom: 3px solid var(--gold); padding-bottom: 15px; }
.about-card h3 { color: var(--gold); font-size: 18px; font-weight: 500; margin: 18px 0 4px; }
.about-card p { max-width: 1050px; margin: 0 auto 20px; padding: 0 20px; font-size: 14px; line-height: 2; color: var(--muted); }
.button { display: inline-block; background: var(--link); color: #fff; font-family: var(--sans); font-weight: 500; padding: 12px 28px; border-radius: 3px; margin-bottom: 10px; }
.button:hover, .button:focus { background: var(--link-hover); color: #fff; text-decoration: none; }

/* Blog listing */
.narrow-top { padding-top: 30px; padding-bottom: 60px; }
.page-title { font-size: 28px; font-weight: 600; margin: 0 0 30px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.entry { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 10px 0 50px; margin-bottom: 40px; border-bottom: 1px solid #eee; }
.entry.flip .thumb { order: 2; }
.entry.no-thumb { grid-template-columns: 1fr; }
.entry h2 { font-size: 24px; font-weight: 500; line-height: 1.5; margin: 0 0 4px; }
.entry h2 a { color: var(--ink); }
.meta { font-size: 12px; color: #676767; margin: 0 0 18px; }
.entry-text p:last-child { font-size: 14px; line-height: 1.85; margin: 0; }
.more { white-space: nowrap; }

/* Single post */
.post { max-width: 780px; padding-top: 30px; padding-bottom: 60px; }
.post h1 { font-size: 30px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; }
.post .feature { margin: 10px 0 30px; width: 100%; }
.post-body { font-size: 16px; line-height: 1.8; }
.post-body h3 { font-size: 22px; font-weight: 600; margin: 34px 0 10px; }
.post-body figure { margin: 30px 0; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.pull { margin: 30px 0; padding: 18px 24px; border-left: 4px solid var(--green); background: #f6f8f6; font-size: 19px; font-style: italic; line-height: 1.6; color: #2b3a2f; }
.tags { margin-top: 40px; font-size: 14px; }
.tags span { display: inline-block; background: #f1f1f1; padding: 2px 10px; margin: 0 6px 6px 0; border-radius: 3px; }
.back { margin-top: 30px; }

/* Contact */
.contact { max-width: 780px; }
.contact p { font-size: 16px; }
.email-plain { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { background: #24292e; color: #fff; text-align: center; font-family: "Open Sans", var(--system); font-size: 14px; font-weight: 600; padding: 14px 0; }
.site-footer a { color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(n) { margin-top: 0; }
}
@media (max-width: 700px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .brand img { width: 220px; }
  .tagline { display: none; }
  .hero { padding: 90px 0 70px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section-head .num { font-size: 180px; top: 0; }
  .section-head h2 { font-size: 34px; padding-top: 60px; }
  .section-head p { font-size: 16px; }
  .services { grid-template-columns: 1fr; gap: 20px; }
  .band { padding-bottom: 60px; }
  .entry, .entry.flip { grid-template-columns: 1fr; gap: 18px; }
  .entry.flip .thumb { order: 0; }
  .entry h2 { font-size: 21px; }
  .post h1 { font-size: 25px; }
}
