:root {
  --bg: #0f0f11;
  --ink: #e9e7e1;
  --muted: #8b8a84;
  --faint: #55554f;
  --rule: #26262a;
  --link: #cdcbc4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 8rem) 1.5rem 4rem;
}

body.experience main {
  max-width: 36rem;
  padding: clamp(2.5rem, 8vh, 5rem) 1.5rem 5rem;
}

p { margin: 0 0 1.1rem; }

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--link); }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.75rem 0;
}

.mono {
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

.wordmark {
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}

.tagline {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.3;
  font-weight: 400;
  margin: 1.4rem 0 0;
  color: var(--ink);
  max-width: 22ch;
}

.now {
  color: var(--muted);
  font-size: 1rem;
}
.now .label {
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-bottom: 0.4rem;
}
.now code {
  font-size: 0.85em;
  padding: 0.15em 0.25em;
  border-radius: 4px;
  background: #232529;
  color: #BA803D;
  border: 1px solid #3C3E42;
}

.about {
  font-size: 1rem;
  color: var(--muted);
}
.about .name { color: var(--ink); }

.cta {
  margin-top: 2.75rem;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  color: var(--muted);
}

.contact {
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.back {
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 2.75rem;
  border-bottom: 0;
}
.back:hover { color: var(--ink); }

.job { margin: 0 0 2rem; }
.job:last-of-type { margin-bottom: 0; }

.job .dates {
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  float: right;
  padding-top: 0.4rem;
}
.job .company {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  display: inline;
}
.job .roles {
  color: var(--muted);
  font-style: italic;
  margin: 0.2rem 0 0;
  clear: both;
  line-height: 1.45;
}
.job .roles span { display: block; }
.job .roles span:nth-child(2) {
  color: var(--faint);
  font-size: 0.95rem;
}
.job .roles span:nth-child(3) {
  color: var(--faint);
  font-size: 0.90rem;
}
.job .place {
  font-size: 0.9rem;
  color: var(--faint);
  margin: 0.15rem 0 0;
}

footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
