:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #666666;
  --border: #e6e6e6;
  --link: #0000ee;
  --max-width: 42rem;
  --font-serif: 'Iowan Old Style', Charter, 'Bitstream Charter', Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  width: 100%;
  max-width: var(--max-width);
  margin: 2.6rem auto 0;
  padding: 0 1.4rem;
  flex: 1;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: currentColor;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Header */
.site-header {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.2rem 1.4rem 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-link {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.home-link a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
}

.home-link .mark {
  width: 1.45em;
  height: 0.87em;
  flex: none;
}

/* Tabs */
.site-header .tabs {
  display: flex;
  justify-content: flex-start;
  gap: 1.4rem;
  margin-top: 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.tab {
  color: var(--muted);
  text-decoration: none;
  padding: 0 0 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Sections */
section {
  margin-bottom: 3.4rem;
}

main > section:last-child {
  margin-bottom: 0;
}

section p {
  margin: 0 0 1.1rem;
}

section p:last-child {
  margin-bottom: 0;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

/* Careers */
.roles-intro {
  margin-bottom: 2.4rem;
}

.role {
  margin: 0;
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
}

main > .role:last-child {
  padding-bottom: 0;
}

.role-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.55rem;
  margin: 0 0 0.5rem;
}

.group-label {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.role-apply {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.role-apply:hover {
  color: var(--text);
}

/* Footer */
.site-footer {
  width: 100%;
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.3rem 1.4rem 1.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  .home-link {
    font-size: 1.35rem;
  }
}
