/* Base */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid #e6e6e6;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 14px;
}

.toplinks a {
  font-size: 13px;
  margin-left: 18px;
  opacity: 0.85;
}

.navwrap {
  border-top: 1px solid #e6e6e6;
}

.mainnav {
  display: flex;
  gap: 22px;
  padding: 14px 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Hero */
.hero {
  padding: 44px 0 64px;
}

.hero-inner {
  position: relative;
}

.hero-media {
  height: 420px;
  background: #f2f2f2;
}

.hero-card {
  position: absolute;
  left: 48px;
  bottom: 48px;
  background: #fff;
  padding: 28px 28px 22px;
  width: min(420px, calc(100% - 96px));
  border: 1px solid #e6e6e6;
}

.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hero-subtitle {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-title {
  margin: 0 0 18px;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-text {
  margin: 0;
  max-width: 66ch;
  opacity: 0.85;
}

.section-text + .section-text {
  margin-top: 12px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.card {
  border: 1px solid #e6e6e6;
  padding: 22px;
  background: #fff;
}

.card-meta {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.card-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
}

.card-text {
  margin: 0 0 18px;
  font-size: 14px;
  opacity: 0.85;
}

.card-link {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Link pills */
.linklist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.linkpill {
  border: 1px solid #e6e6e6;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #fff;
}

.linkpill:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Inline links */
.inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact spacing */
.contact-links {
  margin-top: 16px;
}

/* About page helpers */
.bullets {
  margin: 14px 0 0;
  padding-left: 20px;
  max-width: 66ch;
  opacity: 0.85;
}

.bullets li {
  margin: 8px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e6e6e6;
  padding: 22px 0;
  font-size: 13px;
  opacity: 0.75;
}

/* Small screens */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    position: static;
    width: 100%;
    margin-top: 18px;
  }

  .hero-media {
    height: 300px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .toplinks a {
    margin-left: 0;
    margin-right: 14px;
  }

  .mainnav {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}
